blob: a28ebf8fb69a09cd9de86ebe31e49b5094d6483f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
pycryptodomex,
setuptools,
}:
buildPythonPackage rec {
pname = "pyzipper";
version = "0.3.6";
pyproject = true;
src = fetchFromGitHub {
owner = "danifus";
repo = "pyzipper";
tag = "v${version}";
hash = "sha256-+fZXoAUeB/bUI3LrIFlMTktJgn+GNFBiDHvH2Jgo0pg=";
};
__darwinAllowLocalNetworking = true;
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ pycryptodomex ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyzipper" ];
doCheck = pythonOlder "3.13"; # depends on removed nntplib battery
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 = {
description = "Python zipfile extensions";
homepage = "https://github.com/danifus/pyzipper";
changelog = "https://github.com/danifus/pyzipper/blob/v${version}/HISTORY.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|