nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 ddt, 5 fetchFromGitHub, 6 gitdb, 7 pkgs, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "gitpython"; 13 version = "3.1.46"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "gitpython-developers"; 18 repo = "GitPython"; 19 tag = version; 20 hash = "sha256-ymuJlxGEmWwvmVFYiIW23k5Gl2h09ugFLPosnUWg5S0="; 21 }; 22 23 postPatch = '' 24 substituteInPlace git/cmd.py \ 25 --replace 'git_exec_name = "git"' 'git_exec_name = "${pkgs.gitMinimal}/bin/git"' 26 ''; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 ddt 32 gitdb 33 pkgs.gitMinimal 34 ]; 35 36 # Tests require a git repo 37 doCheck = false; 38 39 pythonImportsCheck = [ "git" ]; 40 41 meta = { 42 description = "Python Git Library"; 43 homepage = "https://github.com/gitpython-developers/GitPython"; 44 changelog = "https://github.com/gitpython-developers/GitPython/blob/${src.tag}/doc/source/changes.rst"; 45 license = lib.licenses.bsd3; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48}