about summary refs log tree commit diff
path: root/pkgs/development/python-modules/nanomsg-python/default.nix
blob: 1125b88c0e4ea07b75f7103d3078a9f3085bfb26 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  nanomsg,
  setuptools,
  pythonOlder,
}:

buildPythonPackage {
  pname = "nanomsg-python";
  version = "1.0.20190114";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "tonysimpson";
    repo = "nanomsg-python";
    rev = "3acd9160f90f91034d4a43ce603aaa19fbaf1f2e";
    hash = "sha256-NHurZWiW/Csp6NyuSV+oD16+L2uPUZWGzb2nWi9b/uE=";
  };

  build-system = [ setuptools ];

  buildInputs = [ nanomsg ];

  # Tests requires network connections
  doCheck = false;

  pythonImportsCheck = [ "nanomsg" ];

  meta = with lib; {
    description = "Bindings for nanomsg";
    homepage = "https://github.com/tonysimpson/nanomsg-python";
    license = licenses.mit;
    maintainers = with maintainers; [ bgamari ];
  };
}