1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pynordpool";
12 version = "0.3.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.11";
16
17 src = fetchFromGitHub {
18 owner = "gjohansson-ST";
19 repo = "pynordpool";
20 tag = "v${version}";
21 hash = "sha256-K9rZ7PJhmG7PiNGpnAgC3tX6ZygQdQoae5DnboNgMcs=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [ aiohttp ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "pynordpool" ];
32
33 meta = {
34 description = "Python api for Nordpool";
35 homepage = "https://github.com/gjohansson-ST/pynordpool";
36 changelog = "https://github.com/gjohansson-ST/pynordpool/releases/tag/${src.tag}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}