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.

39 lines
741 B
Nix
Raw Normal View History

2021-04-18 03:11:00 +00:00
{ lib
, fetchFromSourcehut
, buildPythonPackage
, srht
, pygit2
, python
}:
buildPythonPackage rec {
pname = "mansrht";
2022-06-02 12:39:09 +00:00
version = "0.15.26";
2021-04-18 03:11:00 +00:00
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "man.sr.ht";
rev = version;
2022-06-02 12:39:09 +00:00
sha256 = "sha256-5xZH6DrTXMdWd26OGICp7lZ/QDjACIa7zNUJHB7jzGo=";
};
propagatedBuildInputs = [
srht
pygit2
];
preBuild = ''
export PKGVER=${version}
2021-04-18 03:11:00 +00:00
export SRHT_PATH=${srht}/${python.sitePackages}/srht
'';
2021-08-15 21:11:47 +00: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 20:54:11 +00:00
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
};
}