datalad: fix changed hash from upstream (#364015)
[NixPkgs.git] / pkgs / servers / matrix-synapse / plugins / rendezvous.nix
blob921a62adf9cb3acd00848b2ad841b32a1a09da32
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   rustPlatform,
6   setuptools-rust,
7 }:
9 buildPythonPackage rec {
10   pname = "matrix-http-rendezvous-synapse";
11   version = "0.1.12";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "matrix-org";
16     repo = "rust-http-rendezvous-server";
17     rev = "v${version}";
18     sha256 = "sha256-minwa+7HLTNSBtBtt5pnoHsFnNEh834nsVw80+FIQi8=";
19   };
21   postPatch = ''
22     cp ${./rendezvous-Cargo.lock} Cargo.lock
23   '';
25   cargoDeps = rustPlatform.fetchCargoTarball {
26     inherit src postPatch;
27     name = "${pname}-${version}";
28     hash = "sha256-TyxDq6YxZUArRj5gpjB1afDQgtUlCVer3Uhq6YKvVYM=";
29   };
31   nativeBuildInputs =
32     [
33       setuptools-rust
34     ]
35     ++ (with rustPlatform; [
36       cargoSetupHook
37       maturinBuildHook
38     ]);
40   buildAndTestSubdir = "synapse";
42   pythonImportsCheck = [ "matrix_http_rendezvous_synapse" ];
44   meta = with lib; {
45     description = "Implementation of MSC3886: Simple rendezvous capability";
46     homepage = "https://github.com/matrix-org/rust-http-rendezvous-server";
47     license = licenses.asl20;
48     maintainers = with maintainers; [ SuperSandro2000 ];
49   };