16 gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.43"; };
18 src = fetchFromSourcehut {
22 hash = "sha256-IyY7Niy/vZSAXjYZMlxY6uuQ8nH/4yT4+MaRjHtl6G4=";
25 hubsrht-api = buildGoModule ({
27 pname = "hubsrht-api";
29 vendorHash = "sha256-GVN11nEJqIHh8MtKvIXe4zcUwJph9eTSkJ2R+ufD+ic=";
32 buildPythonPackage rec {
37 disabled = pythonOlder "3.7";
40 substituteInPlace Makefile --replace "all: api" ""
48 propagatedBuildInputs = [
54 export PKGVER=${version}
55 export SRHT_PATH=${srht}/${python.sitePackages}/srht
59 ln -s ${hubsrht-api}/bin/api $out/bin/hubsrht-api
66 pythonImportsCheck = [
71 homepage = "https://git.sr.ht/~sircmpwn/hub.sr.ht";
72 description = "Project hub service for the sr.ht network";
73 license = licenses.agpl3Only;
74 maintainers = with maintainers; [ eadwu christoph-heiss ];