depot/third_party/nixpkgs/pkgs/development/python-modules/aiostream/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

49 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "aiostream";
version = "0.6.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "vxgmichel";
repo = "aiostream";
rev = "refs/tags/v${version}";
hash = "sha256-RJ+0o8w92GteMRPOIddCBQ4JApi5gXiwkJRNe9t2E7g=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov aiostream" ""
'';
build-system = [ setuptools ];
dependencies = [ typing-extensions ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aiostream" ];
meta = with lib; {
description = "Generator-based operators for asynchronous iteration";
homepage = "https://aiostream.readthedocs.io";
changelog = "https://github.com/vxgmichel/aiostream/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ rmcgibbo ];
};
}