Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 docutils, 6 lockfile, 7 pytestCheckHook, 8 testscenarios, 9 testtools, 10 twine, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "python-daemon"; 16 version = "3.0.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-bFdFI3L36v9Ak0ocA60YJr9eeTVY6H/vSRMeZGS02uU="; 24 }; 25 26 nativeBuildInputs = [ twine ]; 27 28 propagatedBuildInputs = [ 29 docutils 30 lockfile 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 testscenarios 36 testtools 37 ]; 38 39 disabledTests = [ 40 "begin_with_TestCase" 41 "changelog_TestCase" 42 "ChangeLogEntry" 43 "DaemonContext" 44 "file_descriptor" 45 "get_distribution_version_info_TestCase" 46 "InvalidFormatError_TestCase" 47 "make_year_range_TestCase" 48 "ModuleExceptions_TestCase" 49 "test_metaclass_not_called" 50 "test_passes_specified_object" 51 "test_returns_expected" 52 "value_TestCase" 53 "YearRange_TestCase" 54 ]; 55 56 pythonImportsCheck = [ 57 "daemon" 58 "daemon.daemon" 59 "daemon.pidfile" 60 ]; 61 62 meta = with lib; { 63 description = "Library to implement a well-behaved Unix daemon process"; 64 homepage = "https://pagure.io/python-daemon/"; 65 # See "Copying" section in https://pagure.io/python-daemon/blob/main/f/README 66 license = with licenses; [ 67 gpl3Plus 68 asl20 69 ]; 70 maintainers = [ ]; 71 }; 72}