5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
45 lines
811 B
Nix
45 lines
811 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
psutil,
|
|
py,
|
|
pytest,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-xprocess";
|
|
version = "1.0.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-FeJwY3WG6rxWdV7l/MgcSL20a6fvfA1bG2QwLQgMxg8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Remove test QoL package from install_requires
|
|
substituteInPlace setup.py \
|
|
--replace "'pytest-cache', " ""
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [
|
|
psutil
|
|
py
|
|
];
|
|
|
|
# There's no tests in repo
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Pytest external process plugin";
|
|
homepage = "https://github.com/pytest-dev";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|