biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / python-daemon / default.nix
blobe8e8e2c018f79fb2e863e3d899d3aba25ea2ecda
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   docutils,
6   lockfile,
7   packaging,
8   pytestCheckHook,
9   testscenarios,
10   testtools,
11   setuptools,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "python-daemon";
17   version = "3.0.1";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-bFdFI3L36v9Ak0ocA60YJr9eeTVY6H/vSRMeZGS02uU=";
25   };
27   postPatch = ''
28     sed -i "s/setuptools\.extern\.//g" version.py test_version.py
29   '';
31   nativeBuildInputs = [
32     setuptools
33     packaging
34   ];
36   propagatedBuildInputs = [
37     docutils
38     lockfile
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43     testscenarios
44     testtools
45   ];
47   disabledTests = [
48     "begin_with_TestCase"
49     "changelog_TestCase"
50     "ChangeLogEntry"
51     "DaemonContext"
52     "file_descriptor"
53     "get_distribution_version_info_TestCase"
54     "InvalidFormatError_TestCase"
55     "make_year_range_TestCase"
56     "ModuleExceptions_TestCase"
57     "test_metaclass_not_called"
58     "test_passes_specified_object"
59     "test_returns_expected"
60     "value_TestCase"
61     "YearRange_TestCase"
62   ];
64   pythonImportsCheck = [
65     "daemon"
66     "daemon.daemon"
67     "daemon.pidfile"
68   ];
70   meta = with lib; {
71     description = "Library to implement a well-behaved Unix daemon process";
72     homepage = "https://pagure.io/python-daemon/";
73     # See "Copying" section in https://pagure.io/python-daemon/blob/main/f/README
74     license = with licenses; [
75       gpl3Plus
76       asl20
77     ];
78     maintainers = [ ];
79   };