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