2021-04-18 04:14:32 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromSourcehut
|
|
|
|
, buildPythonPackage
|
|
|
|
, srht
|
|
|
|
}:
|
2020-06-23 01:05:34 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hubsrht";
|
2021-04-18 04:14:32 +01:00
|
|
|
version = "0.13.1";
|
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;
|
2021-04-18 04:14:32 +01:00
|
|
|
sha256 = "sha256-Kqzy4mh5Nn1emzHBco/LVuXro/tW3NX+OYqdEwBSQ/U=";
|
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-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";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|