Merge pull request #34809 from typetetris/master
python.pkgs: msgpack changes and neovim update
This commit is contained in:
commit
a4db058e7b
@ -12,7 +12,7 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
sha256 = "04sgns9qczzw2152gqdr6bjyy4fmgs26cz8n3qck94l0j51rxhz8";
|
sha256 = "04sgns9qczzw2152gqdr6bjyy4fmgs26cz8n3qck94l0j51rxhz8";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ msgpack pyqt4 numpy pyopencl ] ++ [ openssl ];
|
propagatedBuildInputs = with pythonPackages; [ msgpack-python pyqt4 numpy pyopencl ] ++ [ openssl ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
# Remove interaction and misleading output
|
# Remove interaction and misleading output
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, fetchPypi
|
, fetchPypi
|
||||||
, mock
|
, mock
|
||||||
, unittest2
|
, unittest2
|
||||||
, msgpack
|
, msgpack-python
|
||||||
, requests
|
, requests
|
||||||
, flask
|
, flask
|
||||||
, gevent
|
, gevent
|
||||||
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
|||||||
sed -i s/"pyzmq=="/"pyzmq>="/ setup.py
|
sed -i s/"pyzmq=="/"pyzmq>="/ setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ];
|
propagatedBuildInputs = [ msgpack-python requests flask gevent pyzmq ];
|
||||||
buildInputs = [ mock unittest2 ];
|
buildInputs = [ mock unittest2 ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
28
pkgs/development/python-modules/msgpack/default.nix
Normal file
28
pkgs/development/python-modules/msgpack/default.nix
Normal 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 = ?? ;
|
||||||
|
};
|
||||||
|
}
|
41
pkgs/development/python-modules/neovim/default.nix
Normal file
41
pkgs/development/python-modules/neovim/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -42,7 +42,7 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
pydenticon pymacaroons-pynacl pynacl pyopenssl pysaml2 pytz requests
|
pydenticon pymacaroons-pynacl pynacl pyopenssl pysaml2 pytz requests
|
||||||
signedjson systemd twisted ujson unpaddedbase64 pyyaml
|
signedjson systemd twisted ujson unpaddedbase64 pyyaml
|
||||||
matrix-angular-sdk bleach netaddr jinja2 psycopg2
|
matrix-angular-sdk bleach netaddr jinja2 psycopg2
|
||||||
psutil msgpack lxml matrix-synapse-ldap3
|
psutil msgpack-python lxml matrix-synapse-ldap3
|
||||||
phonenumbers jsonschema affinity bcrypt
|
phonenumbers jsonschema affinity bcrypt
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ python3Packages.buildPythonApplication rec {
|
|||||||
lz4 openssl python3Packages.setuptools_scm
|
lz4 openssl python3Packages.setuptools_scm
|
||||||
] ++ stdenv.lib.optionals stdenv.isLinux [ acl ];
|
] ++ stdenv.lib.optionals stdenv.isLinux [ acl ];
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
cython msgpack
|
cython msgpack-python
|
||||||
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ llfuse ];
|
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ llfuse ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
@ -3642,7 +3642,7 @@ in {
|
|||||||
|
|
||||||
buildInputs = with self; [ pytest docutils ];
|
buildInputs = with self; [ pytest docutils ];
|
||||||
propagatedBuildInputs = with self; [
|
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
|
psutil botocore zict lz4 sortedcollections sortedcontainers
|
||||||
] ++ (if !isPy3k then [ singledispatch ] else []);
|
] ++ (if !isPy3k then [ singledispatch ] else []);
|
||||||
|
|
||||||
@ -10551,21 +10551,13 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
msgpack = buildPythonPackage rec {
|
msgpack = callPackage ../development/python-modules/msgpack {};
|
||||||
name = "msgpack-python-${version}";
|
|
||||||
version = "0.4.7";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
msgpack-python = self.msgpack.overridePythonAttrs {
|
||||||
url = "mirror://pypi/m/msgpack-python/${name}.tar.gz";
|
pname = "msgpack-python";
|
||||||
sha256 = "0syd7bs83qs9qmxw540jbgsildbqk4yb57fmrlns1021llli402y";
|
postPatch = ''
|
||||||
};
|
substituteInPlace setup.py --replace "TRANSITIONAL = False" "TRANSITIONAL = True"
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = with self; [ pytest ];
|
|
||||||
propagatedBuildInputs = with self; [ ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
msrplib = buildPythonPackage rec {
|
msrplib = buildPythonPackage rec {
|
||||||
@ -20421,36 +20413,7 @@ EOF
|
|||||||
|
|
||||||
trollius = callPackage ../development/python-modules/trollius {};
|
trollius = callPackage ../development/python-modules/trollius {};
|
||||||
|
|
||||||
neovim = buildPythonPackage rec {
|
neovim = callPackage ../development/python-modules/neovim {};
|
||||||
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_gui = buildPythonPackage rec {
|
neovim_gui = buildPythonPackage rec {
|
||||||
name = "neovim-pygui-${self.neovim.version}";
|
name = "neovim-pygui-${self.neovim.version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user