about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyemvue/default.nix
blob: 22e7e667929dbda076d9464d57a15f3c5b9e6b74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, buildPythonPackage
, fetchPypi

# build-system
, hatchling

# propagated modules
, requests
, python-dateutil
, pycognito
, typing-extensions
}:

buildPythonPackage rec {
  pname = "pyemvue";
  version = "0.18.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-PTRVabYbT7Xwjkm+Oz56YjNb5Xwcgxn+IvXeazKsHyY=";
  };

  nativeBuildInputs = [
    hatchling
  ];

  propagatedBuildInputs = [
    requests
    python-dateutil
    pycognito
    typing-extensions
  ];

  pythonImportsCheck = [ "pyemvue" ];

  # has no tests
  doCheck = false;

  meta = with lib; {
    changelog = "https://github.com/magico13/PyEmVue/releases/tag/v${version}";
    description = "A Python library for reading data from the Emporia Vue energy monitoring system";
    homepage = "https://github.com/magico13/PyEmVue";
    license = licenses.mit;
    maintainers = with maintainers; [ presto8 ];
  };
}