2021-04-18 05:15:43 +02:00
|
|
|
{ lib
|
|
|
|
, fetchhg
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
, hglib
|
|
|
|
, scmsrht
|
|
|
|
, unidiff
|
|
|
|
, python
|
|
|
|
}:
|
2019-01-22 03:01:52 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hgsrht";
|
2021-12-28 22:26:56 +01:00
|
|
|
version = "0.29.3";
|
2019-01-22 03:01:52 +01:00
|
|
|
|
|
|
|
src = fetchhg {
|
|
|
|
url = "https://hg.sr.ht/~sircmpwn/hg.sr.ht";
|
|
|
|
rev = version;
|
2021-12-28 22:26:56 +01:00
|
|
|
sha256 = "y8gKaamwD5lsYqO1SkxMcn3E2TWidHAo2slvEU+8ovg=";
|
2019-01-22 03:01:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
hglib
|
|
|
|
scmsrht
|
|
|
|
unidiff
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
2021-04-18 05:15:43 +02:00
|
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
2019-01-22 03:01:52 +01:00
|
|
|
'';
|
|
|
|
|
2021-08-15 23:11:47 +02:00
|
|
|
pythonImportsCheck = [ "hgsrht" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht";
|
2019-01-22 03:01:52 +01:00
|
|
|
description = "Mercurial repository hosting service for the sr.ht network";
|
2021-08-15 22:54:11 +02:00
|
|
|
license = licenses.agpl3Only;
|
2019-01-22 03:01:52 +01:00
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|