aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-xprocess/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-xprocess/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-xprocess/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-xprocess/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-xprocess/default.nix
new file mode 100644
index 000000000000..124adb8b2a53
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-xprocess/default.nix
@@ -0,0 +1,34 @@
+{ lib, buildPythonPackage, fetchPypi
+, psutil
+, pytest
+, setuptools_scm
+}:
+
+buildPythonPackage rec {
+ pname = "pytest-xprocess";
+ version = "0.17.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "2506d637c4f54c65dd195c1d094abdeedacc9bf0689131d847a324ad0fc951c0";
+ };
+
+ nativeBuildInputs = [ setuptools_scm ];
+ propagatedBuildInputs = [ psutil pytest ];
+
+ # 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 ];
+ };
+}