Merge pull request #107903 from rmcgibbo/housecleaning

Unbreak assorted python3 packages

authored by

Frederik Rietdijk and committed by
GitHub
d02e895f 5476351e

+65 -30
+9 -5
pkgs/development/python-modules/billiard/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchPypi, isPyPy, pytest, case, psutil }: 1 + { stdenv, buildPythonPackage, fetchPypi, isPyPy, pytestCheckHook, case, psutil, fetchpatch }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "billiard"; ··· 9 9 inherit pname version; 10 10 sha256 = "0spssl3byzqsplra166d59jx8iqfxyzvcbx7vybkmwr5ck72a5yr"; 11 11 }; 12 + patches = [(fetchpatch { 13 + # Add Python 3.9 support to spawnv_passfds() 14 + # Should be included in next release after 3.6.3.0 15 + url = "https://github.com/celery/billiard/pull/310/commits/a508ebafadcfe2e25554b029593f3e66d01ede6c.patch"; 16 + sha256 = "05zsr1bvjgi01qg7r274c0qvbn65iig3clyz14c08mpfyn38h84i"; 17 + excludes = [ "tox.ini" ]; 18 + })]; 12 19 13 - checkInputs = [ pytest case psutil ]; 14 - checkPhase = '' 15 - pytest 16 - ''; 20 + checkInputs = [ pytestCheckHook case psutil ]; 17 21 18 22 meta = with stdenv.lib; { 19 23 homepage = "https://github.com/celery/billiard";
+7
pkgs/development/python-modules/clifford/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , fetchpatch 4 5 , isPy27 5 6 , future 6 7 , h5py ··· 21 22 inherit pname version; 22 23 sha256 = "ade11b20d0631dfc9c2f18ce0149f1e61e4baf114108b27cfd68e5c1619ecc0c"; 23 24 }; 25 + patches = [ (fetchpatch { 26 + # Compatibility with h5py 3. 27 + # Will be included in the next releasse after 1.3.1 28 + url = "https://github.com/pygae/clifford/pull/388/commits/955d141662c68d3d61aa50a162b39e656684c208.patch"; 29 + sha256 = "00m8ias58xycn5n78sy9wywf4wck1v0gb8gzmg40inzdiha93jyz"; 30 + }) ]; 24 31 25 32 propagatedBuildInputs = [ 26 33 future
+4
pkgs/development/python-modules/datasets/default.nix
··· 35 35 xxhash 36 36 ]; 37 37 38 + postPatch = '' 39 + substituteInPlace setup.py --replace '"tqdm>=4.27,<4.50.0"' '"tqdm>=4.27"' 40 + ''; 41 + 38 42 # Tests require pervasive internet access. 39 43 doCheck = false; 40 44
+7
pkgs/development/python-modules/datashader/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , fetchpatch 4 5 , dask 5 6 , distributed 6 7 , bokeh ··· 36 37 inherit pname version; 37 38 sha256 = "b1f80415f72f92ccb660aaea7b2881ddd35d07254f7c44101709d42e819d6be6"; 38 39 }; 40 + patches = [ (fetchpatch { 41 + # Unpins pyct==0.46 (Sep. 11, 2020). 42 + # Will be incorporated into the next datashader release after 0.11.1 43 + url = "https://github.com/holoviz/datashader/pull/960/commits/d7a462fa399106c34fd0d44505a8a73789dbf874.patch"; 44 + sha256 = "1wqsk9dpxnkxr49fa7y5q6ahin80cvys05lnirs2w2p1dja35y4x"; 45 + })]; 39 46 40 47 propagatedBuildInputs = [ 41 48 dask
+2 -5
pkgs/development/python-modules/fastparquet/default.nix
··· 3 3 4 4 buildPythonPackage rec { 5 5 pname = "fastparquet"; 6 - version = "0.4.1"; 6 + version = "0.5.0"; 7 7 8 8 src = fetchFromGitHub { 9 9 owner = "dask"; 10 10 repo = pname; 11 11 rev = version; 12 - sha256 = "ViZRGEv227/RgCBYAQN8F3Z0m8WrNUT5KUdyFosjg9s="; 12 + sha256 = "17i091kky34m2xivk29fqsyxxxa7v4352n79w01n7ni93za6wana"; 13 13 }; 14 14 15 15 postPatch = '' 16 16 # FIXME: package zstandard 17 17 # removing the test dependency for now 18 18 substituteInPlace setup.py --replace "'zstandard'," "" 19 - 20 - # workaround for https://github.com/dask/fastparquet/issues/517 21 - rm fastparquet/test/test_partition_filters_specialstrings.py 22 19 ''; 23 20 24 21 nativeBuildInputs = [ pytestrunner ];
+1 -3
pkgs/development/python-modules/fiona/default.nix
··· 41 41 checkPhase = '' 42 42 rm -r fiona # prevent importing local fiona 43 43 # Some tests access network, others test packaging 44 - pytest -k "not test_*_http \ 45 - and not test_*_https \ 46 - and not test_*_wheel" 44 + pytest -k "not (http or https or wheel)" 47 45 ''; 48 46 49 47 meta = with lib; {
+2
pkgs/development/python-modules/fixtures/default.nix
··· 5 5 , testtools 6 6 , mock 7 7 , python 8 + , isPy39 8 9 }: 9 10 10 11 buildPythonPackage rec { ··· 26 27 description = "Reusable state for writing clean tests and more"; 27 28 homepage = "https://pypi.python.org/pypi/fixtures"; 28 29 license = lib.licenses.asl20; 30 + broken = isPy39; # see https://github.com/testing-cabal/fixtures/issues/44 29 31 }; 30 32 }
+2
pkgs/development/python-modules/flower/default.nix
··· 22 22 # rely on using example programs (flowers/examples/tasks.py) which 23 23 # are not part of the distribution 24 24 rm tests/load.py 25 + substituteInPlace requirements/default.txt --replace "prometheus_client==0.8.0" "prometheus_client>=0.8.0" 25 26 ''; 26 27 27 28 propagatedBuildInputs = [ ··· 39 40 homepage = "https://github.com/mher/flower"; 40 41 license = licenses.bsdOriginal; 41 42 maintainers = [ maintainers.arnoldfarkas ]; 43 + broken = (celery.version == "5.0.2"); # currently broken with celery>=5.0 by https://github.com/mher/flower/pull/1021 42 44 }; 43 45 }
+11 -6
pkgs/development/python-modules/geopandas/default.nix
··· 1 1 { stdenv, buildPythonPackage, fetchFromGitHub, isPy27 2 2 , pandas, shapely, fiona, descartes, pyproj 3 - , pytest, Rtree, fetchpatch }: 3 + , pytestCheckHook, Rtree, fetchpatch }: 4 4 5 5 buildPythonPackage rec { 6 6 pname = "geopandas"; ··· 20 20 url = "https://github.com/geopandas/geopandas/pull/1544/commits/6ce868a33a2f483b071089d51e178030fa4414d0.patch"; 21 21 sha256 = "1sjgxrqgbhz5krx51hrv230ywszcdl6z8q3bj6830kfad8n8b5dq"; 22 22 }) 23 + # Fix GeoJSON for Fiona>=1.8.16 (Sep. 7, 2020). 24 + # https://github.com/geopandas/geopandas/issues/1606 25 + # Will be included in next upstream release after 0.8.1 26 + (fetchpatch { 27 + url = "https://github.com/geopandas/geopandas/commit/72427d3d8c128039bfce1d54a76c0b652887b276.patch"; 28 + sha256 = "1726mrpddgmba0ngff73a5bsb6ywpsg63a2pdd2grp9339bgvi4a"; 29 + }) 23 30 ]; 24 31 25 - checkInputs = [ pytest Rtree ]; 26 - 27 - checkPhase = '' 28 - py.test geopandas -m "not web" 29 - ''; 32 + checkInputs = [ pytestCheckHook Rtree ]; 33 + disabledTests = [ "web" ]; 34 + pytestFlagsArray = [ "geopandas" ]; 30 35 31 36 propagatedBuildInputs = [ 32 37 pandas
+8 -1
pkgs/development/python-modules/imageio-ffmpeg/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , fetchpatch 4 5 , isPy3k 5 6 }: 6 7 ··· 9 10 version = "0.4.2"; 10 11 11 12 src = fetchPypi { 12 - sha256 = "13b05b17a941a9f4a90b16910b1ffac159448cff051a153da8ba4b4343ffa195"; 13 13 inherit pname version; 14 + sha256 = "13b05b17a941a9f4a90b16910b1ffac159448cff051a153da8ba4b4343ffa195"; 14 15 }; 16 + patches = [ (fetchpatch { 17 + # Fixes compatibility with python3.9 18 + # Should be included in the next release after 0.4.2 19 + url = "https://github.com/imageio/imageio-ffmpeg/pull/43/commits/b90c39fe3d29418d67d953588ed9fdf4d848f811.patch"; 20 + sha256 = "0d9kf4w6ldwag3s2dr9zjin6wrj66fnl4fn8379ci4q4qfsqgx3f"; 21 + })]; 15 22 16 23 disabled = !isPy3k; 17 24
+10 -10
pkgs/development/python-modules/imbalanced-learn/default.nix
··· 1 1 { stdenv, buildPythonPackage, fetchPypi, isPy27 2 - , nose 3 2 , pandas 4 - , pytest 3 + , pytestCheckHook 5 4 , scikitlearn 6 5 , tensorflow 7 6 }: ··· 17 16 }; 18 17 19 18 propagatedBuildInputs = [ scikitlearn ]; 20 - checkInputs = [ nose pytest pandas ]; 21 - checkPhase = '' 19 + checkInputs = [ pytestCheckHook pandas ]; 20 + preCheck = '' 22 21 export HOME=$TMPDIR 23 - # skip some tests that fail because of minimal rounding errors 24 - # or very large dependencies (keras + tensorflow) 25 - py.test imblearn -k 'not estimator \ 26 - and not classification \ 27 - and not _generator \ 28 - and not show_versions' 29 22 ''; 23 + disabledTests = [ 24 + "estimator" 25 + "classification" 26 + "_generator" 27 + "show_versions" 28 + "test_make_imbalanced_iris" 29 + ]; 30 30 31 31 meta = with stdenv.lib; { 32 32 description = "Library offering a number of re-sampling techniques commonly used in datasets showing strong between-class imbalance";
+2
pkgs/development/python-modules/typing-inspect/default.nix
··· 3 3 , fetchPypi 4 4 , typing-extensions 5 5 , mypy-extensions 6 + , isPy39 6 7 }: 7 8 8 9 buildPythonPackage rec { ··· 25 26 homepage = "https://github.com/ilevkivskyi/typing_inspect"; 26 27 license = licenses.mit; 27 28 maintainers = with maintainers; [ albakham ]; 29 + broken = isPy39; # see https://github.com/ilevkivskyi/typing_inspect/issues/65 28 30 }; 29 31 }