From 01c667e01e9c3b802fa1a15d9878f0cef4430178 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 15 May 2024 16:30:21 +0200 Subject: [PATCH 1/3] python312Packages.aioairq: 0.3.2 -> 0.4.2 Diff: https://github.com/CorantGmbH/aioairq/compare/refs/tags/v0.3.2...v0.4.2 --- pkgs/development/python-modules/aioairq/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aioairq/default.nix b/pkgs/development/python-modules/aioairq/default.nix index 5be97a3d9c9d..8496eb6c9f98 100644 --- a/pkgs/development/python-modules/aioairq/default.nix +++ b/pkgs/development/python-modules/aioairq/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "aioairq"; - version = "0.3.2"; + version = "0.4.2"; format = "setuptools"; disabled = pythonOlder "3.9"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "CorantGmbH"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-Sau0Ih+9WRChbztl8yjXVWy4/QxyllQKOPslbZroBeQ="; + hash = "sha256-ppjhGBAoA5iV+ZfUKkUCNJRYN82JtclRe36pbe85i5w="; }; propagatedBuildInputs = [ From 4422a302ede76f45d3cc93093a2ed44f6ea40a87 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 15 May 2024 16:36:24 +0200 Subject: [PATCH 2/3] python312Packages.aioairq: refactor --- .../python-modules/aioairq/default.nix | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/aioairq/default.nix b/pkgs/development/python-modules/aioairq/default.nix index 8496eb6c9f98..0b887ccdddf9 100644 --- a/pkgs/development/python-modules/aioairq/default.nix +++ b/pkgs/development/python-modules/aioairq/default.nix @@ -3,35 +3,52 @@ , buildPythonPackage , fetchFromGitHub , pycryptodome +, pytest-asyncio +, pytestCheckHook , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "aioairq"; version = "0.4.2"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "CorantGmbH"; - repo = pname; + repo = "aioairq"; rev = "refs/tags/v${version}"; hash = "sha256-ppjhGBAoA5iV+ZfUKkUCNJRYN82JtclRe36pbe85i5w="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ aiohttp pycryptodome ]; # Module has no tests - doCheck = false; + #doCheck = false; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; pythonImportsCheck = [ "aioairq" ]; + disabledTestPaths = [ + # Tests require network access + "tests/test_core_on_device.py" + ]; + meta = with lib; { description = "Library to retrieve data from air-Q devices"; homepage = "https://github.com/CorantGmbH/aioairq"; From 38f4409623d59def3ecb1697baeeae7f25bfd08f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 15 May 2024 16:36:42 +0200 Subject: [PATCH 3/3] python312Packages.aioairq: format with nixfmt --- .../python-modules/aioairq/default.nix | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/aioairq/default.nix b/pkgs/development/python-modules/aioairq/default.nix index 0b887ccdddf9..274b25202a3a 100644 --- a/pkgs/development/python-modules/aioairq/default.nix +++ b/pkgs/development/python-modules/aioairq/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pycryptodome -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pycryptodome, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-ppjhGBAoA5iV+ZfUKkUCNJRYN82JtclRe36pbe85i5w="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -40,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aioairq" - ]; + pythonImportsCheck = [ "aioairq" ]; disabledTestPaths = [ # Tests require network access