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