2021-04-18 03:13:00 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
, asyncpg
|
|
|
|
, aiosmtpd
|
|
|
|
, pygit2
|
|
|
|
, emailthreads
|
|
|
|
, redis
|
|
|
|
, python
|
|
|
|
}:
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "listssrht";
|
2021-04-18 03:13:00 +00:00
|
|
|
version = "0.48.19";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
2021-04-18 03:13:00 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "lists.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
rev = version;
|
2021-04-18 03:13:00 +00:00
|
|
|
sha256 = "sha256-bsakEMyvWaxiE4/SGcAP4mlGG9jkdHfFxpt9H+TJn/8=";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
2019-11-30 02:53:14 +00:00
|
|
|
pygit2
|
2019-01-22 02:01:52 +00:00
|
|
|
asyncpg
|
|
|
|
aiosmtpd
|
|
|
|
emailthreads
|
2021-04-18 03:13:00 +00:00
|
|
|
redis
|
2019-01-22 02:01:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
2021-04-18 03:13:00 +00:00
|
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
2019-01-22 02:01:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/lists.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
description = "Mailing list service for the sr.ht network";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|