From 14ba13d9ea3f60b1764cf0a585c6f1eecd0cf407 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 4 Feb 2024 04:25:17 +0100 Subject: [PATCH] devpi-server: add py as runtime dep, add version test the test is not performed in the postCheck phase because the dependency py was previously provided as nativeTestInput. Running test in the installPhase ensure no extra dependencies are used which are not available at runtime fixes #286156 --- pkgs/development/tools/devpi-server/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/devpi-server/default.nix b/pkgs/development/tools/devpi-server/default.nix index 00511c83801d..0b64f8c615af 100644 --- a/pkgs/development/tools/devpi-server/default.nix +++ b/pkgs/development/tools/devpi-server/default.nix @@ -20,6 +20,8 @@ , strictyaml , waitress , webtest +, testers +, devpi-server }: @@ -64,6 +66,7 @@ buildPythonApplication rec { setuptools strictyaml waitress + py ] ++ passlib.optional-dependencies.argon2; nativeCheckInputs = [ @@ -103,6 +106,10 @@ buildPythonApplication rec { "devpi_server" ]; + passthru.tests.version = testers.testVersion { + package = devpi-server; + }; + meta = with lib;{ homepage = "http://doc.devpi.net"; description = "Github-style pypi index server and packaging meta tool";