1{ lib
2, fetchFromSourcehut
3, buildPythonPackage
4, srht
5, pyyaml
6, PyGithub
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "dispatchsrht";
12 version = "0.15.8";
13
14 src = fetchFromSourcehut {
15 owner = "~sircmpwn";
16 repo = "dispatch.sr.ht";
17 rev = version;
18 sha256 = "sha256-zWCGPjIgMKHXHJUs9aciV7IFgo0rpahon6KXHDwcfss=";
19 };
20
21 nativeBuildInputs = srht.nativeBuildInputs;
22
23 propagatedBuildInputs = [
24 srht
25 pyyaml
26 PyGithub
27 ];
28
29 preBuild = ''
30 export PKGVER=${version}
31 export SRHT_PATH=${srht}/${python.sitePackages}/srht
32 '';
33
34 meta = with lib; {
35 homepage = "https://dispatch.sr.ht/~sircmpwn/dispatch.sr.ht";
36 description = "Task dispatcher and service integration tool for the sr.ht network";
37 license = licenses.agpl3;
38 maintainers = with maintainers; [ eadwu ];
39 };
40}