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

39 lines
770 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-04-18 03:12:29 +00:00
version = "0.12.1";
2021-04-18 03:12:29 +00:00
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "paste.sr.ht";
rev = version;
2021-04-18 03:12:29 +00:00
sha256 = "sha256-QQhd2LeH9BLmlHilhsv+9fZ+RPNmEMSmOpFA3dsMBFc=";
};
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
'';
meta = with lib; {
homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
description = "Ad-hoc text file hosting service for the sr.ht network";
license = licenses.agpl3;
maintainers = with maintainers; [ eadwu ];
};
}