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
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonAtLeast
|
2021-01-05 17:05:55 +00:00
|
|
|
, 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
|
2021-01-05 17:05:55 +00:00
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioitertools";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "0.10.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-03-05 16:20:37 +00:00
|
|
|
hash = "sha256-fR0dSgPUYsWghAeH098JjxJYR+DTi4M7MPj4y8RaFCA=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioitertools"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2022-02-10 20:34:41 +00:00
|
|
|
${python.interpreter} -m unittest discover
|
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";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://pypi.org/project/aioitertools/";
|
|
|
|
maintainers = with maintainers; [ teh ];
|
|
|
|
};
|
|
|
|
}
|