nixpkgs-suyu/pkgs/applications/version-management/sourcehut/lists.nix

49 lines
899 B
Nix
Raw Normal View History

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