1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 nanomsg,
6 setuptools,
7 pythonOlder,
8}:
9
10buildPythonPackage {
11 pname = "nanomsg-python";
12 version = "1.0.20190114";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "tonysimpson";
19 repo = "nanomsg-python";
20 rev = "3acd9160f90f91034d4a43ce603aaa19fbaf1f2e";
21 hash = "sha256-NHurZWiW/Csp6NyuSV+oD16+L2uPUZWGzb2nWi9b/uE=";
22 };
23
24 build-system = [ setuptools ];
25
26 buildInputs = [ nanomsg ];
27
28 # Tests requires network connections
29 doCheck = false;
30
31 pythonImportsCheck = [ "nanomsg" ];
32
33 meta = with lib; {
34 description = "Bindings for nanomsg";
35 homepage = "https://github.com/tonysimpson/nanomsg-python";
36 license = licenses.mit;
37 maintainers = with maintainers; [ bgamari ];
38 };
39}