blob: 5276e951b3c7c05ea4363498e6fcdf5eccbd8b86 (
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
|
{
lib,
buildPythonPackage,
capnproto,
cython,
fetchFromGitHub,
isPy27,
isPyPy,
pkgconfig,
}:
buildPythonPackage rec {
pname = "pycapnp";
version = "1.1.0";
format = "setuptools";
disabled = isPyPy || isPy27;
src = fetchFromGitHub {
owner = "capnproto";
repo = pname;
rev = "v${version}";
sha256 = "1xi6df93ggkpmwckwbi356v7m32zv5qry8s45hvsps66dz438kmi";
};
nativeBuildInputs = [
cython
pkgconfig
];
buildInputs = [ capnproto ];
# Tests depend on schema_capnp which fails to generate
doCheck = false;
pythonImportsCheck = [ "capnp" ];
meta = with lib; {
homepage = "https://capnproto.github.io/pycapnp/";
maintainers = [ ];
license = licenses.bsd2;
# No support for capnproto 1.0 yet
# https://github.com/capnproto/pycapnp/issues/323
broken = lib.versionAtLeast capnproto.version "1.0";
};
}
|