Merge pull request #314016 from fabaff/pyedimax-refactor

python312Packages.pyedimax: refactor
This commit is contained in:
Fabian Affolter 2024-05-23 21:40:52 +02:00 committed by GitHub
commit 7655dd98dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,28 +3,35 @@
buildPythonPackage,
fetchPypi,
requests,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pyedimax";
version = "0.2.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "1i3gr5vygqh2ryg67sl13aaql7nvf3nbybrg54628r4g7911b5rk";
hash = "sha256-M5cVQjqPZCQMKS8vv+xw2x6KlRqB6mOezwLi53fJb8Q=";
};
propagatedBuildInputs = [ requests ];
build-system = [ setuptools ];
# Project has no tests
dependencies = [ requests ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "pyedimax" ];
meta = with lib; {
description = "Python library for interfacing with the Edimax smart plugs";
homepage = "https://github.com/andreipop2005/pyedimax";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}