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