Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 40 lines 1.0 kB view raw
1{ 2 fetchFromGitHub, 3 git, 4 lib, 5 python3Packages, 6}: 7python3Packages.buildPythonApplication rec { 8 pname = "git-autoshare"; 9 version = "1.0.0b6"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "acsone"; 14 repo = "git-autoshare"; 15 rev = version; 16 hash = "sha256-F8wcAayIR6MH8e0cQSwFJn/AVSLG3tVil80APjcFG/0="; 17 }; 18 19 build-system = with python3Packages; [ setuptools-scm ]; 20 dependencies = with python3Packages; [ 21 appdirs 22 click 23 pyyaml 24 ]; 25 26 # Tests require network 27 doCheck = false; 28 29 makeWrapperArgs = [ "--set-default GIT_AUTOSHARE_GIT_BIN ${lib.getExe git}" ]; 30 31 pythonImportsCheck = [ "git_autoshare" ]; 32 33 meta = { 34 changelog = "https://github.com/acsone/git-autoshare/releases/tag/${version}"; 35 description = "Git clone wrapper that automatically uses --reference to save disk space and download time"; 36 homepage = "https://github.com/acsone/git-autoshare"; 37 license = lib.licenses.gpl3Only; 38 maintainers = with lib.maintainers; [ yajo ]; 39 }; 40}