1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6, pycryptodomex
7}:
8
9buildPythonPackage rec {
10 pname = "pyzipper";
11 version = "0.3.6";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "danifus";
18 repo = "pyzipper";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-+fZXoAUeB/bUI3LrIFlMTktJgn+GNFBiDHvH2Jgo0pg=";
21 };
22
23 propagatedBuildInputs = [
24 pycryptodomex
25 ];
26
27 __darwinAllowLocalNetworking = true;
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "pyzipper"
35 ];
36
37 disabledTests = [
38 # Tests are parsing CLI output
39 "test_args_from_interpreter_flags"
40 "test_bad_use"
41 "test_bad_use"
42 "test_check__all__"
43 "test_create_command"
44 "test_extract_command"
45 "test_main"
46 "test_temp_dir__forked_child"
47 "test_test_command"
48 ];
49
50 meta = with lib; {
51 description = "Python zipfile extensions";
52 homepage = "https://github.com/danifus/pyzipper";
53 changelog = "https://github.com/danifus/pyzipper/blob/v${version}/HISTORY.rst";
54 license = licenses.mit;
55 maintainers = with maintainers; [ fab ];
56 };
57}