2021-04-17 20:12:29 -07:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
, pyyaml
|
|
|
|
, python
|
|
|
|
}:
|
2019-01-21 18:01:52 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pastesrht";
|
2021-04-17 20:12:29 -07:00
|
|
|
version = "0.12.1";
|
2019-01-21 18:01:52 -08:00
|
|
|
|
2021-04-17 20:12:29 -07:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "paste.sr.ht";
|
2019-01-21 18:01:52 -08:00
|
|
|
rev = version;
|
2021-04-17 20:12:29 -07:00
|
|
|
sha256 = "sha256-QQhd2LeH9BLmlHilhsv+9fZ+RPNmEMSmOpFA3dsMBFc=";
|
2019-01-21 18:01:52 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
2021-04-17 20:12:29 -07:00
|
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
2019-01-21 18:01:52 -08:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
|
2019-01-21 18:01:52 -08:00
|
|
|
description = "Ad-hoc text file hosting service for the sr.ht network";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|