about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nameko/default.nix
blob: 93bc03bcde95ed6c6fec3e9debe65da36e1b658e (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder

# install_requires
, dnspython
, eventlet
, kombu
, mock
, packaging
, path
, pyyaml
, requests
, setuptools
, six
, werkzeug
, wrapt
}:

buildPythonPackage rec {
  pname = "nameko";
  version = "2.14.1";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-J1NXi7Tca5KAGuozTSkwuX37dEhucF7daRmDBqlGjIg=";
  };

  postPatch = ''
    substituteInPlace setup.py --replace "path.py" "path"
  '';

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    dnspython
    eventlet
    kombu
    mock
    packaging
    path
    pyyaml
    requests
    setuptools
    six
    werkzeug
    wrapt
  ];

  # tests depend on RabbitMQ being installed - https://nameko.readthedocs.io/en/stable/contributing.html#running-the-tests
  # and most of the tests are network based
  doCheck = false;

  pythonImportsCheck = [
    "nameko"
  ];

  meta = with lib; {
    description = "A microservices framework that lets service developers concentrate on application logic and encourages testability";
    mainProgram = "nameko";
    homepage = "https://www.nameko.io/";
    changelog = "https://github.com/nameko/nameko/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ siddharthdhakane ];
  };
}