sourcehut.pastesrht: 0.11.2 -> 0.12.1

This commit is contained in:
Thomas Bereknyei 2021-04-17 23:12:29 -04:00 committed by tomberek
parent 1dbd9b2476
commit 350f4867c7

View File

@ -1,14 +1,20 @@
{ lib, fetchgit, buildPythonPackage
, srht, pyyaml }:
{ lib
, fetchFromSourcehut
, buildPythonPackage
, srht
, pyyaml
, python
}:
buildPythonPackage rec {
pname = "pastesrht";
version = "0.11.2";
version = "0.12.1";
src = fetchgit {
url = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "paste.sr.ht";
rev = version;
sha256 = "15hm5165v8a7ryw6i0vlf189slw4rp22cfgzznih18pbml7d0c8s";
sha256 = "sha256-QQhd2LeH9BLmlHilhsv+9fZ+RPNmEMSmOpFA3dsMBFc=";
};
nativeBuildInputs = srht.nativeBuildInputs;
@ -20,10 +26,9 @@ buildPythonPackage rec {
preBuild = ''
export PKGVER=${version}
export SRHT_PATH=${srht}/${python.sitePackages}/srht
'';
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";