biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / version-management / git-review / default.nix
blob2f7defa3ee55c86c6fbe6c3a1eaa415ee74a38a6
1 { lib
2 , fetchFromGitea
3 , buildPythonApplication
4 , pbr
5 , requests
6 , setuptools
7 , gitUpdater
8 }:
10 buildPythonApplication rec {
11   pname = "git-review";
12   version = "2.4.0";
14   # Manually set version because prb wants to get it from the git
15   # upstream repository (and we are installing from tarball instead)
16   PBR_VERSION = version;
18   src = fetchFromGitea {
19     domain = "opendev.org";
20     owner = "opendev";
21     repo = "git-review";
22     rev = version;
23     hash = "sha256-UfYc662NqnQt0+CKc+18jXnNTOcZv8urCNBsWd6x0VQ=";
24   };
26   outputs = [ "out" "man" ];
28   nativeBuildInputs = [
29     pbr
30   ];
32   propagatedBuildInputs = [
33     requests
34     setuptools # implicit dependency, used to get package version through pkg_resources
35   ];
37   # Don't run tests because they pull in external dependencies
38   # (a specific build of gerrit + maven plugins), and I haven't figured
39   # out how to work around this yet.
40   doCheck = false;
42   pythonImportsCheck = [ "git_review" ];
44   passthru.updateScript = gitUpdater { };
46   meta = with lib; {
47     description = "Tool to submit code to Gerrit";
48     homepage = "https://opendev.org/opendev/git-review";
49     license = licenses.asl20;
50     maintainers = with maintainers; [ kira-bruneau ];
51     mainProgram = "git-review";
52   };