2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, capnproto
|
|
|
|
, cython
|
2021-01-09 10:05:03 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPyPy
|
2021-01-09 10:05:03 +00:00
|
|
|
, pkgconfig
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycapnp";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "1.0.0";
|
2021-01-09 10:05:03 +00:00
|
|
|
disabled = isPyPy || isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "capnproto";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1n6dq2fbagi3wvrpkyb7wx4y15nkm2grln4y75hrqgmnli8ggi9v";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
buildInputs = [ capnproto cython pkgconfig ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
# Tests disabled due to dependency on jinja and various other libraries.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "capnp" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan lukeadams ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
2021-01-09 10:05:03 +00:00
|
|
|
homepage = "https://capnproto.github.io/pycapnp/";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|