python312Packages.aiohttp-isal: init at 0.3.1

This commit is contained in:
Martin Weinelt 2024-05-04 16:14:41 +02:00
parent 5a5c2e0e89
commit 5e455b5f95
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, poetry-core
# dependencies
, aiohttp
, isal
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiohttp-isal";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiohttp-isal";
rev = "v${version}";
hash = "sha256-rSXV5Z5JdznQGtRI83UIbaSfbIYkUHphJTVK/LM2V4U=";
};
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 ];
};
}

View File

@ -249,6 +249,8 @@ self: super: with self; {
aiohttp-fast-url-dispatcher = callPackage ../development/python-modules/aiohttp-fast-url-dispatcher { }; aiohttp-fast-url-dispatcher = callPackage ../development/python-modules/aiohttp-fast-url-dispatcher { };
aiohttp-isal = callPackage ../development/python-modules/aiohttp-isal { };
aiohttp-jinja2 = callPackage ../development/python-modules/aiohttp-jinja2 { }; aiohttp-jinja2 = callPackage ../development/python-modules/aiohttp-jinja2 { };
aiohttp-oauthlib = callPackage ../development/python-modules/aiohttp-oauthlib { }; aiohttp-oauthlib = callPackage ../development/python-modules/aiohttp-oauthlib { };