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