2019-11-22 03:04:48 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, docutils
|
|
|
|
, lockfile
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, testscenarios
|
|
|
|
, twine
|
|
|
|
}:
|
2018-02-28 00:17:26 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-daemon";
|
2019-11-11 11:13:40 +00:00
|
|
|
version = "2.2.4";
|
2018-02-28 00:17:26 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-11 11:13:40 +00:00
|
|
|
sha256 = "57c84f50a04d7825515e4dbf3a31c70cc44414394a71608dee6cfde469e81766";
|
2018-02-28 00:17:26 +00:00
|
|
|
};
|
|
|
|
|
2019-11-22 03:04:48 +00:00
|
|
|
nativeBuildInputs = [ twine ];
|
2018-02-28 00:17:26 +00:00
|
|
|
propagatedBuildInputs = [ docutils lockfile ];
|
|
|
|
|
2019-11-22 03:04:48 +00:00
|
|
|
checkInputs = [ pytest mock testscenarios ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest -k 'not detaches_process_context \
|
|
|
|
and not standard_stream_file_descriptors'
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"daemon"
|
|
|
|
"daemon.daemon"
|
|
|
|
"daemon.pidfile"
|
|
|
|
"daemon.runner"
|
|
|
|
];
|
|
|
|
|
2018-02-28 00:17:26 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to implement a well-behaved Unix daemon process";
|
2019-05-25 16:11:31 +01:00
|
|
|
homepage = "https://pagure.io/python-daemon/";
|
2018-02-28 00:17:26 +00:00
|
|
|
license = [ licenses.gpl3Plus licenses.asl20 ];
|
|
|
|
};
|
|
|
|
}
|