1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 requests,
7 tabulate,
8 pytestCheckHook,
9 requests-mock,
10}:
11
12buildPythonPackage rec {
13 pname = "remotezip";
14 version = "0.12.3";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "gtsystem";
19 repo = "python-remotezip";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-TNEM7Dm4iH4Z/P/PAqjJppbn1CKmyi9Xpq/sU9O8uxg=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ requests ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 requests-mock
31 ];
32
33 pythonImportsCheck = [ "remotezip" ];
34
35 meta = with lib; {
36 description = "Python module to access single members of a zip archive without downloading the full content";
37 mainProgram = "remotezip";
38 homepage = "https://github.com/gtsystem/python-remotezip";
39 license = licenses.mit;
40 maintainers = with maintainers; [ nickcao ];
41 };
42}