mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
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.
52 lines
901 B
Nix
52 lines
901 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchpatch
|
|
, fetchPypi
|
|
, pythonOlder
|
|
|
|
# native
|
|
, flit-core
|
|
|
|
# propagates
|
|
, typing-extensions
|
|
|
|
# tests
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioitertools";
|
|
version = "0.11.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QsaLjdOmnCv38iM7999LtYtVe8pSUqwC7VGHu8Z9aDE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aioitertools"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables";
|
|
homepage = "https://aioitertools.omnilib.dev/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ teh ];
|
|
};
|
|
}
|