2018-10-26 13:01:02 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, capnproto
|
|
|
|
, cython
|
|
|
|
, isPyPy
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycapnp";
|
2019-02-14 07:37:25 +00:00
|
|
|
version = "0.6.4";
|
2018-10-26 13:01:02 +00:00
|
|
|
disabled = isPyPy || isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:25 +00:00
|
|
|
sha256 = "44e14a5ace399cf1753acb8bbce558b8c895c48fd2102d266c34eaff286824cf";
|
2018-10-26 13:01:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ capnproto cython ];
|
|
|
|
|
|
|
|
# import setuptools as soon as possible, to minimize monkeypatching mayhem.
|
|
|
|
postConfigure = ''
|
|
|
|
sed -i '3iimport setuptools' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
homepage = "http://jparyani.github.io/pycapnp/index.html";
|
|
|
|
broken = true; # 2018-04-11
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|