2019-02-13 16:48:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, requests
|
|
|
|
, psutil
|
|
|
|
, pytest
|
2020-11-29 21:37:21 +00:00
|
|
|
, setuptools_scm
|
2019-02-13 16:48:53 +00:00
|
|
|
, subprocess32
|
2020-11-29 21:37:21 +00:00
|
|
|
, toml
|
2019-12-21 22:34:15 +00:00
|
|
|
, zc_lockfile
|
2019-02-13 16:48:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-services";
|
2020-11-29 14:04:39 +00:00
|
|
|
version = "2.2.1";
|
2019-02-13 16:48:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:39 +00:00
|
|
|
sha256 = "2da740487d08ea63dfdf718f5d4ba11e590c99ddf5481549edebf7a3a42ca536";
|
2019-02-13 16:48:53 +00:00
|
|
|
};
|
|
|
|
|
2020-11-29 21:37:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
2019-02-13 16:48:53 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
psutil
|
|
|
|
pytest
|
2019-12-21 22:34:15 +00:00
|
|
|
zc_lockfile
|
2019-02-13 16:48:53 +00:00
|
|
|
] ++ lib.optional (!isPy3k) subprocess32;
|
|
|
|
|
|
|
|
# no tests in PyPI tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-11-29 21:37:21 +00:00
|
|
|
pythonImportsCheck = [ "pytest_services" ];
|
|
|
|
|
2019-02-13 16:48:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Services plugin for pytest testing framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-services";
|
2019-02-13 16:48:53 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|