33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
37 lines
701 B
Nix
37 lines
701 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, pytest
|
|
, pytest-flake8
|
|
, more-itertools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zipp";
|
|
version = "1.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0v3qayhqv7vyzydpydwcp51bqciw8p2ajddw68x5k8zppc0vx3yk";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ more-itertools ];
|
|
|
|
nativeCheckInputs = [ 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;
|
|
};
|
|
}
|