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