1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python: jupyter_client: 5.1.0 -> 5.2.0

This commit is contained in:
Frederik Rietdijk 2017-12-30 12:23:54 +01:00
parent b3aa977bbf
commit d170941f6e
2 changed files with 25 additions and 6 deletions

View file

@ -1,32 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, traitlets
, jupyter_core
, pyzmq
, dateutil
, isPyPy
, py
, ipykernel
, ipython
, mock
, pytest
}:
buildPythonPackage rec {
pname = "jupyter_client";
version = "5.1.0";
name = "${pname}-${version}";
version = "5.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "08756b021765c97bc5665390700a4255c2df31666ead8bff116b368d09912aba";
sha256 = "ca30cf1786047925ebacd6f6faa3a993efaa004b584f7d83bc8b807f7cd3f6bb";
};
buildInputs = [ nose ];
checkInputs = [ ipykernel ipython mock pytest ];
propagatedBuildInputs = [traitlets jupyter_core pyzmq dateutil] ++ lib.optional isPyPy py;
checkPhase = ''
nosetests -v
py.test
'';
patches = [
./wheel_workaround.patch
];
# Circular dependency with ipykernel
doCheck = false;

View file

@ -0,0 +1,13 @@
diff --git a/setup.py b/setup.py
index 95d4774..ee72cbc 100644
--- a/setup.py
+++ b/setup.py
@@ -86,7 +86,7 @@ setup_args = dict(
extras_require = {
'test': ['ipykernel', 'ipython', 'mock'],
'test:python_version == "3.3"': ['pytest<3.3.0'],
- 'test:python_version >= "3.4" or python_version == "2.7"': ['pytest'],
+ 'test:(python_version >= "3.4" or python_version == "2.7")': ['pytest'],
},
cmdclass = {
'bdist_egg': bdist_egg if 'bdist_egg' in sys.argv else bdist_egg_disabled,