Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 49 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, buildPythonPackage, ddt, fetchFromGitHub, gitdb, pkgs, pythonOlder, typing-extensions,}:
buildPythonPackage rec { pname = "gitpython"; version = "3.1.43"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "gitpython-developers"; repo = "GitPython"; rev = "refs/tags/${version}"; hash = "sha256-HO6t5cOHyDJVz+Bma4Lkn503ZfDmiQxUfSLaSZtUrTk="; };
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"' '';
# Tests require a git repo doCheck = false;
pythonImportsCheck = [ "git" ];
meta = with lib; { description = "Python Git Library"; homepage = "https://github.com/gitpython-developers/GitPython"; changelog = "https://github.com/gitpython-developers/GitPython/blob/${version}/doc/source/changes.rst"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; };}