depot/third_party/nixpkgs/pkgs/development/python-modules/pycapnp/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

45 lines
889 B
Nix

{
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";
};
}