Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ 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 = [ ]; };}