2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-06-20 14:57:18 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
typing-extensions,
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiostream";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.6.2";
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vxgmichel";
|
2024-06-20 14:57:18 +00:00
|
|
|
repo = "aiostream";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-uMK3WFO4IvrI7QBGiu1MOInRfGgdWufe4zefmT1Bjv0=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
2024-06-20 14:57:18 +00:00
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail " --cov aiostream" ""
|
2023-10-09 19:29:22 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ typing-extensions ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aiostream" ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generator-based operators for asynchronous iteration";
|
|
|
|
homepage = "https://aiostream.readthedocs.io";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/vxgmichel/aiostream/releases/tag/v${version}";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.gpl3Only;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ rmcgibbo ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|