nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 58 lines 1.4 kB view raw
1{ 2 lib, 3 buildPythonApplication, 4 fetchgit, 5 pbr, 6 requests, 7 setuptools, 8 gitUpdater, 9}: 10 11buildPythonApplication rec { 12 pname = "git-review"; 13 version = "2.5.0"; 14 format = "setuptools"; 15 16 # Manually set version because prb wants to get it from the git 17 # upstream repository (and we are installing from tarball instead) 18 PBR_VERSION = version; 19 20 # fetchFromGitea fails trying to download archive file 21 src = fetchgit { 22 url = "https://opendev.org/opendev/git-review"; 23 tag = version; 24 hash = "sha256-RE5XAUS46Y/jtI0/csR59B9l1gYpHuwGQkbWqoTfxPk="; 25 }; 26 27 outputs = [ 28 "out" 29 "man" 30 ]; 31 32 nativeBuildInputs = [ 33 pbr 34 ]; 35 36 propagatedBuildInputs = [ 37 requests 38 setuptools # implicit dependency, used to get package version through pkg_resources 39 ]; 40 41 # Don't run tests because they pull in external dependencies 42 # (a specific build of gerrit + maven plugins), and I haven't figured 43 # out how to work around this yet. 44 doCheck = false; 45 46 pythonImportsCheck = [ "git_review" ]; 47 48 passthru.updateScript = gitUpdater { }; 49 50 meta = with lib; { 51 description = "Tool to submit code to Gerrit"; 52 homepage = "https://opendev.org/opendev/git-review"; 53 changelog = "https://docs.opendev.org/opendev/git-review/latest/releasenotes.html#relnotes-${version}"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ kira-bruneau ]; 56 mainProgram = "git-review"; 57 }; 58}