2021-04-18 04:12:01 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
, pyyaml
|
|
|
|
, PyGithub
|
|
|
|
, python
|
|
|
|
}:
|
2019-01-22 02:01:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dispatchsrht";
|
2021-04-18 04:12:01 +01:00
|
|
|
version = "0.15.8";
|
2019-01-22 02:01:52 +00:00
|
|
|
|
2021-04-18 04:12:01 +01:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "dispatch.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
rev = version;
|
2021-04-18 04:12:01 +01:00
|
|
|
sha256 = "sha256-zWCGPjIgMKHXHJUs9aciV7IFgo0rpahon6KXHDwcfss=";
|
2019-01-22 02:01:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
pyyaml
|
|
|
|
PyGithub
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
2021-04-18 04:12:01 +01: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 02:11:51 +01:00
|
|
|
homepage = "https://dispatch.sr.ht/~sircmpwn/dispatch.sr.ht";
|
2019-01-22 02:01:52 +00:00
|
|
|
description = "Task dispatcher and service integration tool for the sr.ht network";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|