mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
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
This commit is contained in:
parent
5543fcb500
commit
14ba13d9ea
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user