1{ lib
2, buildPythonPackage
3, capnproto
4, cython
5, fetchFromGitHub
6, isPy27
7, isPyPy
8, pkgconfig
9}:
10
11buildPythonPackage rec {
12 pname = "pycapnp";
13 version = "1.0.0";
14 disabled = isPyPy || isPy27;
15
16 src = fetchFromGitHub {
17 owner = "capnproto";
18 repo = pname;
19 rev = "v${version}";
20 sha256 = "1n6dq2fbagi3wvrpkyb7wx4y15nkm2grln4y75hrqgmnli8ggi9v";
21 };
22
23 buildInputs = [ capnproto cython pkgconfig ];
24
25 # Tests disabled due to dependency on jinja and various other libraries.
26 doCheck = false;
27
28 pythonImportsCheck = [ "capnp" ];
29
30 meta = with lib; {
31 maintainers = with maintainers; [ cstrahan lukeadams ];
32 license = licenses.bsd2;
33 homepage = "https://capnproto.github.io/pycapnp/";
34 };
35}