Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pycapnp / default.nix
blobb18fa3b3fc7f5c28f947519a41e016ab0fa8381f
1 { lib
2 , buildPythonPackage
3 , capnproto
4 , cython
5 , fetchFromGitHub
6 , isPy27
7 , isPyPy
8 , pkgconfig
9 }:
11 buildPythonPackage rec {
12   pname = "pycapnp";
13   version = "1.1.0";
14   disabled = isPyPy || isPy27;
16   src = fetchFromGitHub {
17     owner = "capnproto";
18     repo = pname;
19     rev = "v${version}";
20     sha256 = "1xi6df93ggkpmwckwbi356v7m32zv5qry8s45hvsps66dz438kmi";
21   };
23   nativeBuildInputs = [ cython pkgconfig ];
25   buildInputs = [ capnproto ];
27   # Tests depend on schema_capnp which fails to generate
28   doCheck = false;
30   pythonImportsCheck = [ "capnp" ];
32   meta = with lib; {
33     homepage = "https://capnproto.github.io/pycapnp/";
34     maintainers = with maintainers; [ ];
35     license = licenses.bsd2;
36     # No support for capnproto 1.0 yet
37     # https://github.com/capnproto/pycapnp/issues/323
38     broken = lib.versionAtLeast capnproto.version "1.0";
39   };