19 gqlgen = import ./fix-gqlgen-trimpath.nix {
21 gqlgenVersion = "0.17.45";
26 disabled = pythonOlder "3.7";
28 src = fetchFromSourcehut {
32 hash = "sha256-+BYeE+8dXY/MLLYyBBLD+eKqmrPiKyyCGIZLkCPzNYM=";
36 hgsrht-api = buildGoModule (
41 vendorHash = "sha256-K+KMhcvkG/qeQTnlHS4xhLCcvBQNNp2DcScJPm8Dbic=";
46 hgsrht-keys = buildGoModule {
48 pname = "hgsrht-keys";
49 modRoot = "hgsrht-keys";
50 vendorHash = "sha256-7ti8xCjSrxsslF7/1X/GY4FDl+69hPL4UwCDfjxmJLU=";
53 substituteInPlace hgsrht-keys/main.go \
54 --replace /var/log/hgsrht-keys /var/log/sourcehut/hgsrht-keys
58 buildPythonPackage rec {
63 substituteInPlace Makefile \
64 --replace "all: api hgsrht-keys" ""
66 substituteInPlace hgsrht-shell \
67 --replace /var/log/hgsrht-shell /var/log/sourcehut/hgsrht-shell
75 propagatedBuildInputs = [
83 export PKGVER=${version}
84 export SRHT_PATH=${srht}/${python.sitePackages}/srht
88 ln -s ${hgsrht-api}/bin/api $out/bin/hgsrht-api
89 ln -s ${hgsrht-keys}/bin/hgsrht-keys $out/bin/hgsrht-keys
92 pythonImportsCheck = [ "hgsrht" ];
95 homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht";
96 description = "Mercurial repository hosting service for the sr.ht network";
97 license = licenses.agpl3Only;
98 maintainers = with maintainers; [