python312Packages.llm-gguf: init at 0.2 (#364926)
[NixPkgs.git] / pkgs / development / python-modules / pyzipper / default.nix
blob8112958b10c35c1ea79d196c7f91b48919ab8ac9
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   pytestCheckHook,
7   pycryptodomex,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "pyzipper";
13   version = "0.3.6";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "danifus";
20     repo = "pyzipper";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-+fZXoAUeB/bUI3LrIFlMTktJgn+GNFBiDHvH2Jgo0pg=";
23   };
25   __darwinAllowLocalNetworking = true;
27   nativeBuildInputs = [ setuptools ];
29   propagatedBuildInputs = [ pycryptodomex ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "pyzipper" ];
35   disabledTests = [
36     # Tests are parsing CLI output
37     "test_args_from_interpreter_flags"
38     "test_bad_use"
39     "test_bad_use"
40     "test_check__all__"
41     "test_create_command"
42     "test_extract_command"
43     "test_main"
44     "test_temp_dir__forked_child"
45     "test_test_command"
46     # Test wants to import asyncore
47     "test_CleanImport"
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   };