Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, passlib 5, pytestCheckHook 6, setuptools 7, setuptools-git 8, twine 9, webtest 10}: 11 12buildPythonPackage rec { 13 pname = "pypiserver"; 14 version = "1.5.1"; 15 16 src = fetchFromGitHub { 17 owner = pname; 18 repo = pname; 19 rev = "v${version}"; 20 hash = "sha256-1tV3pVEC5sIjT0tjbujU7l41Jx7PQ1dCn4B1r94C9xE="; 21 }; 22 23 nativeBuildInputs = [ setuptools-git ]; 24 25 propagatedBuildInputs = [ setuptools ]; 26 27 preCheck = '' 28 export HOME=$TMPDIR 29 ''; 30 31 nativeCheckInputs = [ 32 passlib 33 pytestCheckHook 34 twine 35 webtest 36 ]; 37 38 disabledTests = [ 39 # fails to install the package 40 "test_hash_algos" 41 "test_pip_install_authed_succeeds" 42 "test_pip_install_open_succeeds" 43 ]; 44 45 disabledTestPaths = [ 46 # requires docker service running 47 "docker/test_docker.py" 48 ]; 49 50 pythonImportsCheck = [ "pypiserver" ]; 51 52 meta = with lib; { 53 homepage = "https://github.com/pypiserver/pypiserver"; 54 description = "Minimal PyPI server for use with pip/easy_install"; 55 license = with licenses; [ mit zlib ]; 56 maintainers = with maintainers; [ austinbutler SuperSandro2000 ]; 57 }; 58}