Fabian Affolter 5cca3ad45f
python313Packages.decora-wifi: refactor
- update pname
- add changelog to meta
2025-04-06 17:12:29 +02:00

42 lines
885 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
requests,
inflect,
setuptools,
}:
buildPythonPackage rec {
pname = "decora-wifi";
version = "1.5";
pyproject = true;
#No tag in github, so fetchPypi is OK to use.
src = fetchPypi {
pname = "decora_wifi";
inherit version;
hash = "sha256-oWETtzZueNJC0lTWdLfk3SOuvnqrJ9wp5rOSPJxH3M4=";
};
build-system = [ setuptools ];
dependencies = [
requests
inflect
];
pythonImportsCheck = [ "decora_wifi" ];
# No tests in Pypi source
doCheck = false;
meta = {
description = "Python library for controlling Leviton Decora Smart Wi-Fi devices";
homepage = "https://github.com/tlyakhov/python-decora_wifi";
changelog = "https://github.com/tlyakhov/python-decora_wifi/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Continous ];
};
}