From d8e5a6dec539ac9b83e9ceaa5c07554c2cabf252 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Oct 2025 23:21:30 +0200 Subject: [PATCH] python313Packages.gitpython: modernize --- .../python-modules/gitpython/default.nix | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/gitpython/default.nix b/pkgs/development/python-modules/gitpython/default.nix index 5bfda634e136..44cbdb5ad30d 100644 --- a/pkgs/development/python-modules/gitpython/default.nix +++ b/pkgs/development/python-modules/gitpython/default.nix @@ -5,16 +5,13 @@ fetchFromGitHub, gitdb, pkgs, - pythonOlder, - typing-extensions, + setuptools, }: buildPythonPackage rec { pname = "gitpython"; version = "3.1.45"; - format = "setuptools"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "gitpython-developers"; @@ -23,18 +20,19 @@ buildPythonPackage rec { hash = "sha256-VHnuHliZEc/jiSo/Zi9J/ipAykj7D6NttuzPZiE8svM="; }; - propagatedBuildInputs = [ - ddt - gitdb - pkgs.gitMinimal - ] - ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; - postPatch = '' substituteInPlace git/cmd.py \ --replace 'git_exec_name = "git"' 'git_exec_name = "${pkgs.gitMinimal}/bin/git"' ''; + build-system = [ setuptools ]; + + dependencies = [ + ddt + gitdb + pkgs.gitMinimal + ]; + # Tests require a git repo doCheck = false;