python2.pkgs.zipp: init at 1.0.0

This commit is contained in:
Frederik Rietdijk 2020-06-07 09:37:42 +02:00
parent 5c08320af6
commit 07cc118adb
2 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytest
, pytest-flake8
, more-itertools
, toml
}:
buildPythonPackage rec {
pname = "zipp";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0v3qayhqv7vyzydpydwcp51bqciw8p2ajddw68x5k8zppc0vx3yk";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ more-itertools ];
checkInputs = [ pytest pytest-flake8 ];
checkPhase = ''
pytest
'';
# Prevent infinite recursion with pytest
doCheck = false;
meta = with lib; {
description = "Pathlib-compatible object wrapper for zip files";
homepage = "https://github.com/jaraco/zipp";
license = licenses.mit;
};
}

View File

@ -6493,7 +6493,10 @@ in {
zha-quirks = callPackage ../development/python-modules/zha-quirks { };
zipp = callPackage ../development/python-modules/zipp { };
zipp = if pythonOlder "3.6" then
callPackage ../development/python-modules/zipp/1.nix { }
else
callPackage ../development/python-modules/zipp { };
zope_broken = callPackage ../development/python-modules/zope_broken { };