3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/python-daemon/default.nix

41 lines
883 B
Nix
Raw Normal View History

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