1{ lib, buildPythonPackage, fetchPypi
2, docutils
3, lockfile
4, mock
5, pytest_4
6, testscenarios
7, twine
8}:
9
10buildPythonPackage rec {
11 pname = "python-daemon";
12 version = "2.2.4";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "57c84f50a04d7825515e4dbf3a31c70cc44414394a71608dee6cfde469e81766";
17 };
18
19 nativeBuildInputs = [ twine ];
20 propagatedBuildInputs = [ docutils lockfile ];
21
22 checkInputs = [ pytest_4 mock testscenarios ];
23 checkPhase = ''
24 pytest -k 'not detaches_process_context \
25 and not standard_stream_file_descriptors'
26 '';
27
28 pythonImportsCheck = [
29 "daemon"
30 "daemon.daemon"
31 "daemon.pidfile"
32 "daemon.runner"
33 ];
34
35 meta = with lib; {
36 description = "Library to implement a well-behaved Unix daemon process";
37 homepage = "https://pagure.io/python-daemon/";
38 license = [ licenses.gpl3Plus licenses.asl20 ];
39 };
40}