about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pypiserver/default.nix
blob: d1c6fee942ceab2f8a18599ca2bb5319fb9595c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ buildPythonPackage, fetchFromGitHub, lib, passlib, pytestCheckHook, setuptools
, setuptools-git, twine, webtest }:

buildPythonPackage rec {
  pname = "pypiserver";
  version = "1.4.2";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "v${version}";
    sha256 = "1z5rsmqgin98m6ihy1ww42fxxr6jb4hzldn8vlc9ssv7sawdz8vz";
  };

  nativeBuildInputs = [ setuptools-git ];

  propagatedBuildInputs = [ setuptools ];

  preCheck = ''
    export HOME=$TMPDIR
  '';

  checkInputs = [ passlib pytestCheckHook twine webtest ];

  # These tests try to use the network
  disabledTests = [
    "test_pipInstall_openOk"
    "test_pipInstall_authedOk"
    "test_hash_algos"
  ];

  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 = [ maintainers.austinbutler ];
  };
}