Files
nixpkgs/pkgs/development/python-modules/ha-iotawattpy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
806 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
httpx,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "ha-iotawattpy";
version = "0.1.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-eMsBEbmENjbJME9Gzo4O9LbGo1i0MP0IuwLUAYqxbI8=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [ httpx ];
# Project doesn't tag releases or ship the tests with PyPI
# https://github.com/gtdiehl/iotawattpy/issues/14
doCheck = false;
pythonImportsCheck = [ "iotawattpy" ];
meta = {
description = "Python library for the IoTaWatt Energy device";
homepage = "https://github.com/gtdiehl/iotawattpy";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}