Merge pull request #34809 from typetetris/master

python.pkgs: msgpack changes and neovim update
This commit is contained in:
Frederik Rietdijk 2018-02-10 14:35:00 +00:00 committed by GitHub
commit a4db058e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 81 additions and 49 deletions

View File

@ -12,7 +12,7 @@ pythonPackages.buildPythonApplication rec {
sha256 = "04sgns9qczzw2152gqdr6bjyy4fmgs26cz8n3qck94l0j51rxhz8";
};
propagatedBuildInputs = with pythonPackages; [ msgpack pyqt4 numpy pyopencl ] ++ [ openssl ];
propagatedBuildInputs = with pythonPackages; [ msgpack-python pyqt4 numpy pyopencl ] ++ [ openssl ];
preConfigure = ''
# Remove interaction and misleading output

View File

@ -2,7 +2,7 @@
, fetchPypi
, mock
, unittest2
, msgpack
, msgpack-python
, requests
, flask
, gevent
@ -22,7 +22,7 @@ buildPythonPackage rec {
sed -i s/"pyzmq=="/"pyzmq>="/ setup.py
'';
propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ];
propagatedBuildInputs = [ msgpack-python requests flask gevent pyzmq ];
buildInputs = [ mock unittest2 ];
meta = {

View File

@ -0,0 +1,28 @@
{ buildPythonPackage
, fetchPypi
, pytest
, lib
}:
buildPythonPackage rec {
pname = "msgpack";
version = "0.5.4";
src = fetchPypi {
inherit pname version;
sha256 = "13ckbs2qc4dww7fddnm9cw116j4spgxqab49ijmj6jr178ypwl80";
};
checkPhase = ''
py.test
'';
checkInputs = [ pytest ];
meta = {
homepage = https://github.com/msgpack/msgpack-python;
description = "MessagePack serializer implementation for Python";
license = lib.licenses.asl20;
# maintainers = ?? ;
};
}

View File

@ -0,0 +1,41 @@
{ buildPythonPackage
, fetchPypi
, lib
, nose
, msgpack
, greenlet
, trollius
, pythonOlder
, isPyPy
}:
buildPythonPackage rec {
pname = "neovim";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "16vzxmp7f6dl20n30j5cwwvrjj5h3c2ch8ldbss31anf36nirsdp";
};
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
# Tests require pkgs.neovim,
# which we cannot add because of circular dependency.
doCheck = false;
propagatedBuildInputs = [ msgpack ]
++ lib.optional (!isPyPy) greenlet
++ lib.optional (pythonOlder "3.4") trollius;
meta = {
description = "Python client for Neovim";
homepage = "https://github.com/neovim/python-client";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ garbas ];
};
}

View File

@ -42,7 +42,7 @@ in pythonPackages.buildPythonApplication rec {
pydenticon pymacaroons-pynacl pynacl pyopenssl pysaml2 pytz requests
signedjson systemd twisted ujson unpaddedbase64 pyyaml
matrix-angular-sdk bleach netaddr jinja2 psycopg2
psutil msgpack lxml matrix-synapse-ldap3
psutil msgpack-python lxml matrix-synapse-ldap3
phonenumbers jsonschema affinity bcrypt
];

View File

@ -19,7 +19,7 @@ python3Packages.buildPythonApplication rec {
lz4 openssl python3Packages.setuptools_scm
] ++ stdenv.lib.optionals stdenv.isLinux [ acl ];
propagatedBuildInputs = with python3Packages; [
cython msgpack
cython msgpack-python
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ llfuse ];
preConfigure = ''

View File

@ -3642,7 +3642,7 @@ in {
buildInputs = with self; [ pytest docutils ];
propagatedBuildInputs = with self; [
dask six boto3 s3fs tblib locket msgpack click cloudpickle tornado
dask six boto3 s3fs tblib locket msgpack-python click cloudpickle tornado
psutil botocore zict lz4 sortedcollections sortedcontainers
] ++ (if !isPy3k then [ singledispatch ] else []);
@ -10551,21 +10551,13 @@ in {
};
};
msgpack = buildPythonPackage rec {
name = "msgpack-python-${version}";
version = "0.4.7";
msgpack = callPackage ../development/python-modules/msgpack {};
src = pkgs.fetchurl {
url = "mirror://pypi/m/msgpack-python/${name}.tar.gz";
sha256 = "0syd7bs83qs9qmxw540jbgsildbqk4yb57fmrlns1021llli402y";
};
checkPhase = ''
py.test
msgpack-python = self.msgpack.overridePythonAttrs {
pname = "msgpack-python";
postPatch = ''
substituteInPlace setup.py --replace "TRANSITIONAL = False" "TRANSITIONAL = True"
'';
buildInputs = with self; [ pytest ];
propagatedBuildInputs = with self; [ ];
};
msrplib = buildPythonPackage rec {
@ -20421,36 +20413,7 @@ EOF
trollius = callPackage ../development/python-modules/trollius {};
neovim = buildPythonPackage rec {
version = "0.2.0";
name = "neovim-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/n/neovim/${name}.tar.gz";
sha256 = "1ywkgbrxd95cwlglihydmffcw2d2aji6562aqncymxs3ld5y02yn";
};
buildInputs = with self; [ nose ];
checkPhase = ''
nosetests
'';
# Tests require pkgs.neovim,
# which we cannot add because of circular dependency.
doCheck = false;
propagatedBuildInputs = with self; [ msgpack ]
++ optional (!isPyPy) greenlet
++ optional (pythonOlder "3.4") trollius;
meta = {
description = "Python client for Neovim";
homepage = "https://github.com/neovim/python-client";
license = licenses.asl20;
maintainers = with maintainers; [ garbas ];
};
};
neovim = callPackage ../development/python-modules/neovim {};
neovim_gui = buildPythonPackage rec {
name = "neovim-pygui-${self.neovim.version}";