2021-04-18 05:13:00 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
, asyncpg
|
|
|
|
, aiosmtpd
|
|
|
|
, pygit2
|
|
|
|
, emailthreads
|
|
|
|
, redis
|
|
|
|
, python
|
|
|
|
}:
|
2019-01-22 03:01:52 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "listssrht";
|
2021-12-28 22:27:59 +01:00
|
|
|
version = "0.51.0";
|
2019-01-22 03:01:52 +01:00
|
|
|
|
2021-04-18 05:13:00 +02:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "lists.sr.ht";
|
2019-01-22 03:01:52 +01:00
|
|
|
rev = version;
|
2021-12-28 22:27:59 +01:00
|
|
|
sha256 = "sha256-iywZ6G5E4AJevg/Q1LoB7JMJxBcsAnbhiND++mFy/bw=";
|
2019-01-22 03:01:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
2019-11-30 03:53:14 +01:00
|
|
|
pygit2
|
2019-01-22 03:01:52 +01:00
|
|
|
asyncpg
|
|
|
|
aiosmtpd
|
|
|
|
emailthreads
|
2021-04-18 05:13:00 +02:00
|
|
|
redis
|
2019-01-22 03:01:52 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
2021-04-18 05:13:00 +02:00
|
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
2019-01-22 03:01:52 +01:00
|
|
|
'';
|
|
|
|
|
2021-08-15 23:11:47 +02:00
|
|
|
pythonImportsCheck = [ "listssrht" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/lists.sr.ht";
|
2019-01-22 03:01:52 +01:00
|
|
|
description = "Mailing list service for the sr.ht network";
|
2021-08-15 22:54:11 +02:00
|
|
|
license = licenses.agpl3Only;
|
2019-01-22 03:01:52 +01:00
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|