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