2021-04-18 03:15:43 +00:00
|
|
|
{ lib
|
|
|
|
, fetchhg
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
, hglib
|
|
|
|
, scmsrht
|
|
|
|
, unidiff
|
|
|
|
, python
|
|
|
|
}:
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hgsrht";
|
2022-02-12 00:41:50 +00:00
|
|
|
version = "0.29.4";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "https://hg.sr.ht/~sircmpwn/hg.sr.ht";
|
|
|
|
rev = version;
|
2022-02-12 00:41:50 +00:00
|
|
|
sha256 = "Jn9M/R5tJK/GeJDWGo3LWCK2nwsfI9zh+/yo2M+X6Sk=";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
hglib
|
|
|
|
scmsrht
|
|
|
|
unidiff
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
2021-04-18 03:15:43 +00:00
|
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
2019-01-22 02:01:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-08-15 21:11:47 +00:00
|
|
|
pythonImportsCheck = [ "hgsrht" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
description = "Mercurial repository hosting service for the sr.ht network";
|
2021-08-15 20:54:11 +00:00
|
|
|
license = licenses.agpl3Only;
|
2019-01-22 02:01:52 +00:00
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|