2019-11-22 04:04:48 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, docutils
|
|
|
|
, lockfile
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, testscenarios
|
|
|
|
, twine
|
|
|
|
}:
|
2018-02-28 01:17:26 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-daemon";
|
2019-11-11 12:13:40 +01:00
|
|
|
version = "2.2.4";
|
2018-02-28 01:17:26 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-11 12:13:40 +01:00
|
|
|
sha256 = "57c84f50a04d7825515e4dbf3a31c70cc44414394a71608dee6cfde469e81766";
|
2018-02-28 01:17:26 +01:00
|
|
|
};
|
|
|
|
|
2019-11-22 04:04:48 +01:00
|
|
|
nativeBuildInputs = [ twine ];
|
2018-02-28 01:17:26 +01:00
|
|
|
propagatedBuildInputs = [ docutils lockfile ];
|
|
|
|
|
2019-11-22 04:04:48 +01: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 01:17:26 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to implement a well-behaved Unix daemon process";
|
2019-05-25 17:11:31 +02:00
|
|
|
homepage = "https://pagure.io/python-daemon/";
|
2018-02-28 01:17:26 +01:00
|
|
|
license = [ licenses.gpl3Plus licenses.asl20 ];
|
|
|
|
};
|
|
|
|
}
|