2019-01-22 02:01:52 +00:00
|
|
|
{ stdenv, fetchhg, buildPythonPackage
|
|
|
|
, python
|
|
|
|
, srht, hglib, scmsrht, unidiff }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hgsrht";
|
2019-10-21 02:50:21 +01:00
|
|
|
version = "0.16.0";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "https://hg.sr.ht/~sircmpwn/hg.sr.ht";
|
|
|
|
rev = version;
|
2019-10-21 02:50:21 +01:00
|
|
|
sha256 = "0ncrj1cbls9ix2ig3qqwbzs6q6cmpqy3zs21p9fw3idfw703j3g0";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./use-srht-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
hglib
|
|
|
|
scmsrht
|
|
|
|
unidiff
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
|
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://git.sr.ht/~sircmpwn/hg.sr.ht;
|
|
|
|
description = "Mercurial repository hosting service for the sr.ht network";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|