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