nixpkgs/pkgs/applications/version-management/sourcehut/paste.nix

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

41 lines
815 B
Nix
Raw Normal View History

2021-04-18 03:12:29 +00:00
{ lib
, fetchFromSourcehut
, buildPythonPackage
, srht
, pyyaml
, python
}:
buildPythonPackage rec {
pname = "pastesrht";
2021-10-23 00:23:30 +00:00
version = "0.13.6";
2021-04-18 03:12:29 +00:00
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "paste.sr.ht";
rev = version;
2021-10-23 00:23:30 +00:00
sha256 = "sha256-Khcqk86iD9nxiKXN3+8mSLNoDau2qXNFOrLdkVu+rH8=";
};
nativeBuildInputs = srht.nativeBuildInputs;
propagatedBuildInputs = [
srht
pyyaml
];
preBuild = ''
export PKGVER=${version}
2021-04-18 03:12:29 +00:00
export SRHT_PATH=${srht}/${python.sitePackages}/srht
'';
2021-08-15 21:11:47 +00:00
pythonImportsCheck = [ "pastesrht" ];
meta = with lib; {
homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
description = "Ad-hoc text file hosting service for the sr.ht network";
2021-08-15 20:54:11 +00:00
license = licenses.agpl3Only;
maintainers = with maintainers; [ eadwu ];
};
}