nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchpatch
4, fetchPypi
5, pythonAtLeast
6, pythonOlder
7
8# native
9, flit-core
10
11# propagates
12, typing-extensions
13
14# tests
15, python
16}:
17
18buildPythonPackage rec {
19 pname = "aioitertools";
20 version = "0.10.0";
21 format = "pyproject";
22
23 disabled = pythonOlder "3.6";
24
25 src = fetchPypi {
26 inherit pname version;
27 hash = "sha256-fR0dSgPUYsWghAeH098JjxJYR+DTi4M7MPj4y8RaFCA=";
28 };
29
30 nativeBuildInputs = [
31 flit-core
32 ];
33
34 propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
35 typing-extensions
36 ];
37
38 pythonImportsCheck = [
39 "aioitertools"
40 ];
41
42 checkPhase = ''
43 ${python.interpreter} -m unittest discover
44 '';
45
46 meta = with lib; {
47 description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables";
48 license = licenses.mit;
49 homepage = "https://pypi.org/project/aioitertools/";
50 maintainers = with maintainers; [ teh ];
51 };
52}