summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/python-daemon')
-rw-r--r--pkgs/development/python-modules/python-daemon/default.nix39
1 files changed, 32 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/python-daemon/default.nix b/pkgs/development/python-modules/python-daemon/default.nix
index 246e253e191d..9df9bf8a593b 100644
--- a/pkgs/development/python-modules/python-daemon/default.nix
+++ b/pkgs/development/python-modules/python-daemon/default.nix
@@ -1,9 +1,12 @@
-{ lib, buildPythonPackage, fetchPypi
+{ lib
+, buildPythonPackage
+, fetchPypi
, docutils
, lockfile
, mock
, pytest_4
, testscenarios
+, testtools
, twine
}:
@@ -16,13 +19,31 @@ buildPythonPackage rec {
sha256 = "bda993f1623b1197699716d68d983bb580043cf2b8a66a01274d9b8297b0aeaf";
};
- nativeBuildInputs = [ twine ];
- propagatedBuildInputs = [ docutils lockfile ];
+ nativeBuildInputs = [
+ twine
+ ];
+
+ propagatedBuildInputs = [
+ docutils
+ lockfile
+ ];
+
+ checkInputs = [
+ pytest_4
+ mock
+ testscenarios
+ testtools
+ ];
- checkInputs = [ pytest_4 mock testscenarios ];
+ # tests disabled due to incompatibilities with testtools>=2.5.0
checkPhase = ''
- pytest -k 'not detaches_process_context \
- and not standard_stream_file_descriptors'
+ runHook preCheck
+ pytest -k ' \
+ not detaches_process_context and \
+ not standard_stream_file_descriptors and \
+ not test_module_has_attribute and \
+ not test_module_attribute_has_duck_type'
+ runHook postCheck
'';
pythonImportsCheck = [
@@ -35,6 +56,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Library to implement a well-behaved Unix daemon process";
homepage = "https://pagure.io/python-daemon/";
- license = [ licenses.gpl3Plus licenses.asl20 ];
+ license = with licenses; [
+ gpl3Plus
+ asl20
+ ];
+ maintainers = with maintainers; [ ];
};
}