Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyzipper / default.nix
bloba0ad73fb8a3b4edb8daa64bf79ad9e7787849af1
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 , pycryptodomex
7 }:
9 buildPythonPackage rec {
10   pname = "pyzipper";
11   version = "0.3.6";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "danifus";
18     repo = "pyzipper";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-+fZXoAUeB/bUI3LrIFlMTktJgn+GNFBiDHvH2Jgo0pg=";
21   };
23   propagatedBuildInputs = [
24     pycryptodomex
25   ];
27   __darwinAllowLocalNetworking = true;
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "pyzipper"
35   ];
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   ];
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   };