depot/third_party/nixpkgs/pkgs/development/python-modules/aioitertools/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
879 B
Nix

{
lib,
buildPythonPackage,
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 ];
};
}