summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/envoy-data-plane/default.nix
blob: f9f67018c4865e4cbb4f4efc2111b410ed3eb418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchPypi,

  # build-system
  poetry-core,

  # dependencies
  betterproto,
  grpcio-tools,
}:

buildPythonPackage (finalAttrs: {
  pname = "envoy-data-plane";
  version = "1.0.3";
  pyproject = true;

  # Version 2.0.0 appears to be an empty archive and apache-beam requires envoy-data-planes<2.0.0
  # nixpkgs-update: no auto update
  src = fetchPypi {
    pname = "envoy_data_plane";
    inherit (finalAttrs) version;
    hash = "sha256-UkSrtENDXjEtvEJldgZ5UHHkxK3rOqV3mmifrLGo538=";
  };

  build-system = [
    poetry-core
  ];

  pythonRelaxDeps = [
    "betterproto"
  ];
  dependencies = [
    betterproto
    grpcio-tools
  ];

  pythonImportsCheck = [ "envoy_data_plane" ];

  # No tests
  doCheck = false;

  meta = {
    description = "Python dataclasses for the Envoy Data-Plane-API";
    homepage = "https://pypi.org/project/envoy_data_plane/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
})