2021-04-18 04:11:00 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
, pygit2
|
|
|
|
, python
|
|
|
|
}:
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mansrht";
|
2021-10-23 01:21:51 +01:00
|
|
|
version = "0.15.22";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
2021-04-18 04:11:00 +01:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "man.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
rev = version;
|
2021-10-23 01:21:51 +01:00
|
|
|
sha256 = "sha256-curouf+eNCKprDI23blGs4AzJMry6zlCLDt/+0j5c8A=";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
pygit2
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
2021-04-18 04:11:00 +01:00
|
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
2019-01-22 02:01:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-08-15 22:11:47 +01:00
|
|
|
pythonImportsCheck = [ "mansrht" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/man.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
description = "Wiki service for the sr.ht network";
|
2021-08-15 21:54:11 +01:00
|
|
|
license = licenses.agpl3Only;
|
2019-01-22 02:01:52 +00:00
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|