1{ lib, buildPythonPackage, fetchPypi
2, psutil
3, pytest
4, setuptools-scm
5}:
6
7buildPythonPackage rec {
8 pname = "pytest-xprocess";
9 version = "0.20.0";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "sha256-AhZ1IsTcdZ+RxKsZhUY5zR6fbgq/ynXhGWgrVB0b1j8=";
14 };
15
16 nativeBuildInputs = [ setuptools-scm ];
17
18 buildInputs = [ pytest ];
19
20 propagatedBuildInputs = [ psutil ];
21
22 # Remove test QoL package from install_requires
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace "'pytest-cache', " ""
26 '';
27
28 # There's no tests in repo
29 doCheck = false;
30
31 meta = with lib; {
32 description = "Pytest external process plugin";
33 homepage = "https://github.com/pytest-dev";
34 license = licenses.mit;
35 maintainers = with maintainers; [ jonringer ];
36 };
37}