1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 poetry-core,
8
9 # dependencies
10 aiohttp,
11 isal,
12
13 # tests
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "aiohttp-isal";
19 version = "0.3.1";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "bdraco";
24 repo = "aiohttp-isal";
25 rev = "v${version}";
26 hash = "sha256-rSXV5Z5JdznQGtRI83UIbaSfbIYkUHphJTVK/LM2V4U=";
27 };
28
29 build-system = [ poetry-core ];
30
31 dependencies = [
32 aiohttp
33 isal
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 preCheck = ''
39 sed -i '/addopts/d' pyproject.toml
40 '';
41
42 pythonImportsCheck = [ "aiohttp_isal" ];
43
44 meta = with lib; {
45 changelog = "https://github.com/bdraco/aiohttp-isal/blob/${src.rev}/CHANGELOG.md";
46 description = "Isal support for aiohttp";
47 homepage = "https://github.com/bdraco/aiohttp-isal";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ hexa ];
50 };
51}