567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
43 lines
739 B
Nix
43 lines
739 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
pytest,
|
|
pytest-flake8,
|
|
more-itertools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zipp";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
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 = {
|
|
description = "Pathlib-compatible object wrapper for zip files";
|
|
homepage = "https://github.com/jaraco/zipp";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|