2021-04-18 04:14:32 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
}:
|
2020-06-23 01:05:34 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hubsrht";
|
2022-05-05 23:04:44 +01:00
|
|
|
version = "0.14.14";
|
2020-06-23 01:05:34 +01:00
|
|
|
|
2021-04-18 04:14:32 +01:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~sircmpwn";
|
|
|
|
repo = "hub.sr.ht";
|
2020-06-23 01:05:34 +01:00
|
|
|
rev = version;
|
2022-05-05 23:04:44 +01:00
|
|
|
sha256 = "sha256-4n6oQ+AAvdJY/5KflxAp62chjyrlSUkmt319DKZk33w=";
|
2020-06-23 01:05:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = srht.nativeBuildInputs;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
srht
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export PKGVER=${version}
|
|
|
|
'';
|
|
|
|
|
2021-01-03 05:36:55 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
2021-08-15 22:11:47 +01:00
|
|
|
pythonImportsCheck = [ "hubsrht" ];
|
2021-01-03 05:36:55 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-23 01:05:34 +01:00
|
|
|
homepage = "https://git.sr.ht/~sircmpwn/hub.sr.ht";
|
|
|
|
description = "Project hub service for the sr.ht network";
|
2021-08-15 21:54:11 +01:00
|
|
|
license = licenses.agpl3Only;
|
2020-06-23 01:05:34 +01:00
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|