nixpkgs/pkgs/development/python-modules/zipp/default.nix

35 lines
641 B
Nix
Raw Normal View History

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