1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, requests
6, psutil
7, pytest
8, setuptools-scm
9, subprocess32 ? null
10, toml
11, zc_lockfile
12}:
13
14buildPythonPackage rec {
15 pname = "pytest-services";
16 version = "2.2.1";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "2da740487d08ea63dfdf718f5d4ba11e590c99ddf5481549edebf7a3a42ca536";
21 };
22
23 nativeBuildInputs = [
24 setuptools-scm
25 toml
26 ];
27
28 buildInputs = [ pytest ];
29
30 propagatedBuildInputs = [
31 requests
32 psutil
33 zc_lockfile
34 ] ++ lib.optional (!isPy3k) subprocess32;
35
36 # no tests in PyPI tarball
37 doCheck = false;
38
39 pythonImportsCheck = [ "pytest_services" ];
40
41 meta = with lib; {
42 description = "Services plugin for pytest testing framework";
43 homepage = "https://github.com/pytest-dev/pytest-services";
44 license = licenses.mit;
45 maintainers = with maintainers; [ dotlambda ];
46 };
47}