depot/third_party/nixpkgs/pkgs/development/python-modules/zipp/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

38 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;
};
}