2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-01-13 20:06:32 +00:00
|
|
|
, fetchpatch
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
# native
|
|
|
|
, flit-core
|
|
|
|
|
|
|
|
# propagates
|
2021-01-05 17:05:55 +00:00
|
|
|
, typing-extensions
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
# tests
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioitertools";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "0.11.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-QsaLjdOmnCv38iM7999LtYtVe8pSUqwC7VGHu8Z9aDE=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
2022-02-10 20:34:41 +00:00
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioitertools"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-03-05 16:20:37 +00:00
|
|
|
description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables";
|
2022-09-22 12:36:57 +00:00
|
|
|
homepage = "https://aioitertools.omnilib.dev/";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ teh ];
|
|
|
|
};
|
|
|
|
}
|