3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/sourcehut/man.nix

41 lines
788 B
Nix
Raw Normal View History

2021-04-18 04:11:00 +01:00
{ lib
, fetchFromSourcehut
, buildPythonPackage
, srht
, pygit2
, python
}:
buildPythonPackage rec {
pname = "mansrht";
2021-10-23 01:21:51 +01:00
version = "0.15.22";
2021-04-18 04:11:00 +01:00
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "man.sr.ht";
rev = version;
2021-10-23 01:21:51 +01:00
sha256 = "sha256-curouf+eNCKprDI23blGs4AzJMry6zlCLDt/+0j5c8A=";
};
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
'';
2021-08-15 22:11:47 +01:00
pythonImportsCheck = [ "mansrht" ];
meta = with lib; {
homepage = "https://git.sr.ht/~sircmpwn/man.sr.ht";
description = "Wiki service for the sr.ht network";
2021-08-15 21:54:11 +01:00
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
};
}