Files
nixpkgs/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1.0 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
isal,
poetry-core,
pytestCheckHook,
zlib-ng,
}:
buildPythonPackage rec {
pname = "aiohttp-fast-zlib";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiohttp-fast-zlib";
tag = "v${version}";
hash = "sha256-N38eMxxovpBM3n0cb7glKyBQ9GD79uyFxq5L4pKv248=";
};
postPatch = ''
sed -i "/addopts =/d" pyproject.toml
'';
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
optional-dependencies = {
isal = [ isal ];
zlib_ng = [ zlib-ng ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "aiohttp_fast_zlib" ];
meta = with lib; {
description = "Use the fastest installed zlib compatible library with aiohttp";
homepage = "https://github.com/bdraco/aiohttp-fast-zlib";
changelog = "https://github.com/bdraco/aiohttp-fast-zlib/blob/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = [ ];
};
}