Merge pull request #93298 from alyssais/git-remote-hg
git-remote-hg: fix; refactor
This commit is contained in:
commit
ab77cf8930
@ -1,36 +1,32 @@
|
||||
{ stdenv, lib, fetchFromGitHub, mercurial, makeWrapper
|
||||
{ stdenv, lib, fetchFromGitHub, python3Packages
|
||||
, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libxml2
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "git-remote-hg";
|
||||
version = "1.0.1";
|
||||
version = "unstable-2020-06-12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mnauw";
|
||||
repo = "git-remote-hg";
|
||||
rev = "v${version}";
|
||||
sha256 = "1by5ygqvq9ww990kdrjndaqsssyf2jc4n380f9pfh2avsr7871wc";
|
||||
rev = "28ed63b707919734d230cb13bff7d231dfeee8fc";
|
||||
sha256 = "0dw48vbnk7pp0w6fzgl29mq8fyn52pacbya2w14z9c6jfvh5sha1";
|
||||
};
|
||||
|
||||
buildInputs = [ mercurial.python mercurial makeWrapper
|
||||
nativeBuildInputs = [
|
||||
asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt libxml2
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
installFlags = [ "HOME=\${out}" "install-doc" ];
|
||||
propagatedBuildInputs = with python3Packages; [ mercurial ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/git-remote-hg \
|
||||
--prefix PYTHONPATH : "$(echo ${mercurial}/lib/python*/site-packages):$(echo ${mercurial.python}/lib/python*/site-packages)${stdenv.lib.concatMapStrings (x: ":$(echo ${x}/lib/python*/site-packages)") mercurial.pythonPackages or []}"
|
||||
make install-doc prefix=$out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mnauw/git-remote-hg";
|
||||
description = "Semi-official Mercurial bridge from Git project";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ ];
|
||||
maintainers = with maintainers; [ qyliss ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -3371,6 +3371,10 @@ in {
|
||||
|
||||
measurement = callPackage ../development/python-modules/measurement {};
|
||||
|
||||
mercurial = disabledIf (!isPy3k) (toPythonModule (pkgs.mercurial.override {
|
||||
python3Packages = self;
|
||||
}));
|
||||
|
||||
midiutil = callPackage ../development/python-modules/midiutil {};
|
||||
|
||||
mido = callPackage ../development/python-modules/mido { };
|
||||
|
Loading…
Reference in New Issue
Block a user