1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "ohme";
12 version = "1.5.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "dan-r";
19 repo = "ohmepy";
20 tag = "v${version}";
21 hash = "sha256-r3pu+HAQc8hXF2aMuWuE151Lz4rbrVti8YBrm4CS8z4=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ aiohttp ];
27
28 pythonImportsCheck = [ "ohme" ];
29
30 # Module has no tests
31 doCheck = false;
32
33 meta = {
34 description = "Module for interacting with the Ohme API";
35 homepage = "https://github.com/dan-r/ohmepy";
36 changelog = "https://github.com/dan-r/ohmepy/releases/tag/v${version}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}