2019-04-01 16:58:26 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, pytest
|
|
|
|
, pytest-flake8
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zipp";
|
2019-10-16 11:43:17 +02:00
|
|
|
version = "0.5.2";
|
2019-04-01 16:58:26 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 11:43:17 +02:00
|
|
|
sha256 = "4970c3758f4e89a7857a973b1e2a5d75bcdc47794442f2e2dd4fe8e0466e809a";
|
2019-04-01 16:58:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytest-flake8 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2019-06-15 19:22:35 +02:00
|
|
|
# Prevent infinite recursion with pytest
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-04-01 16:58:26 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pathlib-compatible object wrapper for zip files";
|
|
|
|
homepage = https://github.com/jaraco/zipp;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|