Skip to content

Commit

Permalink
Merge pull request #218614 from NixOS/python-updates
Browse files Browse the repository at this point in the history
python-updates - major updates - 2023-02-27
  • Loading branch information
mweinelt committed Mar 3, 2023
2 parents d6d8348 + 48d1d42 commit 3e3c94b
Show file tree
Hide file tree
Showing 2,019 changed files with 5,317 additions and 3,269 deletions.
5 changes: 4 additions & 1 deletion nixos/tests/matrix/mjolnir.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ import ../make-test-python.nix (
client = { pkgs, ... }: {
environment.systemPackages = [
(pkgs.writers.writePython3Bin "create_management_room_and_invite_mjolnir"
{ libraries = [ pkgs.python3Packages.matrix-nio ]; } ''
{ libraries = with pkgs.python3Packages; [
matrix-nio
] ++ matrix-nio.optional-dependencies.e2e;
} ''
import asyncio
from nio import (
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/calibre/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ stdenv.mkDerivation rec {
setupPyBuildFlags = [ "--enable=load_extension" ];
}))
beautifulsoup4
cchardet
css-parser
cssselect
python-dateutil
dnspython
faust-cchardet
feedparser
html2text
html5-parser
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/electron-cash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ python3Packages.buildPythonApplication rec {
cython
trezor
keepkey
btchip
btchip-python
hidapi
pyopenssl
pyscard
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/electrum/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ python3.pkgs.buildPythonApplication {
requests
tlslite-ng
# plugins
btchip
btchip-python
ckcc-protocol
keepkey
trezor
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/electrum/grs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ python3.pkgs.buildPythonApplication {
requests
tlslite-ng
# plugins
btchip
btchip-python
ckcc-protocol
keepkey
trezor
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/electrum/ltc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ python3.pkgs.buildPythonApplication {
requests
tlslite-ng
# plugins
btchip
btchip-python
ckcc-protocol
keepkey
trezor
Expand Down
20 changes: 10 additions & 10 deletions pkgs/applications/misc/privacyidea/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let
src = self.fetchPypi {
pname = "Flask-Migrate";
inherit version;
sha256 = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38";
hash = "sha256-ri8FZxWIdi3YOiHYsYxR/jVehng+JFlJlf+Nc4Df/jg=";
};
});
flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (old: rec {
Expand All @@ -43,7 +43,7 @@ let
version = "1.0.1";
src = old.src.override {
inherit version;
sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c";
hash = "sha256-bICx5a02ZSkOo5MguR4b4eDV9gZSuWSjBwIW3oPS5Hw=";
};
nativeCheckInputs = old.nativeCheckInputs ++ (with self; [
requests
Expand All @@ -55,18 +55,18 @@ let
version = "2.11.3";
src = old.src.override {
inherit version;
sha256 = "sha256-ptWEM94K6AA0fKsfowQ867q+i6qdKeZo8cdoy4ejM8Y=";
hash = "sha256-ptWEM94K6AA0fKsfowQ867q+i6qdKeZo8cdoy4ejM8Y=";
};
patches = [
# python 3.10 compat fixes. In later upstream releases, but these
# are not compatible with flask 1 which we need here :(
(fetchpatch {
url = "https://github.com/thmo/jinja/commit/1efb4cc918b4f3d097c376596da101de9f76585a.patch";
sha256 = "sha256-GFaSvYxgzOEFmnnDIfcf0ImScNTh1lR4lxt2Uz1DYdU=";
hash = "sha256-GFaSvYxgzOEFmnnDIfcf0ImScNTh1lR4lxt2Uz1DYdU=";
})
(fetchpatch {
url = "https://github.com/mkrizek/jinja/commit/bd8bad37d1c0e2d8995a44fd88e234f5340afec5.patch";
sha256 = "sha256-Uow+gaO+/dH6zavC0X/SsuMAfhTLRWpamVlL87DXDRA=";
hash = "sha256-Uow+gaO+/dH6zavC0X/SsuMAfhTLRWpamVlL87DXDRA=";
excludes = [ "CHANGES.rst" ];
})
];
Expand All @@ -76,21 +76,21 @@ let
version = "2.0.1";
src = old.src.override {
inherit version;
sha256 = "sha256-WUxngH+xYjizDES99082wCzfItHIzake+KDtjav1Ygo=";
hash = "sha256-WUxngH+xYjizDES99082wCzfItHIzake+KDtjav1Ygo=";
};
});
itsdangerous = super.itsdangerous.overridePythonAttrs (old: rec {
version = "1.1.0";
src = old.src.override {
inherit version;
sha256 = "321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19";
hash = "sha256-MhsDPQfypBNtPsdi6snxahDM1g9TwMka+QIXrOe6Hxk=";
};
});
flask = super.flask.overridePythonAttrs (old: rec {
version = "1.1.4";
src = old.src.override {
inherit version;
sha256 = "0fbeb6180d383a9186d0d6ed954e0042ad9f18e0e8de088b2b419d526927d196";
hash = "sha256-D762GA04OpGG0NbtlU4AQq2fGODo3giLK0GdUmkn0ZY=";
};
});
sqlsoup = super.sqlsoup.overrideAttrs ({ meta ? {}, ... }: {
Expand All @@ -100,7 +100,7 @@ let
version = "7.1.2";
src = old.src.override {
inherit version;
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a";
hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
};
});
# Now requires `lingua` as check input that requires a newer `click`,
Expand Down Expand Up @@ -165,7 +165,7 @@ python3'.pkgs.buildPythonPackage rec {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-SYXw8PBCb514v3rcy15W/vZS5JyMsu81D2sJmviLRtw=";
hash = "sha256-SYXw8PBCb514v3rcy15W/vZS5JyMsu81D2sJmviLRtw=";
fetchSubmodules = true;
};

Expand Down
14 changes: 11 additions & 3 deletions pkgs/applications/misc/pytrainer/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib
, python3
, python310
, fetchFromGitHub
, gdk-pixbuf
, gnome
Expand All @@ -17,11 +17,19 @@
}:

let
python = python3.override {
python = python310.override {
packageOverrides = (self: super: {
matplotlib = super.matplotlib.override {
enableGtk3 = true;
};
sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec {
version = "1.4.46";
src = self.fetchPypi {
pname = "SQLAlchemy";
inherit version;
hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA=";
};
});
});
};
in python.pkgs.buildPythonApplication rec {
Expand Down Expand Up @@ -77,7 +85,7 @@ in python.pkgs.buildPythonApplication rec {
TZ=Europe/Kaliningrad \
LC_ALL=en_US.UTF-8 \
xvfb-run -s '-screen 0 800x600x24' \
${python3.interpreter} setup.py test
${python.interpreter} setup.py test
'';

meta = with lib; {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ buildPythonApplication rec {
dbus-python
pyxdg
python-olm
];
] ++ matrix-nio.optional-dependencies.e2e;

meta = with lib; {
description = "Simple but convenient CLI-based Matrix client app for sending and receiving";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ mkDerivation rec {
watchgod
dbus-python
matrix-nio
];
] ++ matrix-nio.optional-dependencies.e2e;

qmakeFlags = [
"PREFIX=${placeholder "out"}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ buildPythonApplication rec {
peewee
prompt-toolkit
setuptools
] ++ lib.optionals enableDbusUi [
]
++ matrix-nio.optional-dependencies.e2e
++ lib.optionals enableDbusUi [
dbus-python
notify2
pygobject3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ in buildPythonPackage {
matrix-nio
aiohttp
requests
];
] ++ matrix-nio.optional-dependencies.e2e;

passthru.scripts = [ "matrix.py" ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/networking/opsdroid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ python3Packages.buildPythonPackage rec {
aiohttp matrix-api-async aioredis aiosqlite arrow pyyaml motor regex
mattermostdriver setuptools voluptuous ibm-watson tailer multidict
watchgod get-video-properties appdirs bitstring matrix-nio
];
] ++ matrix-nio.optional-dependencies.e2e;

passthru.python = python3Packages.python;

Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/video/catt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let
version = "7.1.2";
src = oldAttrs.src.override {
inherit version;
sha256 = "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj";
hash = "sha256-0rUlXHxjSbwb0eWeCM0SrLvWPOZJ8liHVXg6qU37axo=";
};
});

Expand All @@ -40,6 +40,7 @@ with py.pkgs;
buildPythonApplication rec {
pname = "catt";
version = "0.12.7";
format = "setuptools";

src = fetchPypi {
inherit pname version;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/virtualization/docker/compose_1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildPythonApplication rec {

src = fetchPypi {
inherit pname version;
sha256 = "sha256-TIzZ0h0jdBJ5PRi9MxEASe6a+Nqz/iwhO70HM5WbCbc=";
hash = "sha256-TIzZ0h0jdBJ5PRi9MxEASe6a+Nqz/iwhO70HM5WbCbc=";
};

# lots of networking and other fails
Expand Down
8 changes: 8 additions & 0 deletions pkgs/development/compilers/ghc/8.10.7.nix
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ stdenv.mkDerivation (rec {
outputs = [ "out" "doc" ];

patches = [
# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
(fetchpatch {
name = "ghc-docs-sphinx-6.0.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
})

# See upstream patch at
# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4885. Since we build
# from source distributions, the auto-generated configure script needs to be
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/compilers/ghc/8.8.4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ stdenv.mkDerivation (rec {
outputs = [ "out" "doc" ];

patches = [
# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
./ghc-8.8.4-sphinx-6.0.patch

# See upstream patch at
# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4885. Since we build
# from source distributions, the auto-generated configure script needs to be
Expand Down
7 changes: 7 additions & 0 deletions pkgs/development/compilers/ghc/9.0.2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ stdenv.mkDerivation (rec {
outputs = [ "out" "doc" ];

patches = [
# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
(fetchpatch {
name = "ghc-docs-sphinx-6.0.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
})
# fix hyperlinked haddock sources: https://github.com/haskell/haddock/pull/1482
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/haskell/haddock/pull/1482.patch";
Expand Down
7 changes: 7 additions & 0 deletions pkgs/development/compilers/ghc/9.2.4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ stdenv.mkDerivation (rec {
outputs = [ "out" "doc" ];

patches = [
# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
(fetchpatch {
name = "ghc-docs-sphinx-6.0.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
})
# fix hyperlinked haddock sources: https://github.com/haskell/haddock/pull/1482
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/haskell/haddock/pull/1482.patch";
Expand Down
7 changes: 7 additions & 0 deletions pkgs/development/compilers/ghc/9.2.5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ stdenv.mkDerivation (rec {
outputs = [ "out" "doc" ];

patches = [
# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
(fetchpatch {
name = "ghc-docs-sphinx-6.0.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
})
# fix hyperlinked haddock sources: https://github.com/haskell/haddock/pull/1482
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/haskell/haddock/pull/1482.patch";
Expand Down
7 changes: 7 additions & 0 deletions pkgs/development/compilers/ghc/9.2.6.nix
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ stdenv.mkDerivation (rec {
outputs = [ "out" "doc" ];

patches = [
# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
(fetchpatch {
name = "ghc-docs-sphinx-6.0.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
})
# fix hyperlinked haddock sources: https://github.com/haskell/haddock/pull/1482
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/haskell/haddock/pull/1482.patch";
Expand Down
9 changes: 9 additions & 0 deletions pkgs/development/compilers/ghc/9.4.2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ stdenv.mkDerivation (rec {

outputs = [ "out" "doc" ];

patches = [
# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
(fetchpatch {
name = "ghc-docs-sphinx-6.0.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
})
];

postPatch = "patchShebangs .";

Expand Down
9 changes: 9 additions & 0 deletions pkgs/development/compilers/ghc/9.4.3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ stdenv.mkDerivation (rec {

outputs = [ "out" "doc" ];

patches = [
# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
(fetchpatch {
name = "ghc-docs-sphinx-6.0.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
})
];

postPatch = "patchShebangs .";

Expand Down
8 changes: 8 additions & 0 deletions pkgs/development/compilers/ghc/9.4.4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ stdenv.mkDerivation (rec {
extraPrefix = "libraries/Cabal/";
sha256 = "sha256-yRQ6YmMiwBwiYseC5BsrEtDgFbWvst+maGgDtdD0vAY=";
})

# Fix docs build with sphinx >= 6.0
# https://gitlab.haskell.org/ghc/ghc/-/issues/22766
(fetchpatch {
name = "ghc-docs-sphinx-6.0.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/10e94a556b4f90769b7fd718b9790d58ae566600.patch";
sha256 = "0kmhfamr16w8gch0lgln2912r8aryjky1hfcda3jkcwa5cdzgjdv";
})
];

postPatch = "patchShebangs .";
Expand Down
13 changes: 13 additions & 0 deletions pkgs/development/compilers/ghc/ghc-8.8.4-sphinx-6.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/docs/users_guide/ghc_config.py.in b/docs/users_guide/ghc_config.py.in
index 2670ad3cf1..d2f9d85c31 100644
--- a/docs/users_guide/ghc_config.py.in
+++ b/docs/users_guide/ghc_config.py.in
@@ -1,6 +1,6 @@
extlinks = {
- 'ghc-ticket': ('https://gitlab.haskell.org/ghc/ghc/issues/%s', 'Issue #'),
- 'ghc-wiki': ('https://gitlab.haskell.org/ghc/ghc/wikis/%s', 'GHC Wiki'),
+ 'ghc-ticket': ('https://gitlab.haskell.org/ghc/ghc/issues/%s', 'Issue %s'),
+ 'ghc-wiki': ('https://gitlab.haskell.org/ghc/ghc/wikis/%s', 'GHC Wiki %s'),
}

libs_base_uri = '../libraries'

0 comments on commit 3e3c94b

Please sign in to comment.