3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/zipp/default.nix
2021-06-03 12:44:33 +02:00

39 lines
719 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytest
, pytest-flake8
, more-itertools
, toml
}:
buildPythonPackage rec {
pname = "zipp";
version = "3.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "3607921face881ba3e026887d8150cca609d517579abe052ac81fc5aeffdbd76";
};
nativeBuildInputs = [ setuptools-scm toml ];
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;
};
}