From d9fae5e20dbb3017973cba1fa8d58318e2cb1d30 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 16:44:51 +0200 Subject: [PATCH] python312Packages.pyedimax: refactor --- .../python-modules/pyedimax/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pyedimax/default.nix b/pkgs/development/python-modules/pyedimax/default.nix index 350525b40286..dff8a0ffa899 100644 --- a/pkgs/development/python-modules/pyedimax/default.nix +++ b/pkgs/development/python-modules/pyedimax/default.nix @@ -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 ]; }; }