Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytest-services / default.nix
blob7ab175a893c810cf70496a29a556b2f24f3493e3
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy3k
5 , requests
6 , psutil
7 , pytest
8 , setuptools_scm
9 , subprocess32
10 , toml
11 , zc_lockfile
14 buildPythonPackage rec {
15   pname = "pytest-services";
16   version = "2.2.1";
18   src = fetchPypi {
19     inherit pname version;
20     sha256 = "2da740487d08ea63dfdf718f5d4ba11e590c99ddf5481549edebf7a3a42ca536";
21   };
23   nativeBuildInputs = [
24     setuptools_scm
25     toml
26   ];
28   buildInputs = [ pytest ];
30   propagatedBuildInputs = [
31     requests
32     psutil
33     zc_lockfile
34   ] ++ lib.optional (!isPy3k) subprocess32;
36   # no tests in PyPI tarball
37   doCheck = false;
39   pythonImportsCheck = [ "pytest_services" ];
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   };