nixpkgs/pkgs/applications/version-management/git-review/default.nix

29 lines
807 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pythonPackages} :
pythonPackages.buildPythonApplication rec {
pname = "git-review";
version = "1.28.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;
2019-08-13 22:52:01 +01:00
src = fetchFromGitHub {
owner = "openstack-infra";
repo = pname;
rev = version;
sha256 = "1hgw1dkl94m3idv4izc7wf2j7al2c7nnsqywy7g53nzkv9pfv47s";
};
2017-08-29 12:15:54 +01:00
propagatedBuildInputs = with pythonPackages; [ pbr requests setuptools ];
# Don't do tests because they require gerrit which is not packaged
doCheck = false;
meta = {
homepage = "https://github.com/openstack-infra/git-review";
description = "Tool to submit code to Gerrit";
license = stdenv.lib.licenses.asl20;
};
}