54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, buildPythonPackage
|
|
, srht
|
|
, asyncpg
|
|
, aiosmtpd
|
|
, pygit2
|
|
, emailthreads
|
|
, redis
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "listssrht";
|
|
version = "0.51.7";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~sircmpwn";
|
|
repo = "lists.sr.ht";
|
|
rev = version;
|
|
sha256 = "sha256-oNY5A98oVoL2JKO0fU/8YVl8u7ywmHb/RHD8A6z9yIM=";
|
|
};
|
|
|
|
patches = [
|
|
# Revert change breaking Unix socket support for Redis
|
|
patches/redis-socket/lists/0001-Revert-Add-webhook-queue-monitoring.patch
|
|
];
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
propagatedBuildInputs = [
|
|
srht
|
|
pygit2
|
|
asyncpg
|
|
aiosmtpd
|
|
emailthreads
|
|
redis
|
|
];
|
|
|
|
preBuild = ''
|
|
export PKGVER=${version}
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
|
'';
|
|
|
|
pythonImportsCheck = [ "listssrht" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.sr.ht/~sircmpwn/lists.sr.ht";
|
|
description = "Mailing list service for the sr.ht network";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ eadwu ];
|
|
};
|
|
}
|