1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, click 5, psutil 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "daemonocle"; 11 version = "1.0.2"; 12 13 src = fetchFromGitHub { 14 owner = "jnrbsn"; 15 repo = "daemonocle"; 16 rev = "v${version}"; 17 hash = "sha256-kDCbosXTIffuCzHcReXhiW4YPbxDW3OPnTbMC/EGJrM="; 18 }; 19 20 propagatedBuildInputs = [ click psutil ]; 21 checkInputs = [ pytestCheckHook ]; 22 23 # One third of the tests fail on the sandbox with 24 # "psutil.NoSuchProcess: no process found with pid 0". 25 doCheck = false; 26 disabledTests = [ "sudo" ]; 27 pythonImportsCheck = [ "daemonocle" ]; 28 29 meta = with lib; { 30 description = "A Python library for creating super fancy Unix daemons"; 31 longDescription = '' 32 daemonocle is a library for creating your own Unix-style daemons 33 written in Python. It solves many problems that other daemon 34 libraries have and provides some really useful features you don't 35 often see in other daemons. 36 ''; 37 homepage = "https://github.com/jnrbsn/daemonocle"; 38 license = licenses.mit; 39 maintainers = [ maintainers.AluisioASG ]; 40 platforms = platforms.unix; 41 }; 42}