From 22a42983e56c9e6c134abcd01cb9eb638faee309 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Jun 2026 15:15:55 +0200 Subject: [PATCH 1/2] python3Packages.pyxbe: 1.0.3 -> 1.0.4 Diff: https://github.com/mborgerson/pyxbe/compare/v1.0.3...v1.0.4 --- .../python-modules/pyxbe/default.nix | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pyxbe/default.nix b/pkgs/development/python-modules/pyxbe/default.nix index 26fdf180df3d..147746ac4f77 100644 --- a/pkgs/development/python-modules/pyxbe/default.nix +++ b/pkgs/development/python-modules/pyxbe/default.nix @@ -2,35 +2,36 @@ lib, buildPythonPackage, fetchFromGitHub, + pytest-cov-stub, pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "pyxbe"; - version = "1.0.3"; - format = "setuptools"; + version = "1.0.4"; + pyproject = true; src = fetchFromGitHub { owner = "mborgerson"; repo = "pyxbe"; tag = "v${version}"; - hash = "sha256-iLzGGgizUbaEG1xrNq4WDaWrGtcaLwAYgn4NGYiSDBo="; + hash = "sha256-MtkY4vwPvlYoS4ws8MzIFR8D6ORVqFXA0JvOEspzmtQ="; }; - nativeCheckInputs = [ pytestCheckHook ]; + build-system = [ setuptools ]; - # Update location for run with pytest - preCheck = '' - substituteInPlace tests/test_load.py \ - --replace '"xbefiles"' '"tests/xbefiles"' - ''; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "xbe" ]; meta = { description = "Library to work with XBE files"; homepage = "https://github.com/mborgerson/pyxbe"; - license = with lib.licenses; [ mit ]; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; } From b7ffb83264c43f0b6c549afe2b4bc4a6de0530e1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Jun 2026 15:16:42 +0200 Subject: [PATCH 2/2] python3Packages.pyxbe: migrate to finalAttrs --- pkgs/development/python-modules/pyxbe/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyxbe/default.nix b/pkgs/development/python-modules/pyxbe/default.nix index 147746ac4f77..950a4386fe52 100644 --- a/pkgs/development/python-modules/pyxbe/default.nix +++ b/pkgs/development/python-modules/pyxbe/default.nix @@ -7,7 +7,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyxbe"; version = "1.0.4"; pyproject = true; @@ -15,7 +15,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "mborgerson"; repo = "pyxbe"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-MtkY4vwPvlYoS4ws8MzIFR8D6ORVqFXA0JvOEspzmtQ="; }; @@ -34,4 +34,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})