1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 httpx,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "iotawattpy";
11 version = "0.1.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "1pyxm87lvd6zy0rx7r9jivk2li267r3xr0b9p6vf0v0vp9fmgsw3";
19 };
20
21 propagatedBuildInputs = [ httpx ];
22
23 # Project doesn't tag releases or ship the tests with PyPI
24 # https://github.com/gtdiehl/iotawattpy/issues/14
25 doCheck = false;
26
27 pythonImportsCheck = [ "iotawattpy" ];
28
29 meta = with lib; {
30 description = "Python interface for the IoTaWatt device";
31 homepage = "https://github.com/gtdiehl/iotawattpy";
32 license = licenses.gpl3Plus;
33 maintainers = with maintainers; [ fab ];
34 };
35}