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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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";
2022-02-12 00:43:07 +00:00
version = "0.15.23";
2021-04-18 04:11:00 +01:00
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "man.sr.ht";
rev = version;
2022-02-12 00:43:07 +00:00
sha256 = "sha256-xrBptXdwMee+YkPup/BYL/iXBhCzSUQ5htSHIw/1Ncc=";
};
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 ];
};
}