depot/third_party/nixpkgs/pkgs/development/python-modules/pyzipper/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

57 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
pycryptodomex,
setuptools,
}:
buildPythonPackage rec {
pname = "pyzipper";
version = "0.3.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "danifus";
repo = "pyzipper";
rev = "refs/tags/v${version}";
hash = "sha256-+fZXoAUeB/bUI3LrIFlMTktJgn+GNFBiDHvH2Jgo0pg=";
};
__darwinAllowLocalNetworking = true;
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ pycryptodomex ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyzipper" ];
disabledTests = [
# Tests are parsing CLI output
"test_args_from_interpreter_flags"
"test_bad_use"
"test_bad_use"
"test_check__all__"
"test_create_command"
"test_extract_command"
"test_main"
"test_temp_dir__forked_child"
"test_test_command"
# Test wants to import asyncore
"test_CleanImport"
];
meta = with lib; {
description = "Python zipfile extensions";
homepage = "https://github.com/danifus/pyzipper";
changelog = "https://github.com/danifus/pyzipper/blob/v${version}/HISTORY.rst";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}