1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytest-asyncio,
7 pytestCheckHook,
8 setuptools,
9 typing-extensions,
10}:
11
12buildPythonPackage rec {
13 pname = "elvia";
14 version = "0.1.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "andersem";
19 repo = "elvia-python";
20 tag = "v${version}";
21 hash = "sha256-oGXs+EwEIykkq8KjK7qNnZfLj4ZoKlgkldUiJlAI1gA=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 aiohttp
28 typing-extensions
29 ];
30
31 nativeCheckInputs = [
32 pytest-asyncio
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "elvia" ];
37
38 meta = {
39 description = "Unofficial API bindings for Elvia's consumer facing APIs";
40 homepage = "https://github.com/andersem/elvia-python";
41 changelog = "https://github.com/andersem/elvia-python/releases/tag/${src.tag}";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ uvnikita ];
44 };
45}