aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-testmon/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-testmon/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-testmon/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-testmon/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-testmon/default.nix
new file mode 100644
index 000000000000..b86947f5f758
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-testmon/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, coverage
+, pytest
+}:
+
+buildPythonPackage rec {
+ pname = "pytest-testmon";
+ version = "1.0.3";
+ disabled = pythonOlder "3.6";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "927a73dd510b90a2e4a48ea4d37e82c4490b56caa745663262024ea0cd278169";
+ };
+
+ propagatedBuildInputs = [ coverage ];
+
+ checkInputs = [ pytest ];
+
+ # avoid tests which try to import unittest_mixins
+ # unittest_mixins doesn't seem to be very active
+ checkPhase = ''
+ cd test
+ pytest test_{core,process_code,pytest_assumptions}.py
+ '';
+
+ meta = with lib; {
+ homepage = "https://github.com/tarpas/pytest-testmon/";
+ description = "This is a py.test plug-in which automatically selects and re-executes only tests affected by recent changes";
+ license = licenses.mit;
+ maintainers = [ maintainers.dmvianna ];
+ };
+}
+