From 31fa2e5f9de265b32ce5ae48ccebdb4f9ccdb39f Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 26 Nov 2023 10:31:44 -0500 Subject: [PATCH] python311Packages.tcxreader: modernize --- pkgs/development/python-modules/tcxreader/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tcxreader/default.nix b/pkgs/development/python-modules/tcxreader/default.nix index 61578af3e096..9442567eec08 100644 --- a/pkgs/development/python-modules/tcxreader/default.nix +++ b/pkgs/development/python-modules/tcxreader/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, poetry-core , pytestCheckHook , pythonOlder }: @@ -8,9 +9,9 @@ buildPythonPackage rec { pname = "tcxreader"; version = "0.4.5"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "alenrajsp"; @@ -19,6 +20,10 @@ buildPythonPackage rec { hash = "sha256-CiOLcev9fo2BPgnPZZ2borU25f/gKISqRAapAHgLN3w="; }; + nativeBuildInputs = [ + poetry-core + ]; + nativeCheckInputs = [ pytestCheckHook ];