sourcehut.metasrht: 0.51.2 -> 0.53.14

authored by

Thomas Bereknyei and committed by
tomberek
14d65eaa 9b3a109c

+36 -19
+36 -19
pkgs/applications/version-management/sourcehut/meta.nix
··· 1 - { lib, fetchgit, buildPythonPackage 2 , buildGoModule 3 - , pgpy, srht, redis, bcrypt, qrcode, stripe, zxcvbn, alembic, pystache 4 - , sshpubkeys, weasyprint }: 5 6 - let 7 - version = "0.51.2"; 8 9 - buildAPI = src: buildGoModule { 10 inherit src version; 11 pname = "metasrht-api"; 12 - 13 - vendorSha256 = "0k7i7j604wqvzjavmcsw7g2x059jkkgrgz1qyvzlqc0y4ws59xkq"; 14 }; 15 - in buildPythonPackage rec { 16 pname = "metasrht"; 17 - inherit version; 18 - 19 - src = fetchgit { 20 - url = "https://git.sr.ht/~sircmpwn/meta.sr.ht"; 21 - rev = version; 22 - sha256 = "0c9y1hzx3dj0awxrhkzrcsmy6q9fqm6v6dbp9y1ria3v47xa3nv7"; 23 - }; 24 25 nativeBuildInputs = srht.nativeBuildInputs; 26 ··· 36 pystache 37 sshpubkeys 38 weasyprint 39 ]; 40 41 preBuild = '' 42 export PKGVER=${version} 43 ''; 44 45 postInstall = '' 46 mkdir -p $out/bin 47 - cp ${buildAPI "${src}/api"}/bin/api $out/bin/metasrht-api 48 ''; 49 - 50 - dontUseSetuptoolsCheck = true; 51 52 meta = with lib; { 53 homepage = "https://git.sr.ht/~sircmpwn/meta.sr.ht";
··· 1 + { lib 2 + , fetchFromSourcehut 3 + , buildPythonPackage 4 , buildGoModule 5 + , pgpy 6 + , srht 7 + , redis 8 + , bcrypt 9 + , qrcode 10 + , stripe 11 + , zxcvbn 12 + , alembic 13 + , pystache 14 + , dnspython 15 + , sshpubkeys 16 + , weasyprint 17 + , prometheus_client 18 + , python 19 + }: 20 + let 21 + version = "0.53.14"; 22 23 + src = fetchFromSourcehut { 24 + owner = "~sircmpwn"; 25 + repo = "meta.sr.ht"; 26 + rev = version; 27 + sha256 = "sha256-/+r/XLDkcSTW647xPMh5bcJmR2xZNNH74AJ5jemna2k="; 28 + }; 29 30 + buildApi = src: buildGoModule { 31 inherit src version; 32 pname = "metasrht-api"; 33 + vendorSha256 = "sha256-eZyDrr2VcNMxI++18qUy7LA1Q1YDlWCoRtl00L8lfR4="; 34 }; 35 + 36 + in 37 + buildPythonPackage rec { 38 pname = "metasrht"; 39 + inherit version src; 40 41 nativeBuildInputs = srht.nativeBuildInputs; 42 ··· 52 pystache 53 sshpubkeys 54 weasyprint 55 + prometheus_client 56 + dnspython 57 ]; 58 59 preBuild = '' 60 export PKGVER=${version} 61 + export SRHT_PATH=${srht}/${python.sitePackages}/srht 62 ''; 63 64 postInstall = '' 65 mkdir -p $out/bin 66 + cp ${buildApi "${src}/api/"}/bin/api $out/bin/metasrht-api 67 ''; 68 69 meta = with lib; { 70 homepage = "https://git.sr.ht/~sircmpwn/meta.sr.ht";