Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromSourcehut 3, buildPythonPackage 4, srht 5, pyyaml 6, python 7}: 8 9buildPythonPackage rec { 10 pname = "pastesrht"; 11 version = "0.13.8"; 12 13 src = fetchFromSourcehut { 14 owner = "~sircmpwn"; 15 repo = "paste.sr.ht"; 16 rev = version; 17 sha256 = "sha256-Zji9FyYUtsklYz4qyLbtduusteC7WujLCMmvZKcqYis="; 18 }; 19 20 postPatch = '' 21 substituteInPlace Makefile \ 22 --replace "all: api" "" 23 ''; 24 25 propagatedBuildInputs = [ 26 srht 27 pyyaml 28 ]; 29 30 preBuild = '' 31 export PKGVER=${version} 32 export SRHT_PATH=${srht}/${python.sitePackages}/srht 33 ''; 34 35 pythonImportsCheck = [ "pastesrht" ]; 36 37 meta = with lib; { 38 homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht"; 39 description = "Ad-hoc text file hosting service for the sr.ht network"; 40 license = licenses.agpl3Only; 41 maintainers = with maintainers; [ eadwu ]; 42 }; 43}