34 lines
718 B
Nix
34 lines
718 B
Nix
{ lib, fetchgit, buildPythonPackage
|
|
, srht, pyyaml }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pastesrht";
|
|
version = "0.11.2";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
|
|
rev = version;
|
|
sha256 = "15hm5165v8a7ryw6i0vlf189slw4rp22cfgzznih18pbml7d0c8s";
|
|
};
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
propagatedBuildInputs = [
|
|
srht
|
|
pyyaml
|
|
];
|
|
|
|
preBuild = ''
|
|
export PKGVER=${version}
|
|
'';
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|