sourcehut.metasrht: 0.51.2 -> 0.53.14
This commit is contained in:
parent
9b3a109c3e
commit
14d65eaa3c
@ -1,26 +1,42 @@
|
|||||||
{ lib, fetchgit, buildPythonPackage
|
{ lib
|
||||||
|
, fetchFromSourcehut
|
||||||
|
, buildPythonPackage
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, pgpy, srht, redis, bcrypt, qrcode, stripe, zxcvbn, alembic, pystache
|
, pgpy
|
||||||
, sshpubkeys, weasyprint }:
|
, srht
|
||||||
|
, redis
|
||||||
|
, bcrypt
|
||||||
|
, qrcode
|
||||||
|
, stripe
|
||||||
|
, zxcvbn
|
||||||
|
, alembic
|
||||||
|
, pystache
|
||||||
|
, dnspython
|
||||||
|
, sshpubkeys
|
||||||
|
, weasyprint
|
||||||
|
, prometheus_client
|
||||||
|
, python
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
version = "0.51.2";
|
version = "0.53.14";
|
||||||
|
|
||||||
buildAPI = src: buildGoModule {
|
src = fetchFromSourcehut {
|
||||||
|
owner = "~sircmpwn";
|
||||||
|
repo = "meta.sr.ht";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-/+r/XLDkcSTW647xPMh5bcJmR2xZNNH74AJ5jemna2k=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildApi = src: buildGoModule {
|
||||||
inherit src version;
|
inherit src version;
|
||||||
pname = "metasrht-api";
|
pname = "metasrht-api";
|
||||||
|
vendorSha256 = "sha256-eZyDrr2VcNMxI++18qUy7LA1Q1YDlWCoRtl00L8lfR4=";
|
||||||
vendorSha256 = "0k7i7j604wqvzjavmcsw7g2x059jkkgrgz1qyvzlqc0y4ws59xkq";
|
|
||||||
};
|
};
|
||||||
in buildPythonPackage rec {
|
|
||||||
|
in
|
||||||
|
buildPythonPackage rec {
|
||||||
pname = "metasrht";
|
pname = "metasrht";
|
||||||
inherit version;
|
inherit version src;
|
||||||
|
|
||||||
src = fetchgit {
|
|
||||||
url = "https://git.sr.ht/~sircmpwn/meta.sr.ht";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "0c9y1hzx3dj0awxrhkzrcsmy6q9fqm6v6dbp9y1ria3v47xa3nv7";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = srht.nativeBuildInputs;
|
nativeBuildInputs = srht.nativeBuildInputs;
|
||||||
|
|
||||||
@ -36,19 +52,20 @@ in buildPythonPackage rec {
|
|||||||
pystache
|
pystache
|
||||||
sshpubkeys
|
sshpubkeys
|
||||||
weasyprint
|
weasyprint
|
||||||
|
prometheus_client
|
||||||
|
dnspython
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export PKGVER=${version}
|
export PKGVER=${version}
|
||||||
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp ${buildAPI "${src}/api"}/bin/api $out/bin/metasrht-api
|
cp ${buildApi "${src}/api/"}/bin/api $out/bin/metasrht-api
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontUseSetuptoolsCheck = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://git.sr.ht/~sircmpwn/meta.sr.ht";
|
homepage = "https://git.sr.ht/~sircmpwn/meta.sr.ht";
|
||||||
description = "Account management service for the sr.ht network";
|
description = "Account management service for the sr.ht network";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user