1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 hatchling,
8
9 # propagated modules
10 requests,
11 python-dateutil,
12 pycognito,
13 typing-extensions,
14}:
15
16buildPythonPackage rec {
17 pname = "pyemvue";
18 version = "0.18.9";
19 pyproject = true;
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-iHnNR6c/EdKZzqs4zQodfEZ/FMj1j0JRKjktyq/H0o0=";
24 };
25
26 nativeBuildInputs = [ hatchling ];
27
28 propagatedBuildInputs = [
29 requests
30 python-dateutil
31 pycognito
32 typing-extensions
33 ];
34
35 pythonImportsCheck = [ "pyemvue" ];
36
37 # has no tests
38 doCheck = false;
39
40 meta = with lib; {
41 changelog = "https://github.com/magico13/PyEmVue/releases/tag/v${version}";
42 description = "Python library for reading data from the Emporia Vue energy monitoring system";
43 homepage = "https://github.com/magico13/PyEmVue";
44 license = licenses.mit;
45 maintainers = with maintainers; [ presto8 ];
46 };
47}