vscode-extensions.capatech.betacode: init at 0.1.10 (#355720)
[NixPkgs.git] / pkgs / servers / matrix-synapse / plugins / rendezvous.nix
blob82874d3b3bd1ac524ce5eeb8910e3a3af51d05cd
1 { lib, buildPythonPackage, fetchFromGitHub, rustPlatform, setuptools-rust }:
3 buildPythonPackage rec {
4   pname = "matrix-http-rendezvous-synapse";
5   version = "0.1.12";
6   format = "pyproject";
8   src = fetchFromGitHub {
9     owner = "matrix-org";
10     repo = "rust-http-rendezvous-server";
11     rev = "v${version}";
12     sha256 = "sha256-minwa+7HLTNSBtBtt5pnoHsFnNEh834nsVw80+FIQi8=";
13   };
15   postPatch = ''
16     cp ${./rendezvous-Cargo.lock} Cargo.lock
17   '';
19   cargoDeps = rustPlatform.fetchCargoTarball {
20     inherit src postPatch;
21     name = "${pname}-${version}";
22     hash = "sha256-TyxDq6YxZUArRj5gpjB1afDQgtUlCVer3Uhq6YKvVYM=";
23   };
25   nativeBuildInputs = [
26     setuptools-rust
27   ] ++ (with rustPlatform; [
28     cargoSetupHook
29     maturinBuildHook
30   ]);
32   buildAndTestSubdir = "synapse";
35   pythonImportsCheck = [ "matrix_http_rendezvous_synapse" ];
37   meta = with lib; {
38     description = "Implementation of MSC3886: Simple rendezvous capability";
39     homepage = "https://github.com/matrix-org/rust-http-rendezvous-server";
40     license = licenses.asl20;
41     maintainers = with maintainers; [ SuperSandro2000 ];
42   };