1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools-scm,
6 pytest,
7 pytest-flake8,
8 more-itertools,
9}:
10
11buildPythonPackage rec {
12 pname = "zipp";
13 version = "1.0.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "0v3qayhqv7vyzydpydwcp51bqciw8p2ajddw68x5k8zppc0vx3yk";
18 };
19
20 nativeBuildInputs = [ setuptools-scm ];
21
22 propagatedBuildInputs = [ more-itertools ];
23
24 nativeCheckInputs = [
25 pytest
26 pytest-flake8
27 ];
28
29 checkPhase = ''
30 pytest
31 '';
32
33 # Prevent infinite recursion with pytest
34 doCheck = false;
35
36 meta = with lib; {
37 description = "Pathlib-compatible object wrapper for zip files";
38 homepage = "https://github.com/jaraco/zipp";
39 license = licenses.mit;
40 };
41}