about summary refs log tree commit diff
path: root/pkgs/development/python-modules/remotezip/default.nix
blob: 5a79b68e6b85143f762394f87c8252401a3ae262 (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
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, tabulate
, pytestCheckHook
, requests-mock
}:

buildPythonPackage {
  pname = "remotezip";
  version = "0.12.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "gtsystem";
    repo = "python-remotezip";
    # upstream does not tag releases, determined with git blame
    # pypi archive lacks files for tests
    rev = "da62e115bdb2071ad08a8c91f7ae48f2c1827e0c";
    hash = "sha256-su4dlV8KZuewf/yGdTnGHK9hNLHwGe10ditmFcne4Us=";
  };

  propagatedBuildInputs = [
    requests
    tabulate
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  checkInputs = [
    requests-mock
  ];

  pythonImportsCheck = [
    "remotezip"
  ];

  meta = with lib; {
    description = "Python module to access single members of a zip archive without downloading the full content";
    homepage = "https://github.com/gtsystem/python-remotezip";
    license = licenses.mit;
    maintainers = with maintainers; [ nickcao ];
  };
}