depot/third_party/nixpkgs/pkgs/applications/version-management/git-review/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

44 lines
1.1 KiB
Nix

{ lib
, fetchurl
, buildPythonApplication
, pbr
, requests
, setuptools
}:
buildPythonApplication rec {
pname = "git-review";
version = "2.1.0";
# Manually set version because prb wants to get it from the git
# upstream repository (and we are installing from tarball instead)
PBR_VERSION = version;
src = fetchurl {
url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE=";
};
nativeBuildInputs = [
pbr
];
propagatedBuildInputs = [
requests
setuptools # implicit dependency, used to get package version through pkg_resources
];
# Don't run tests because they pull in external dependencies
# (a specific build of gerrit + maven plugins), and I haven't figured
# out how to work around this yet.
doCheck = false;
pythonImportsCheck = [ "git_review" ];
meta = with lib; {
description = "Tool to submit code to Gerrit";
homepage = "https://opendev.org/opendev/git-review";
license = licenses.asl20;
maintainers = with maintainers; [ kira-bruneau ];
};
}