2020-12-31 17:55:00 +01:00
|
|
|
{ lib
|
2021-01-25 09:26:54 +01:00
|
|
|
|
2020-12-31 17:55:00 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
|
|
|
, coverage
|
|
|
|
, python
|
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioitertools";
|
2021-08-13 08:26:56 +02:00
|
|
|
version = "0.8.0";
|
2020-12-31 17:55:00 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-13 08:26:56 +02:00
|
|
|
sha256 = "8b02facfbc9b0f1867739949a223f3d3267ed8663691cc95abd94e2c1d8c2b46";
|
2020-12-31 17:55:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|