forked from mirrors/nixpkgs
43 lines
869 B
Nix
43 lines
869 B
Nix
{ lib
|
|
, fetchFromSourcehut
|
|
, buildPythonPackage
|
|
, srht
|
|
, pyyaml
|
|
, PyGithub
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dispatchsrht";
|
|
version = "0.15.32";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~sircmpwn";
|
|
repo = "dispatch.sr.ht";
|
|
rev = version;
|
|
sha256 = "sha256-4P4cXhjcZ8IBzpRfmYIJkzl9U4Plo36a48Pf/KjmhFY=";
|
|
};
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
propagatedBuildInputs = [
|
|
srht
|
|
pyyaml
|
|
PyGithub
|
|
];
|
|
|
|
preBuild = ''
|
|
export PKGVER=${version}
|
|
export SRHT_PATH=${srht}/${python.sitePackages}/srht
|
|
'';
|
|
|
|
pythonImportsCheck = [ "dispatchsrht" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://dispatch.sr.ht/~sircmpwn/dispatch.sr.ht";
|
|
description = "Task dispatcher and service integration tool for the sr.ht network";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ eadwu ];
|
|
};
|
|
}
|