1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 16:46:09 +00:00
nixpkgs/pkgs/applications/version-management/git-review/default.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2021-04-24 01:18:03 +01:00
{ lib
, fetchurl
, buildPythonApplication
, pbr
, requests
, setuptools
}:
buildPythonApplication rec {
pname = "git-review";
2021-04-24 01:18:03 +01:00
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)
2019-09-09 00:38:31 +01:00
PBR_VERSION = version;
src = fetchurl {
url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
2021-04-24 01:18:03 +01:00
hash = "sha256-3A1T+/iXhNeMS2Aww5jISoiNExdv9N9/kwyATSuwVTE=";
};
2021-04-24 01:18:03 +01:00
nativeBuildInputs = [
pbr
];
2021-04-24 01:18:03 +01:00
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;
2021-04-24 01:18:03 +01:00
pythonImportsCheck = [ "git_review" ];
meta = with lib; {
description = "Tool to submit code to Gerrit";
2021-04-24 01:18:03 +01:00
homepage = "https://opendev.org/opendev/git-review";
license = licenses.asl20;
maintainers = with maintainers; [ metadark ];
};
}