nixpkgs/pkgs/development/python-modules/pytest-xprocess/default.nix
2022-09-19 10:37:41 +02:00

37 lines
786 B
Nix

{ lib, buildPythonPackage, fetchPypi
, psutil
, pytest
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pytest-xprocess";
version = "0.20.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-AhZ1IsTcdZ+RxKsZhUY5zR6fbgq/ynXhGWgrVB0b1j8=";
};
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ pytest ];
propagatedBuildInputs = [ psutil ];
# Remove test QoL package from install_requires
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-cache', " ""
'';
# 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 = with maintainers; [ jonringer ];
};
}