Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / remotezip / default.nix
blob5a79b68e6b85143f762394f87c8252401a3ae262
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , requests
5 , tabulate
6 , pytestCheckHook
7 , requests-mock
8 }:
10 buildPythonPackage {
11   pname = "remotezip";
12   version = "0.12.1";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "gtsystem";
17     repo = "python-remotezip";
18     # upstream does not tag releases, determined with git blame
19     # pypi archive lacks files for tests
20     rev = "da62e115bdb2071ad08a8c91f7ae48f2c1827e0c";
21     hash = "sha256-su4dlV8KZuewf/yGdTnGHK9hNLHwGe10ditmFcne4Us=";
22   };
24   propagatedBuildInputs = [
25     requests
26     tabulate
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   checkInputs = [
34     requests-mock
35   ];
37   pythonImportsCheck = [
38     "remotezip"
39   ];
41   meta = with lib; {
42     description = "Python module to access single members of a zip archive without downloading the full content";
43     homepage = "https://github.com/gtsystem/python-remotezip";
44     license = licenses.mit;
45     maintainers = with maintainers; [ nickcao ];
46   };