1{ lib
2, buildPythonPackage
3, fetchPypi
4, docutils
5, lockfile
6, mock
7, pytest_4
8, testscenarios
9, testtools
10, twine
11}:
12
13buildPythonPackage rec {
14 pname = "python-daemon";
15 version = "2.3.0";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "bda993f1623b1197699716d68d983bb580043cf2b8a66a01274d9b8297b0aeaf";
20 };
21
22 nativeBuildInputs = [
23 twine
24 ];
25
26 propagatedBuildInputs = [
27 docutils
28 lockfile
29 ];
30
31 checkInputs = [
32 pytest_4
33 mock
34 testscenarios
35 testtools
36 ];
37
38 # tests disabled due to incompatibilities with testtools>=2.5.0
39 checkPhase = ''
40 runHook preCheck
41 pytest -k ' \
42 not detaches_process_context and \
43 not standard_stream_file_descriptors and \
44 not test_module_has_attribute and \
45 not test_module_attribute_has_duck_type'
46 runHook postCheck
47 '';
48
49 pythonImportsCheck = [
50 "daemon"
51 "daemon.daemon"
52 "daemon.pidfile"
53 "daemon.runner"
54 ];
55
56 meta = with lib; {
57 description = "Library to implement a well-behaved Unix daemon process";
58 homepage = "https://pagure.io/python-daemon/";
59 license = with licenses; [
60 gpl3Plus
61 asl20
62 ];
63 maintainers = with maintainers; [ ];
64 };
65}