about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aioitertools/default.nix
blob: 1c5ce1e2faeb3884f81e5feed0fa81c02e986566 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, typing-extensions
, coverage
, python
, toml
}:

buildPythonPackage rec {
  pname = "aioitertools";
  version = "0.7.1";
  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "18ql6k2j1839jf2rmmmm29v6fb7mr59l75z8nlf0sadmydy6r9al";
  };

  propagatedBuildInputs = [ typing-extensions ];
  checkInputs = [ coverage toml ];

  checkPhase = ''
    ${python.interpreter} -m coverage run -m aioitertools.tests
  '';

  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 ];
  };
}