83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lib
|
|
, passlib
|
|
, pytestCheckHook
|
|
, setuptools
|
|
, setuptools-git
|
|
, twine
|
|
, webtest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypiserver";
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-1tV3pVEC5sIjT0tjbujU7l41Jx7PQ1dCn4B1r94C9xE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-git ];
|
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
passlib
|
|
pytestCheckHook
|
|
twine
|
|
webtest
|
|
];
|
|
|
|
disabledTests = [
|
|
# fails to install the package
|
|
"test_hash_algos"
|
|
"test_pip_install_authed_succeeds"
|
|
"test_pip_install_open_succeeds"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# requires docker service running
|
|
"docker/test_docker.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pypiserver" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pypiserver/pypiserver";
|
|
description = "Minimal PyPI server for use with pip/easy_install";
|
|
license = with licenses; [ mit zlib ];
|
|
maintainers = with maintainers; [ austinbutler SuperSandro2000 ];
|
|
};
|
|
}
|