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