about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/remotezip/default.nix
blob: ec81726cd243fd70b441ab0f6e7996d193051397 (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
, setuptools
, requests
, tabulate
, pytestCheckHook
, requests-mock
}:

buildPythonPackage rec {
  pname = "remotezip";
  version = "0.12.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "gtsystem";
    repo = "python-remotezip";
    rev = "refs/tags/v${version}";
    hash = "sha256-TNEM7Dm4iH4Z/P/PAqjJppbn1CKmyi9Xpq/sU9O8uxg=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    requests
  ];

  nativeCheckInputs = [
    pytestCheckHook
    requests-mock
  ];

  pythonImportsCheck = [
    "remotezip"
  ];

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