depot/third_party/nixpkgs/pkgs/development/python-modules/aiohttp-isal/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

51 lines
954 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
aiohttp,
isal,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aiohttp-isal";
version = "0.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiohttp-isal";
rev = "refs/tags/v${version}";
hash = "sha256-sAtAzqMJoKryhB8q/TxqgFE+Z4Uxxw0hghk/Y2VNvx0=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
isal
];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
sed -i '/addopts/d' pyproject.toml
'';
pythonImportsCheck = [ "aiohttp_isal" ];
meta = with lib; {
changelog = "https://github.com/bdraco/aiohttp-isal/blob/${src.rev}/CHANGELOG.md";
description = "Isal support for aiohttp";
homepage = "https://github.com/bdraco/aiohttp-isal";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}