From b096c95f51397375a852b7db4e66f02119cb04c9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 19 May 2025 22:25:08 +0200 Subject: [PATCH 1/2] python313Packages.turrishw: fix changelog entry --- pkgs/development/python-modules/turrishw/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/turrishw/default.nix b/pkgs/development/python-modules/turrishw/default.nix index 014c7b83f851..5fa6fad67804 100644 --- a/pkgs/development/python-modules/turrishw/default.nix +++ b/pkgs/development/python-modules/turrishw/default.nix @@ -30,7 +30,7 @@ buildPythonPackage rec { meta = { description = "Python library and program for Turris hardware listing"; homepage = "https://github.com/turris-cz/turrishw"; - changelog = "https://github.com/turris-cz/turrishw/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/turris-cz/turrishw/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; From cb6f5a6d1ab55f39c598428b97fe3ee0bddc52da Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 19 May 2025 22:38:23 +0200 Subject: [PATCH 2/2] python313Packages.turrishw: disable tests on darwin --- pkgs/development/python-modules/turrishw/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/turrishw/default.nix b/pkgs/development/python-modules/turrishw/default.nix index 5fa6fad67804..8f5378f6ef4e 100644 --- a/pkgs/development/python-modules/turrishw/default.nix +++ b/pkgs/development/python-modules/turrishw/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, hatchling, @@ -25,6 +26,9 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + # Tests don't work on darwin + doCheck = !stdenv.hostPlatform.isDarwin; + pythonImportsCheck = [ "turrishw" ]; meta = {