2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 14:01:02 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, capnproto
|
|
|
|
, cython
|
2021-01-01 00:31:47 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
2018-10-26 14:01:02 +01:00
|
|
|
, isPyPy
|
2021-01-01 00:31:47 +00:00
|
|
|
, pkgconfig
|
2018-10-26 14:01:02 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycapnp";
|
2020-11-29 14:04:37 +00:00
|
|
|
version = "1.0.0";
|
2021-01-01 00:31:47 +00:00
|
|
|
disabled = isPyPy || isPy27;
|
2018-10-26 14:01:02 +01:00
|
|
|
|
2021-01-01 00:31:47 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "capnproto";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1n6dq2fbagi3wvrpkyb7wx4y15nkm2grln4y75hrqgmnli8ggi9v";
|
2018-10-26 14:01:02 +01:00
|
|
|
};
|
|
|
|
|
2021-01-01 00:31:47 +00:00
|
|
|
buildInputs = [ capnproto cython pkgconfig ];
|
2018-10-26 14:01:02 +01:00
|
|
|
|
2021-01-01 00:31:47 +00:00
|
|
|
# Tests disabled due to dependency on jinja and various other libraries.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "capnp" ];
|
2018-10-26 14:01:02 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-01 00:31:47 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan lukeadams ];
|
2018-10-26 14:01:02 +01:00
|
|
|
license = licenses.bsd2;
|
2021-01-01 00:31:47 +00:00
|
|
|
homepage = "https://capnproto.github.io/pycapnp/";
|
2018-10-26 14:01:02 +01:00
|
|
|
};
|
|
|
|
}
|