git-review: build with python3
Also updated source to the new repo and added myself as a maintainer
This commit is contained in:
parent
05659a44ce
commit
ff4a1cf4d8
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, pythonPackages} :
|
{ lib, fetchurl, buildPythonApplication, pbr, requests, setuptools }:
|
||||||
|
|
||||||
pythonPackages.buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "git-review";
|
pname = "git-review";
|
||||||
version = "1.28.0";
|
version = "1.28.0";
|
||||||
|
|
||||||
@ -8,21 +8,20 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
# upstream repository (and we are installing from tarball instead)
|
# upstream repository (and we are installing from tarball instead)
|
||||||
PBR_VERSION = version;
|
PBR_VERSION = version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "openstack-infra";
|
url = "https://opendev.org/opendev/${pname}/archive/${version}.tar.gz";
|
||||||
repo = pname;
|
sha256 = "1y1jzb0hlprynwwr4q5y4x06641qrhj0k69mclabnmhfam9g8ygm";
|
||||||
rev = version;
|
|
||||||
sha256 = "1hgw1dkl94m3idv4izc7wf2j7al2c7nnsqywy7g53nzkv9pfv47s";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ pbr requests setuptools ];
|
propagatedBuildInputs = [ pbr requests setuptools ];
|
||||||
|
|
||||||
# Don't do tests because they require gerrit which is not packaged
|
# Don't do tests because they require gerrit which is not packaged
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/openstack-infra/git-review";
|
homepage = "https://opendev.org/opendev/git-review";
|
||||||
description = "Tool to submit code to Gerrit";
|
description = "Tool to submit code to Gerrit";
|
||||||
license = stdenv.lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ metadark ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -21055,7 +21055,7 @@ in
|
|||||||
|
|
||||||
git-quick-stats = callPackage ../development/tools/git-quick-stats {};
|
git-quick-stats = callPackage ../development/tools/git-quick-stats {};
|
||||||
|
|
||||||
git-review = callPackage ../applications/version-management/git-review { };
|
git-review = python3Packages.callPackage ../applications/version-management/git-review { };
|
||||||
|
|
||||||
github-cli = gitAndTools.gh;
|
github-cli = gitAndTools.gh;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user