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