depot/third_party/nixpkgs/pkgs/development/python-modules/aioitertools/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

52 lines
916 B
Nix

{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, pythonAtLeast
, pythonOlder
# native
, flit-core
# propagates
, typing-extensions
# tests
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "aioitertools";
version = "0.10.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-fR0dSgPUYsWghAeH098JjxJYR+DTi4M7MPj4y8RaFCA=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
typing-extensions
];
checkInputs = [
unittestCheckHook
];
pythonImportsCheck = [
"aioitertools"
];
meta = with lib; {
description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables";
license = licenses.mit;
homepage = "https://pypi.org/project/aioitertools/";
maintainers = with maintainers; [ teh ];
};
}