1{ lib
2, aiohttp
3, aresponses
4, buildPythonPackage
5, dataclasses-json
6, fetchFromGitHub
7, poetry-core
8, pytest-asyncio
9, pytestCheckHook
10, pythonOlder
11, syrupy
12}:
13
14buildPythonPackage rec {
15 pname = "aioelectricitymaps";
16 version = "0.1.5";
17 pyproject = true;
18
19 disabled = pythonOlder "3.10";
20
21 src = fetchFromGitHub {
22 owner = "jpbede";
23 repo = "aioelectricitymaps";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-XJw3oy5IHyXmdoVxSU15dWHcc4Wd435Lyr/wpz53aZI=";
26 };
27
28 nativeBuildInputs = [
29 poetry-core
30 ];
31
32 propagatedBuildInputs = [
33 aiohttp
34 dataclasses-json
35 ];
36
37 nativeCheckInputs = [
38 aresponses
39 pytest-asyncio
40 pytestCheckHook
41 syrupy
42 ];
43
44 pythonImportsCheck = [
45 "aioelectricitymaps"
46 ];
47
48 meta = with lib; {
49 description = "Module for interacting with Electricity maps";
50 homepage = "https://github.com/jpbede/aioelectricitymaps";
51 changelog = "https://github.com/jpbede/aioelectricitymaps/releases/tag/v${version}";
52 license = licenses.mit;
53 maintainers = with maintainers; [ fab ];
54 };
55}