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