pythonPackages.daemonocle: init at 1.0.2

This commit is contained in:
Aluísio Augusto Silva Gonçalves 2019-08-18 12:42:05 -03:00
parent 5e402a3ab9
commit 799cfd9545
No known key found for this signature in database
GPG key ID: DA6EA2FACDB1CBD2
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, psutil
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "daemonocle";
version = "1.0.2";
src = fetchFromGitHub {
owner = "jnrbsn";
repo = "daemonocle";
rev = "v${version}";
hash = "sha256-kDCbosXTIffuCzHcReXhiW4YPbxDW3OPnTbMC/EGJrM=";
};
propagatedBuildInputs = [ click psutil ];
checkInputs = [ pytestCheckHook ];
# One third of the tests fail on the sandbox with
# "psutil.NoSuchProcess: no process found with pid 0".
doCheck = false;
disabledTests = [ "sudo" ];
pythonImportsCheck = [ "daemonocle" ];
meta = with lib; {
description = "A Python library for creating super fancy Unix daemons";
longDescription = ''
daemonocle is a library for creating your own Unix-style daemons
written in Python. It solves many problems that other daemon
libraries have and provides some really useful features you don't
often see in other daemons.
'';
homepage = "https://github.com/jnrbsn/daemonocle";
license = licenses.mit;
maintainers = [ maintainers.AluisioASG ];
platforms = platforms.unix;
};
}

View file

@ -1452,6 +1452,8 @@ in {
daemonize = callPackage ../development/python-modules/daemonize { };
daemonocle = callPackage ../development/python-modules/daemonocle { };
daphne = callPackage ../development/python-modules/daphne { };
darcsver = callPackage ../development/python-modules/darcsver { };