18 gqlgen = import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.45"; };
22 disabled = pythonOlder "3.7";
24 src = fetchFromSourcehut {
28 hash = "sha256-+BYeE+8dXY/MLLYyBBLD+eKqmrPiKyyCGIZLkCPzNYM=";
32 hgsrht-api = buildGoModule ({
36 vendorHash = "sha256-K+KMhcvkG/qeQTnlHS4xhLCcvBQNNp2DcScJPm8Dbic=";
39 hgsrht-keys = buildGoModule {
41 pname = "hgsrht-keys";
42 modRoot = "hgsrht-keys";
43 vendorHash = "sha256-7ti8xCjSrxsslF7/1X/GY4FDl+69hPL4UwCDfjxmJLU=";
46 substituteInPlace hgsrht-keys/main.go \
47 --replace /var/log/hgsrht-keys /var/log/sourcehut/hgsrht-keys
51 buildPythonPackage rec {
56 substituteInPlace Makefile \
57 --replace "all: api hgsrht-keys" ""
59 substituteInPlace hgsrht-shell \
60 --replace /var/log/hgsrht-shell /var/log/sourcehut/hgsrht-shell
68 propagatedBuildInputs = [
76 export PKGVER=${version}
77 export SRHT_PATH=${srht}/${python.sitePackages}/srht
81 ln -s ${hgsrht-api}/bin/api $out/bin/hgsrht-api
82 ln -s ${hgsrht-keys}/bin/hgsrht-keys $out/bin/hgsrht-keys
85 pythonImportsCheck = [ "hgsrht" ];
88 homepage = "https://git.sr.ht/~sircmpwn/hg.sr.ht";
89 description = "Mercurial repository hosting service for the sr.ht network";
90 license = licenses.agpl3Only;
91 maintainers = with maintainers; [ eadwu christoph-heiss ];