git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #23885 from FRidh/jupyter
a79c653Frederik Rietdijk
pkgs/development/python-modules/configparser/0001-namespace-fix.patchnew file+42
@@ -0,0 +1,42 @@
1+From daae1ae35e13bc8107dc97d9219dfb8e172d5d2a Mon Sep 17 00:00:00 2001
2+From: Frederik Rietdijk <fridh@fridh.nl>
3+Date: Tue, 14 Mar 2017 15:00:33 +0100
4+Subject: [PATCH] namespace fix
5+
6+configparser broke other namespace packages
7+https://github.com/NixOS/nixpkgs/issues/23855#issuecomment-286427428
8+This patch seems to solve that issue.
9+---
10+ setup.py | 1 -
11+ src/backports/__init__.py | 6 ------
12+ 2 files changed, 7 deletions(-)
13+
14+diff --git a/setup.py b/setup.py
15+index 3b07823..63ed25d 100644
16+--- a/setup.py
17++++ b/setup.py
18+@@ -42,7 +42,6 @@ setup(
19+ py_modules=modules,
20+ package_dir={'': 'src'},
21+ packages=find_packages('src'),
22+- namespace_packages=['backports'],
23+ include_package_data=True,
24+ zip_safe=False,
25+ install_requires=requirements,
26+diff --git a/src/backports/__init__.py b/src/backports/__init__.py
27+index f84d25c..febdb2f 100644
28+--- a/src/backports/__init__.py
29++++ b/src/backports/__init__.py
30+@@ -3,9 +3,3 @@
31+
32+ from pkgutil import extend_path
33+ __path__ = extend_path(__path__, __name__)
34+-
35+-try:
36+- import pkg_resources
37+- pkg_resources.declare_namespace(__name__)
38+-except ImportError:
39+- pass
40+--
41+2.11.1
42+
pkgs/development/python-modules/typed-ast/default.nix+10−7
@@ -1,13 +1,16 @@
1−{ buildPythonPackage, fetchzip, isPy3k, lib, pythonOlder }:
1+{ buildPythonPackage, fetchPypi, isPy3k, lib, pythonOlder }:
2buildPythonPackage rec {
2buildPythonPackage rec {
3− name = "typed-ast-${version}";
3+ pname = "typed-ast";
4− version = "1.0.1";
4+ version = "1.0.2";
5− src = fetchzip {
5+ name = "${pname}-${version}";
6− url = "mirror://pypi/t/typed-ast/${name}.zip";
6+ src = fetchPypi{
7− sha256 = "1q69czr9ghnbd81hay71kgynn6mqi5nsgand9yw6dyw5bim5l154";
7+ inherit pname version;
8+ sha256 = "13e02b10479ddff07eb546f9638743702ab9b175bfa3cdf2482688df91b5766d";
8 };
9 };
9 # Only works with Python 3.3 and newer;
10 # Only works with Python 3.3 and newer;
10− disabled = !isPy3k && !(pythonOlder "3.3");
11+ disabled = pythonOlder "3.3";
12+ # No tests in archive
13+ doCheck = false;
11 meta = {
14 meta = {
12 homepage = "https://pypi.python.org/pypi/typed-ast";
15 homepage = "https://pypi.python.org/pypi/typed-ast";
13 description = "a fork of Python 2 and 3 ast modules with type comment support";
16 description = "a fork of Python 2 and 3 ast modules with type comment support";
pkgs/top-level/python-packages.nix+54−49
@@ -4146,6 +4146,12 @@ in {
4146 # No tests available
4146 # No tests available
4147 doCheck = false;
4147 doCheck = false;
4148
4148
4149+ # Fix issue when used together with other namespace packages
4150+ # https://github.com/NixOS/nixpkgs/issues/23855
4151+ patches = [
4152+ ./../development/python-modules/configparser/0001-namespace-fix.patch
4153+ ];
4154+
4149 meta = {
4155 meta = {
4150 maintainers = [ ];
4156 maintainers = [ ];
4151 platforms = platforms.all;
4157 platforms = platforms.all;
@@ -5346,10 +5352,10 @@ in {
5346
5352
5347 pytest-shutil = buildPythonPackage rec {
5353 pytest-shutil = buildPythonPackage rec {
5348 name = "pytest-shutil-${version}";
5354 name = "pytest-shutil-${version}";
5349− version = "1.1.1";
5355+ version = "1.2.8";
5350 src = pkgs.fetchurl {
5356 src = pkgs.fetchurl {
5351 url = "mirror://pypi/p/pytest-shutil/${name}.tar.gz";
5357 url = "mirror://pypi/p/pytest-shutil/${name}.tar.gz";
5352− sha256 = "bb3c4fc2dddaf70b38bd9bb7a710d07728fa14f88fbc89c2a07979b383ade5d4";
5358+ sha256 = "924accaec3f3781416139e580386ab4f849cb8662bc1072405a81d3a5e56bf3d";
5353 };
5359 };
5354 buildInputs = with self; [ cmdline pytest ];
5360 buildInputs = with self; [ cmdline pytest ];
5355 propagatedBuildInputs = with self; [ pytestcov coverage setuptools-git mock pathpy execnet contextlib2 ];
5361 propagatedBuildInputs = with self; [ pytestcov coverage setuptools-git mock pathpy execnet contextlib2 ];
@@ -5361,12 +5367,9 @@ in {
5361 license = licenses.mit;
5367 license = licenses.mit;
5362 };
5368 };
5363
5369
5364−
5365 checkPhase = ''
5370 checkPhase = ''
5366 py.test
5371 py.test
5367 '';
5372 '';
5368− # Bunch of pickle errors
5369− doCheck = false;
5370 };
5373 };
5371
5374
5372 pytestcov = buildPythonPackage (rec {
5375 pytestcov = buildPythonPackage (rec {
@@ -5396,10 +5399,10 @@ in {
5396 pytest-virtualenv = buildPythonPackage rec {
5399 pytest-virtualenv = buildPythonPackage rec {
5397 name = "${pname}-${version}";
5400 name = "${pname}-${version}";
5398 pname = "pytest-virtualenv";
5401 pname = "pytest-virtualenv";
5399− version = "1.1.0";
5402+ version = "1.2.7";
5400 src = pkgs.fetchurl {
5403 src = pkgs.fetchurl {
5401 url = "mirror://pypi/p/${pname}/${name}.tar.gz";
5404 url = "mirror://pypi/p/${pname}/${name}.tar.gz";
5402− sha256 = "093f5fa479ee6201e48db367c307531dc8b800609b0c3ddca9c01e0fd466a669";
5405+ sha256 = "51fb6468670624b2315aecaf1a2bbd698509e3ea6a1e28b094984c45e1376755";
5403 };
5406 };
5404 buildInputs = with self; [ pytest pytestcov mock cmdline ];
5407 buildInputs = with self; [ pytest pytestcov mock cmdline ];
5405 propagatedBuildInputs = with self; [ pytest-fixture-config pytest-shutil ];
5408 propagatedBuildInputs = with self; [ pytest-fixture-config pytest-shutil ];
@@ -5953,6 +5956,7 @@ in {
5953 description = "Date parsing library designed to parse dates from HTML pages";
5956 description = "Date parsing library designed to parse dates from HTML pages";
5954 homepage = http://pypi.python.org/pypi/dateparser;
5957 homepage = http://pypi.python.org/pypi/dateparser;
5955 license = licenses.bsd3;
5958 license = licenses.bsd3;
5959+ broken = true;
5956 };
5960 };
5957 };
5961 };
5958
5962
@@ -10030,6 +10034,11 @@ in {
10030 substituteInPlace pywatchman/__init__.py \
10034 substituteInPlace pywatchman/__init__.py \
10031 --replace "'watchman'" "'${pkgs.watchman}/bin/watchman'"
10035 --replace "'watchman'" "'${pkgs.watchman}/bin/watchman'"
10032 '';
10036 '';
10037+ # SyntaxError
10038+ disabled = isPy3k;
10039+ # No tests in archive
10040+ doCheck = false;
10041+
10033 };
10042 };
10034
10043
10035 zope_tales = buildPythonPackage rec {
10044 zope_tales = buildPythonPackage rec {
@@ -13041,12 +13050,12 @@ in {
13041 };
13050 };
13042
13051
13043 ipython = buildPythonPackage rec {
13052 ipython = buildPythonPackage rec {
13044− version = "5.2.1";
13053+ version = "5.3.0";
13045 name = "ipython-${version}";
13054 name = "ipython-${version}";
13046
13055
13047 src = pkgs.fetchurl {
13056 src = pkgs.fetchurl {
13048 url = "mirror://pypi/i/ipython/${name}.tar.gz";
13057 url = "mirror://pypi/i/ipython/${name}.tar.gz";
13049− sha256 = "04dafc37c8876e10e797264302e4333dbcd2854ef6d16bb57cc12ce26515bfdb";
13058+ sha256 = "bf5e615e7d96dac5a61fbf98d9e2926d98aa55582681bea7e9382992a3f43c1d";
13050 };
13059 };
13051
13060
13052 prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
13061 prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
@@ -13076,21 +13085,14 @@ in {
13076 };
13085 };
13077
13086
13078 ipython_genutils = buildPythonPackage rec {
13087 ipython_genutils = buildPythonPackage rec {
13079− version = "0.1.0";
13088+ version = "0.2.0";
13080 name = "ipython_genutils-${version}";
13089 name = "ipython_genutils-${version}";
13081
13090
13082 src = pkgs.fetchurl {
13091 src = pkgs.fetchurl {
13083 url = "mirror://pypi/i/ipython_genutils/${name}.tar.gz";
13092 url = "mirror://pypi/i/ipython_genutils/${name}.tar.gz";
13084− sha256 = "3a0624a251a26463c9dfa0ffa635ec51c4265380980d9a50d65611c3c2bd82a6";
13093+ sha256 = "eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8";
13085 };
13094 };
13086
13095
13087− patches = [
13088− (pkgs.fetchpatch {
13089− url = "https://github.com/ipython/ipython_genutils/commit/6d74d8cb34e49820e48ba8b4f5e5f8322824f4f7.patch";
13090− sha256 = "13ah6a11qldzzywax50la6qwq02sk5929gjkzzn456lg1ja5gq35";
13091− })
13092− ];
13093−
13094 LC_ALL = "en_US.UTF-8";
13096 LC_ALL = "en_US.UTF-8";
13095 buildInputs = with self; [ nose pkgs.glibcLocales ];
13097 buildInputs = with self; [ nose pkgs.glibcLocales ];
13096
13098
@@ -13418,16 +13420,16 @@ in {
13418 };
13420 };
13419
13421
13420 jupyter_client = buildPythonPackage rec {
13422 jupyter_client = buildPythonPackage rec {
13421− version = "4.4.0";
13423+ version = "5.0.0";
13422 name = "jupyter_client-${version}";
13424 name = "jupyter_client-${version}";
13423
13425
13424 src = pkgs.fetchurl {
13426 src = pkgs.fetchurl {
13425 url = "mirror://pypi/j/jupyter_client/${name}.tar.gz";
13427 url = "mirror://pypi/j/jupyter_client/${name}.tar.gz";
13426− sha256 = "c99a52fac2e5b7a3b714e9252ebf72cbf97536d556ae2b5082baccc3e5cd52ee";
13428+ sha256 = "2766f9c2deb9ae826e65d53a56a36d69b184f63d0dcb7710835273327126bc5b";
13427 };
13429 };
13428
13430
13429 buildInputs = with self; [ nose ];
13431 buildInputs = with self; [ nose ];
13430− propagatedBuildInputs = with self; [traitlets jupyter_core pyzmq] ++ optional isPyPy py;
13432+ propagatedBuildInputs = with self; [traitlets jupyter_core pyzmq dateutil] ++ optional isPyPy py;
13431
13433
13432 checkPhase = ''
13434 checkPhase = ''
13433 nosetests -v
13435 nosetests -v
@@ -13445,12 +13447,12 @@ in {
13445 };
13447 };
13446
13448
13447 jupyter_core = buildPythonPackage rec {
13449 jupyter_core = buildPythonPackage rec {
13448− version = "4.2.1";
13450+ version = "4.3.0";
13449 name = "jupyter_core-${version}";
13451 name = "jupyter_core-${version}";
13450
13452
13451 src = pkgs.fetchurl {
13453 src = pkgs.fetchurl {
13452 url = "mirror://pypi/j/jupyter_core/${name}.tar.gz";
13454 url = "mirror://pypi/j/jupyter_core/${name}.tar.gz";
13453− sha256 = "89c55399c8437f777197c2c82c1ff5639c7f71d4eb2f172a81afa120b68dc7b3";
13455+ sha256 = "a96b129e1641425bf057c3d46f4f44adce747a7d60107e8ad771045c36514d40";
13454 };
13456 };
13455
13457
13456 buildInputs = with self; [ pytest mock ];
13458 buildInputs = with self; [ pytest mock ];
@@ -15291,16 +15293,15 @@ in {
15291 };
15293 };
15292
15294
15293 pygal = buildPythonPackage rec {
15295 pygal = buildPythonPackage rec {
15296+ pname = "pygal";
15294− version = "2.0.10";
15297+ version = "2.3.1";
15295− name = "pygal-${version}";
15298+ name = "${pname}-${version}";
15296
15299
15297 doCheck = !isPyPy; # one check fails with pypy
15300 doCheck = !isPyPy; # one check fails with pypy
15298
15301
15299− src = pkgs.fetchFromGitHub {
15302+ src = fetchPypi {
15300− owner = "Kozea";
15301− repo = "pygal";
15302− rev = version;
15303+ inherit pname version;
15303− sha256 = "1j7qjgraapvfc80yp8xcbddqrw8379gqi7pwkvfml3qcqm0z0d33";
15304+ sha256 = "7ba5a191233d0c2d8bf4b4d26b06e42bd77483a59ba7d3e5b884d81d1a870667";
15304 };
15305 };
15305
15306
15306 buildInputs = with self; [ flask pyquery pytest ];
15307 buildInputs = with self; [ flask pyquery pytest ];
@@ -15557,12 +15558,12 @@ in {
15557 };
15558 };
15558
15559
15559 nbformat = buildPythonPackage rec {
15560 nbformat = buildPythonPackage rec {
15560− version = "4.2.0";
15561+ version = "4.3.0";
15561 name = "nbformat-${version}";
15562 name = "nbformat-${version}";
15562
15563
15563 src = pkgs.fetchurl {
15564 src = pkgs.fetchurl {
15564 url = "mirror://pypi/n/nbformat/${name}.tar.gz";
15565 url = "mirror://pypi/n/nbformat/${name}.tar.gz";
15565− sha256 = "389a5b630a30539074f238a48fb9864592f63d611baccfa2ffaf14ffe239de06";
15566+ sha256 = "5febcce872672f1c97569e89323992bdcb8573fdad703f835e6521253191478b";
15566 };
15567 };
15567 LC_ALL="en_US.UTF-8";
15568 LC_ALL="en_US.UTF-8";
15568 buildInputs = with self; [ pytest pkgs.glibcLocales ];
15569 buildInputs = with self; [ pytest pkgs.glibcLocales ];
@@ -16005,12 +16006,12 @@ in {
16005 };
16006 };
16006
16007
16007 notebook = buildPythonPackage rec {
16008 notebook = buildPythonPackage rec {
16008− version = "4.3.2";
16009+ version = "4.4.1";
16009 name = "notebook-${version}";
16010 name = "notebook-${version}";
16010
16011
16011 src = pkgs.fetchurl {
16012 src = pkgs.fetchurl {
16012 url = "mirror://pypi/n/notebook/${name}.tar.gz";
16013 url = "mirror://pypi/n/notebook/${name}.tar.gz";
16013− sha256 = "fc77edf4ec295542172aa66a3e9d527e75038fcaadd3ed20afbf8596e5629aa9";
16014+ sha256 = "dfadef2babd7c04c6c257df7d07d7ba587e503dbb4e4c95305f9a95b8d3a9765";
16014 };
16015 };
16015
16016
16016 LC_ALL = "en_US.UTF-8";
16017 LC_ALL = "en_US.UTF-8";
@@ -18152,7 +18153,7 @@ in {
18152
18153
18153 parsedatetime = buildPythonPackage rec {
18154 parsedatetime = buildPythonPackage rec {
18154 name = "parsedatetime-${version}";
18155 name = "parsedatetime-${version}";
18155− version = "2.1";
18156+ version = "2.3";
18156
18157
18157 meta = {
18158 meta = {
18158 description = "Parse human-readable date/time text";
18159 description = "Parse human-readable date/time text";
@@ -18160,11 +18161,12 @@ in {
18160 license = licenses.asl20;
18161 license = licenses.asl20;
18161 };
18162 };
18162
18163
18163− buildInputs = with self; [ PyICU nose ];
18164+ buildInputs = with self; [ pytest pytestrunner ];
18165+ propagatedBuildInputs = with self; [ future ];
18164
18166
18165 src = pkgs.fetchurl {
18167 src = pkgs.fetchurl {
18166 url = "mirror://pypi/p/parsedatetime/${name}.tar.gz";
18168 url = "mirror://pypi/p/parsedatetime/${name}.tar.gz";
18167− sha256 = "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p";
18169+ sha256 = "1vkrmd398s11h1zn3zaqqsiqhj9lwy1ikcg6irx2lrgjzjg3rjll";
18168 };
18170 };
18169 };
18171 };
18170
18172
@@ -18400,14 +18402,14 @@ in {
18400
18402
18401 pathlib2 = if !(pythonOlder "3.4") then null else buildPythonPackage rec {
18403 pathlib2 = if !(pythonOlder "3.4") then null else buildPythonPackage rec {
18402 name = "pathlib2-${version}";
18404 name = "pathlib2-${version}";
18403− version = "2.1.0";
18405+ version = "2.2.1";
18404
18406
18405 src = pkgs.fetchurl {
18407 src = pkgs.fetchurl {
18406 url = "mirror://pypi/p/pathlib2/${name}.tar.gz";
18408 url = "mirror://pypi/p/pathlib2/${name}.tar.gz";
18407− sha256 = "deb3a960c1d55868dfbcac98432358b92ba89d95029cddd4040db1f27405055c";
18409+ sha256 = "ce9007df617ef6b7bd8a31cd2089ed0c1fed1f7c23cf2bf1ba140b3dd563175d";
18408 };
18410 };
18409
18411
18410− propagatedBuildInputs = with self; [ six ];
18412+ propagatedBuildInputs = with self; [ six ] ++ optional (pythonOlder "3.5") scandir;
18411
18413
18412 meta = {
18414 meta = {
18413 description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems.";
18415 description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems.";
@@ -18418,12 +18420,12 @@ in {
18418 };
18420 };
18419
18421
18420 pathpy = buildPythonPackage rec {
18422 pathpy = buildPythonPackage rec {
18421− version = "8.1.2";
18423+ version = "10.1";
18422 name = "path.py-${version}";
18424 name = "path.py-${version}";
18423
18425
18424 src = pkgs.fetchurl {
18426 src = pkgs.fetchurl {
18425 url = "mirror://pypi/p/path.py/${name}.tar.gz";
18427 url = "mirror://pypi/p/path.py/${name}.tar.gz";
18426− sha256 = "ada95d117c4559abe64080961daf5badda68561afdd34c278f8ca20f2fa466d2";
18428+ sha256 = "8b0ee56f6c1421a9038823926ee8da354ce70933424b408558bc6b48496587f3";
18427 };
18429 };
18428
18430
18429 buildInputs = with self; [setuptools_scm pytestrunner pytest pkgs.glibcLocales ];
18431 buildInputs = with self; [setuptools_scm pytestrunner pytest pkgs.glibcLocales ];
@@ -18770,15 +18772,18 @@ in {
18770 };
18772 };
18771
18773
18772 pickleshare = buildPythonPackage rec {
18774 pickleshare = buildPythonPackage rec {
18773− version = "0.5";
18775+ version = "0.7.4";
18774 name = "pickleshare-${version}";
18776 name = "pickleshare-${version}";
18775
18777
18776 src = pkgs.fetchurl {
18778 src = pkgs.fetchurl {
18777 url = "mirror://pypi/p/pickleshare/${name}.tar.gz";
18779 url = "mirror://pypi/p/pickleshare/${name}.tar.gz";
18778− sha256 = "c0be5745035d437dbf55a96f60b7712345b12423f7d0951bd7d8dc2141ca9286";
18780+ sha256 = "84a9257227dfdd6fe1b4be1319096c20eb85ff1e82c7932f36efccfe1b09737b";
18779 };
18781 };
18780
18782
18781− propagatedBuildInputs = with self; [pathpy];
18783+ propagatedBuildInputs = with self; [pathpy] ++ optional (pythonOlder "3.4") pathlib2;
18784+
18785+ # No proper test suite
18786+ doCheck = false;
18782
18787
18783 meta = {
18788 meta = {
18784 description = "Tiny 'shelve'-like database with concurrency support";
18789 description = "Tiny 'shelve'-like database with concurrency support";
@@ -19270,10 +19275,10 @@ in {
19270
19275
19271 prompt_toolkit = buildPythonPackage rec {
19276 prompt_toolkit = buildPythonPackage rec {
19272 name = "prompt_toolkit-${version}";
19277 name = "prompt_toolkit-${version}";
19273− version = "1.0.9";
19278+ version = "1.0.13";
19274
19279
19275 src = pkgs.fetchurl {
19280 src = pkgs.fetchurl {
19276− sha256 = "172r15k9kwdw2lnajvpz1632dd16nqz1kcal1p0lq5ywdarj6rfd";
19281+ sha256 = "33d68ca09f76cd73287fde7df5748ffacf26a8238dd61ee81ac50860ea7c6776";
19277 url = "mirror://pypi/p/prompt_toolkit/${name}.tar.gz";
19282 url = "mirror://pypi/p/prompt_toolkit/${name}.tar.gz";
19278 };
19283 };
19279 checkPhase = ''
19284 checkPhase = ''
@@ -28170,10 +28175,10 @@ EOF
28170 };
28175 };
28171
28176
28172 pyzmq = buildPythonPackage rec {
28177 pyzmq = buildPythonPackage rec {
28173− name = "pyzmq-15.2.0";
28178+ name = "pyzmq-16.0.2";
28174 src = pkgs.fetchurl {
28179 src = pkgs.fetchurl {
28175 url = "mirror://pypi/p/pyzmq/${name}.tar.gz";
28180 url = "mirror://pypi/p/pyzmq/${name}.tar.gz";
28176− sha256 = "2dafa322670a94e20283aba2a44b92134d425bd326419b68ad4db8d0831a26ec";
28181+ sha256 = "0322543fff5ab6f87d11a8a099c4c07dd8a1719040084b6ce9162bcdf5c45c9d";
28177 };
28182 };
28178 buildInputs = with self; [ pkgs.zeromq3 pytest tornado ];
28183 buildInputs = with self; [ pkgs.zeromq3 pytest tornado ];
28179 propagatedBuildInputs = [ self.py ];
28184 propagatedBuildInputs = [ self.py ];