diff --git a/pkgs/development/python-modules/daemonocle/default.nix b/pkgs/development/python-modules/daemonocle/default.nix index ac470b83f7b2..0bdc795159ca 100644 --- a/pkgs/development/python-modules/daemonocle/default.nix +++ b/pkgs/development/python-modules/daemonocle/default.nix @@ -4,27 +4,44 @@ , click , psutil , pytestCheckHook +, lsof }: buildPythonPackage rec { pname = "daemonocle"; - version = "1.0.2"; + version = "1.2.3"; src = fetchFromGitHub { owner = "jnrbsn"; repo = "daemonocle"; rev = "v${version}"; - hash = "sha256-kDCbosXTIffuCzHcReXhiW4YPbxDW3OPnTbMC/EGJrM="; + hash = "sha256-K+IqpEQ4yhfSguPPm2Ult3kGNO/9H56B+kD5ntaCZdk="; }; - propagatedBuildInputs = [ click psutil ]; - checkInputs = [ pytestCheckHook ]; + propagatedBuildInputs = [ + click + psutil + ]; + + checkInputs = [ + pytestCheckHook + lsof + ]; # One third of the tests fail on the sandbox with # "psutil.NoSuchProcess: no process found with pid 0". - doCheck = false; - disabledTests = [ "sudo" ]; - pythonImportsCheck = [ "daemonocle" ]; + disabledTests = [ + "sudo" + "test_chrootdir_without_permission" + "test_uid_and_gid_without_permission" + "test_multi_daemon" + "test_multi_daemon_action_worker_id" + "test_exec_worker" + ]; + + pythonImportsCheck = [ + "daemonocle" + ]; meta = with lib; { description = "A Python library for creating super fancy Unix daemons"; @@ -36,7 +53,7 @@ buildPythonPackage rec { ''; homepage = "https://github.com/jnrbsn/daemonocle"; license = licenses.mit; - maintainers = [ maintainers.AluisioASG ]; + maintainers = with maintainers; [ AluisioASG ]; platforms = platforms.unix; }; }