2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchgit, buildPythonPackage
|
2019-01-22 02:01:52 +00:00
|
|
|
, python
|
|
|
|
, srht, pygit2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mansrht";
|
2020-10-11 14:43:34 +01:00
|
|
|
version = "0.15.4";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~sircmpwn/man.sr.ht";
|
|
|
|
rev = version;
|
2020-10-11 14:43:34 +01:00
|
|
|
sha256 = "0spi0yy2myxw4kggy54yskda14c4vaq2ng9dd9krqsajnsy7anrw";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
pygit2
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
|
|
|
'';
|
|
|
|
|
2021-01-03 05:36:55 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
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";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|