17 gqlgen = import ./fix-gqlgen-trimpath.nix {
19 gqlgenVersion = "0.17.43";
22 src = fetchFromSourcehut {
26 hash = "sha256-IyY7Niy/vZSAXjYZMlxY6uuQ8nH/4yT4+MaRjHtl6G4=";
29 hubsrht-api = buildGoModule (
32 pname = "hubsrht-api";
34 vendorHash = "sha256-GVN11nEJqIHh8MtKvIXe4zcUwJph9eTSkJ2R+ufD+ic=";
39 buildPythonPackage rec {
44 disabled = pythonOlder "3.7";
47 substituteInPlace Makefile --replace "all: api" ""
55 propagatedBuildInputs = [
61 export PKGVER=${version}
62 export SRHT_PATH=${srht}/${python.sitePackages}/srht
66 ln -s ${hubsrht-api}/bin/api $out/bin/hubsrht-api
72 pythonImportsCheck = [
77 homepage = "https://git.sr.ht/~sircmpwn/hub.sr.ht";
78 description = "Project hub service for the sr.ht network";
79 license = licenses.agpl3Only;
80 maintainers = with maintainers; [