lol

Merge pull request #175805 from NixOS/python-updates

Python Updates 2022-06-01 (was: python3: 3.9 -> 3.10)

authored by

Martin Weinelt and committed by
GitHub
351556ff d1720612

+1802 -1106
+35 -32
doc/languages-frameworks/python.section.md
··· 8 8 9 9 Several versions of the Python interpreter are available on Nix, as well as a 10 10 high amount of packages. The attribute `python3` refers to the default 11 - interpreter, which is currently CPython 3.9. The attribute `python` refers to 11 + interpreter, which is currently CPython 3.10. The attribute `python` refers to 12 12 CPython 2.7 for backwards-compatibility. It is also possible to refer to 13 - specific versions, e.g. `python38` refers to CPython 3.8, and `pypy` refers to 13 + specific versions, e.g. `python39` refers to CPython 3.9, and `pypy` refers to 14 14 the default PyPy interpreter. 15 15 16 16 Python is used a lot, and in different ways. This affects also how it is ··· 26 26 The interpreters have several common attributes. One of these attributes is 27 27 `pkgs`, which is a package set of Python libraries for this specific 28 28 interpreter. E.g., the `toolz` package corresponding to the default interpreter 29 - is `python.pkgs.toolz`, and the CPython 3.8 version is `python38.pkgs.toolz`. 29 + is `python.pkgs.toolz`, and the CPython 3.9 version is `python39.pkgs.toolz`. 30 30 The main package set contains aliases to these package sets, e.g. 31 - `pythonPackages` refers to `python.pkgs` and `python38Packages` to 32 - `python38.pkgs`. 31 + `pythonPackages` refers to `python.pkgs` and `python39Packages` to 32 + `python39.pkgs`. 33 33 34 34 #### Installing Python and packages {#installing-python-and-packages} 35 35 ··· 54 54 executables are wrapped to be able to find each other and all of the modules. 55 55 56 56 In the following examples we will start by creating a simple, ad-hoc environment 57 - with a nix-shell that has `numpy` and `toolz` in Python 3.8; then we will create 57 + with a nix-shell that has `numpy` and `toolz` in Python 3.9; then we will create 58 58 a re-usable environment in a single-file Python script; then we will create a 59 59 full Python environment for development with this same environment. 60 60 ··· 70 70 their runtime dependencies), with no other Python packages in the Python 71 71 interpreter's scope. 72 72 73 - To create a Python 3.8 session with `numpy` and `toolz` available, run: 73 + To create a Python 3.9 session with `numpy` and `toolz` available, run: 74 74 75 75 ```sh 76 - $ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy toolz ])' 76 + $ nix-shell -p 'python39.withPackages(ps: with ps; [ numpy toolz ])' 77 77 ``` 78 78 79 79 By default `nix-shell` will start a `bash` session with this interpreter in our ··· 81 81 82 82 ```Python console 83 83 [nix-shell:~/src/nixpkgs]$ python3 84 - Python 3.8.1 (default, Dec 18 2019, 19:06:26) 85 - [GCC 9.2.0] on linux 84 + Python 3.9.12 (main, Mar 23 2022, 21:36:19) 85 + [GCC 11.3.0] on linux 86 86 Type "help", "copyright", "credits" or "license" for more information. 87 87 >>> import numpy; import toolz 88 88 ``` ··· 102 102 directly like so: 103 103 104 104 ```sh 105 - $ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy toolz requests ])' --run python3 106 - these derivations will be built: 107 - /nix/store/xbdsrqrsfa1yva5s7pzsra8k08gxlbz1-python3-3.8.1-env.drv 108 - building '/nix/store/xbdsrqrsfa1yva5s7pzsra8k08gxlbz1-python3-3.8.1-env.drv'... 109 - created 277 symlinks in user environment 110 - Python 3.8.1 (default, Dec 18 2019, 19:06:26) 111 - [GCC 9.2.0] on linux 105 + $ nix-shell -p "python39.withPackages (ps: with ps; [ numpy toolz requests ])" --run python3 106 + this derivation will be built: 107 + /nix/store/mpn7k6bkjl41fm51342rafaqfsl10qs4-python3-3.9.12-env.drv 108 + this path will be fetched (0.09 MiB download, 0.41 MiB unpacked): 109 + /nix/store/5gaiacnzi096b6prc6aa1pwrhncmhc8b-python3.9-toolz-0.11.2 110 + copying path '/nix/store/5gaiacnzi096b6prc6aa1pwrhncmhc8b-python3.9-toolz-0.11.2' from 'https://cache.nixos.org'... 111 + building '/nix/store/mpn7k6bkjl41fm51342rafaqfsl10qs4-python3-3.9.12-env.drv'... 112 + created 279 symlinks in user environment 113 + Python 3.9.12 (main, Mar 23 2022, 21:36:19) 114 + [GCC 11.3.0] on linux 112 115 Type "help", "copyright", "credits" or "license" for more information. 113 116 >>> import requests 114 117 >>> ··· 147 150 in the previous section, we could startup a shell and just run it like so: 148 151 149 152 ```ShellSession 150 - $ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy ])' --run 'python3 foo.py' 153 + $ nix-shell -p 'python39.withPackages(ps: with ps; [ numpy ])' --run 'python3 foo.py' 151 154 The dot product of [1 2] and [3 4] is: 11 152 155 ``` 153 156 ··· 210 213 development we're usually working in an entire package repository. 211 214 212 215 As explained in the Nix manual, `nix-shell` can also load an expression from a 213 - `.nix` file. Say we want to have Python 3.8, `numpy` and `toolz`, like before, 216 + `.nix` file. Say we want to have Python 3.9, `numpy` and `toolz`, like before, 214 217 in an environment. We can add a `shell.nix` file describing our dependencies: 215 218 216 219 ```nix 217 220 with import <nixpkgs> {}; 218 - (python38.withPackages (ps: [ps.numpy ps.toolz])).env 221 + (python39.withPackages (ps: [ps.numpy ps.toolz])).env 219 222 ``` 220 223 221 224 And then at the command line, just typing `nix-shell` produces the same ··· 229 232 imports the `<nixpkgs>` function, `{}` calls it and the `with` statement 230 233 brings all attributes of `nixpkgs` in the local scope. These attributes form 231 234 the main package set. 232 - 2. Then we create a Python 3.8 environment with the `withPackages` function, as before. 235 + 2. Then we create a Python 3.9 environment with the `withPackages` function, as before. 233 236 3. The `withPackages` function expects us to provide a function as an argument 234 237 that takes the set of all Python packages and returns a list of packages to 235 238 include in the environment. Here, we select the packages `numpy` and `toolz` ··· 240 243 ```nix 241 244 with import <nixpkgs> {}; 242 245 let 243 - pythonEnv = python38.withPackages (ps: [ 246 + pythonEnv = python39.withPackages (ps: [ 244 247 ps.numpy 245 248 ps.toolz 246 249 ]); ··· 378 381 379 382 An expression for `toolz` can be found in the Nixpkgs repository. As explained 380 383 in the introduction of this Python section, a derivation of `toolz` is available 381 - for each interpreter version, e.g. `python38.pkgs.toolz` refers to the `toolz` 382 - derivation corresponding to the CPython 3.8 interpreter. 384 + for each interpreter version, e.g. `python39.pkgs.toolz` refers to the `toolz` 385 + derivation corresponding to the CPython 3.9 interpreter. 383 386 384 387 The above example works when you're directly working on 385 388 `pkgs/top-level/python-packages.nix` in the Nixpkgs repository. Often though, ··· 392 395 with import <nixpkgs> {}; 393 396 394 397 ( let 395 - my_toolz = python38.pkgs.buildPythonPackage rec { 398 + my_toolz = python39.pkgs.buildPythonPackage rec { 396 399 pname = "toolz"; 397 400 version = "0.10.0"; 398 401 399 - src = python38.pkgs.fetchPypi { 402 + src = python39.pkgs.fetchPypi { 400 403 inherit pname version; 401 404 sha256 = "08fdd5ef7c96480ad11c12d472de21acd32359996f69a5259299b540feba4560"; 402 405 }; ··· 414 417 ``` 415 418 416 419 Executing `nix-shell` will result in an environment in which you can use 417 - Python 3.8 and the `toolz` package. As you can see we had to explicitly mention 420 + Python 3.9 and the `toolz` package. As you can see we had to explicitly mention 418 421 for which Python version we want to build a package. 419 422 420 423 So, what did we do here? Well, we took the Nix expression that we used earlier ··· 742 745 is a local source, and if the local source has a `setup.py`, then development 743 746 mode is activated. 744 747 745 - In the following example we create a simple environment that has a Python 3.8 748 + In the following example we create a simple environment that has a Python 3.9 746 749 version of our package in it, as well as its dependencies and other packages we 747 750 like to have in the environment, all specified with `propagatedBuildInputs`. 748 751 Indeed, we can just add any package we like to have in our environment to ··· 750 753 751 754 ```nix 752 755 with import <nixpkgs> {}; 753 - with python38Packages; 756 + with python39Packages; 754 757 755 758 buildPythonPackage rec { 756 759 name = "mypackage"; ··· 828 831 829 832 ### Interpreters {#interpreters} 830 833 831 - Versions 2.7, 3.7, 3.8 and 3.9 of the CPython interpreter are available as 832 - respectively `python27`, `python37`, `python38` and `python39`. The 833 - aliases `python2` and `python3` correspond to respectively `python27` and 834 + Versions 2.7, 3.7, 3.8, 3.9 and 3.10 of the CPython interpreter are available 835 + as respectively `python27`, `python37`, `python38`, `python39` and `python310`. 836 + The aliases `python2` and `python3` correspond to respectively `python27` and 834 837 `python39`. The attribute `python` maps to `python2`. The PyPy interpreters 835 838 compatible with Python 2.7 and 3 are available as `pypy27` and `pypy3`, with 836 839 aliases `pypy2` mapping to `pypy27` and `pypy` mapping to `pypy2`. The Nix
+2 -2
pkgs/applications/audio/quodlibet/default.nix
··· 9 9 let optionals = lib.optionals; in 10 10 python3.pkgs.buildPythonApplication rec { 11 11 pname = "quodlibet${tag}"; 12 - version = "4.4.0"; 12 + version = "4.5.0"; 13 13 14 14 src = fetchurl { 15 15 url = "https://github.com/quodlibet/quodlibet/releases/download/release-${version}/quodlibet-${version}.tar.gz"; 16 - sha256 = "sha256-oDMY0nZ+SVlVF2PQqH+tl3OHr3EmCP5XJxQXaiS782c="; 16 + sha256 = "sha256-MBYVgp9lLLr+2zVTkjcWKli8HucaVn0kn3eJ2SaCRbw="; 17 17 }; 18 18 19 19 nativeBuildInputs = [ wrapGAppsHook gettext ];
+2 -2
pkgs/applications/finance/odoo/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchurl 4 - , python3 4 + , python39 5 5 , nodePackages 6 6 , wkhtmltopdf 7 7 , nixosTests 8 8 }: 9 9 10 10 let 11 - python = python3.override { 11 + python = python39.override { 12 12 packageOverrides = self: super: { 13 13 click = super.click.overridePythonAttrs (old: rec { 14 14 version = "7.1.2";
+3 -3
pkgs/applications/misc/privacyidea/default.nix
··· 1 1 { lib, fetchFromGitHub, cacert, openssl, nixosTests 2 - , python3 2 + , python39 3 3 }: 4 4 5 5 let 6 - python3' = python3.override { 6 + python3' = python39.override { 7 7 packageOverrides = self: super: { 8 8 sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 9 9 version = "1.3.24"; ··· 19 19 }); 20 20 flask_migrate = super.flask_migrate.overridePythonAttrs (oldAttrs: rec { 21 21 version = "2.7.0"; 22 - src = python3.pkgs.fetchPypi { 22 + src = self.fetchPypi { 23 23 pname = "Flask-Migrate"; 24 24 inherit version; 25 25 sha256 = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38";
+6 -26
pkgs/applications/networking/errbot/default.nix
··· 1 1 { lib 2 - , ansi 3 - , buildPythonApplication 4 - , colorlog 5 - , daemonize 6 - , deepmerge 7 - , dulwich 8 2 , fetchFromGitHub 9 - , flask 10 3 , glibcLocales 11 - , hypchat 12 - , irc 13 - , jinja2 14 - , markdown 15 - , mock 16 - , pyasn1 17 - , pyasn1-modules 18 - , pygments 19 - , pygments-markdown-lexer 20 - , pyopenssl 21 - , pytestCheckHook 22 - , requests 23 - , slackclient 24 - , sleekxmpp 25 - , telegram 26 - , webtest 4 + , python39 27 5 }: 28 6 29 - buildPythonApplication rec { 7 + let 8 + python3 = python39; 9 + in python3.pkgs.buildPythonApplication rec { 30 10 pname = "errbot"; 31 11 version = "6.1.7"; 32 12 ··· 41 21 42 22 buildInputs = [ glibcLocales ]; 43 23 44 - propagatedBuildInputs = [ 24 + propagatedBuildInputs = with python3.pkgs; [ 45 25 ansi 46 26 colorlog 47 27 daemonize ··· 64 44 webtest 65 45 ]; 66 46 67 - checkInputs = [ 47 + checkInputs = with python3.pkgs; [ 68 48 mock 69 49 pytestCheckHook 70 50 ];
+4
pkgs/applications/networking/instant-messengers/turses/default.nix
··· 19 19 rev = "v${version}"; 20 20 sha256 = "0k4bdlwjna6f1k19jki4xqgckrinkkw8b9wihzymr1l04rwd05nw"; 21 21 }; 22 + propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ 23 + super.six 24 + super.requests.optional-dependencies.socks 25 + ]; 22 26 doCheck = false; 23 27 }); 24 28 };
+8
pkgs/applications/science/biology/MACS2/default.nix
··· 9 9 sha256 = "1rcxj943kgzs746f5jrb72x1cp4v50rk3qmad0m99a02vndscb5d"; 10 10 }; 11 11 12 + postPatch = '' 13 + # remove version check which breaks on 3.10 14 + substituteInPlace setup.py \ 15 + --replace 'if float(sys.version[:3])<3.6:' 'if False:' 16 + ''; 17 + 12 18 propagatedBuildInputs = with python3.pkgs; [ numpy ]; 13 19 14 20 # To prevent ERROR: diffpeak_cmd (unittest.loader._FailedTest) for obsolete ··· 21 27 license = licenses.bsd3; 22 28 maintainers = with maintainers; [ gschwartz ]; 23 29 platforms = platforms.linux; 30 + # error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘use_tracing’; did you mean ‘tracing’? 31 + broken = true; 24 32 }; 25 33 }
+22 -3
pkgs/development/compilers/dtc/default.nix
··· 1 - { stdenv, lib, fetchgit, flex, bison, pkg-config, which 2 - , pythonSupport ? false, python ? null, swig, libyaml 1 + { stdenv 2 + , lib 3 + , fetchgit 4 + , fetchpatch 5 + , flex 6 + , bison 7 + , pkg-config 8 + , which 9 + , pythonSupport ? false 10 + , python ? null 11 + , swig 12 + , libyaml 3 13 }: 4 14 5 15 stdenv.mkDerivation rec { ··· 12 22 sha256 = "sha256-gx9LG3U9etWhPxm7Ox7rOu9X5272qGeHqZtOe68zFs4="; 13 23 }; 14 24 25 + patches = [ 26 + # fix python 3.10 compatibility 27 + # based on without requiring the setup.py rework 28 + # https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/?id=383e148b70a47ab15f97a19bb999d54f9c3e810f 29 + ./python-3.10.patch 30 + ]; 31 + 32 + nativeBuildInputs = [ flex bison pkg-config which ] 33 + ++ lib.optionals pythonSupport [ python swig ]; 34 + 15 35 buildInputs = [ libyaml ]; 16 - nativeBuildInputs = [ flex bison pkg-config which ] ++ lib.optionals pythonSupport [ python swig ]; 17 36 18 37 postPatch = '' 19 38 patchShebangs pylibfdt/
+28
pkgs/development/compilers/dtc/python-3.10.patch
··· 1 + diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i 2 + index 51ee801..075ef70 100644 3 + --- a/pylibfdt/libfdt.i 4 + +++ b/pylibfdt/libfdt.i 5 + @@ -1044,9 +1044,9 @@ typedef uint32_t fdt32_t; 6 + $result = Py_None; 7 + else 8 + %#if PY_VERSION_HEX >= 0x03000000 9 + - $result = Py_BuildValue("y#", $1, *arg4); 10 + + $result = Py_BuildValue("y#", $1, (Py_ssize_t)*arg4); 11 + %#else 12 + - $result = Py_BuildValue("s#", $1, *arg4); 13 + + $result = Py_BuildValue("s#", $1, (Py_ssize_t)*arg4); 14 + %#endif 15 + } 16 + 17 + diff --git a/pylibfdt/setup.py b/pylibfdt/setup.py 18 + index ef40f15..81e161a 100755 19 + --- a/pylibfdt/setup.py 20 + +++ b/pylibfdt/setup.py 21 + @@ -42,6 +42,7 @@ def get_version(): 22 + libfdt_module = Extension( 23 + '_libfdt', 24 + sources=[os.path.join(srcdir, 'libfdt.i')], 25 + + define_macros=[('PY_SSIZE_T_CLEAN', None)], 26 + include_dirs=[os.path.join(srcdir, '../libfdt')], 27 + libraries=['fdt'], 28 + library_dirs=[os.path.join(top_builddir, 'libfdt')],
+1 -1
pkgs/development/interpreters/python/default.nix
··· 230 230 enableOptimizations = false; 231 231 enableLTO = false; 232 232 mimetypesSupport = false; 233 - } // sources.python39)).overrideAttrs(old: { 233 + } // sources.python310)).overrideAttrs(old: { 234 234 # TODO(@Artturin): Add this to the main cpython expr 235 235 strictDeps = true; 236 236 pname = "python3-minimal";
+2 -2
pkgs/development/interpreters/spidermonkey/78.nix
··· 4 4 , autoconf213 5 5 , pkg-config 6 6 , perl 7 - , python3 7 + , python39 8 8 , zip 9 9 , buildPackages 10 10 , which ··· 54 54 rustc.llvmPackages.llvm # for llvm-objdump 55 55 perl 56 56 pkg-config 57 - python3 57 + python39 58 58 rust-cbindgen 59 59 rustc 60 60 which
+11 -2
pkgs/development/libraries/mapnik/default.nix
··· 1 1 { lib, stdenv, fetchzip 2 2 , boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff 3 3 , libwebp, libxml2, proj, python3, python ? python3, sqlite, zlib 4 + , sconsPackages 4 5 5 6 # supply a postgresql package to enable the PostGIS input plugin 6 7 , postgresql ? null 7 8 }: 8 9 9 - stdenv.mkDerivation rec { 10 + let 11 + scons = sconsPackages.scons_3_0_1; 12 + in stdenv.mkDerivation rec { 10 13 pname = "mapnik"; 11 14 version = "3.1.0"; 12 15 ··· 16 19 sha256 = "sha256-qqPqN4vs3ZsqKgnx21yQhX8OzHca/0O+3mvQ/vnC5EY="; 17 20 }; 18 21 22 + postPatch = '' 23 + substituteInPlace configure \ 24 + --replace '$PYTHON scons/scons.py' ${scons}/bin/scons 25 + rm -r scons 26 + ''; 27 + 19 28 # a distinct dev output makes python-mapnik fail 20 29 outputs = [ "out" ]; 21 30 22 - nativeBuildInputs = [ python3 ]; 31 + nativeBuildInputs = [ scons ]; 23 32 24 33 buildInputs = [ 25 34 boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff
+46 -10
pkgs/development/libraries/thrift/default.nix
··· 1 - { lib, stdenv, fetchurl, boost, zlib, libevent, openssl, python3, cmake, pkg-config 2 - , bison, flex 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , boost 5 + , zlib 6 + , libevent 7 + , openssl 8 + , python3 9 + , cmake 10 + , pkg-config 11 + , bison 12 + , flex 3 13 , static ? stdenv.hostPlatform.isStatic 4 14 }: 5 15 ··· 12 22 sha256 = "sha256-9GC1wcow2JGP+V6j62KRs5Uc9RhVNWYIjz8r6JgfYgk="; 13 23 }; 14 24 15 - # Workaround to make the python wrapper not drop this package: 25 + # Workaround to make the Python wrapper not drop this package: 16 26 # pythonFull.buildEnv.override { extraLibs = [ thrift ]; } 17 27 pythonPath = []; 18 28 19 - nativeBuildInputs = [ cmake pkg-config bison flex ]; 20 - buildInputs = [ boost zlib libevent openssl ] 21 - ++ lib.optionals (!static) [ (python3.withPackages (ps: [ps.twisted])) ]; 29 + nativeBuildInputs = [ 30 + bison 31 + cmake 32 + flex 33 + pkg-config 34 + ]; 22 35 23 - preConfigure = "export PY_PREFIX=$out"; 36 + buildInputs = [ 37 + boost 38 + libevent 39 + openssl 40 + zlib 41 + ] ++ lib.optionals (!static) [ 42 + (python3.withPackages (ps: [ps.twisted])) 43 + ]; 44 + 45 + postPatch = '' 46 + # Python 3.10 related failures: 47 + # SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats 48 + # AttributeError: module 'collections' has no attribute 'Hashable' 49 + substituteInPlace test/py/RunClientServer.py \ 50 + --replace "'FastbinaryTest.py'," "" \ 51 + --replace "'TestEof.py'," "" \ 52 + --replace "'TestFrozen.py'," "" 53 + ''; 54 + 55 + preConfigure = '' 56 + export PY_PREFIX=$out 57 + ''; 24 58 25 59 patches = [ 26 60 # ToStringTest.cpp is failing from some reason due to locale issue, this ··· 43 77 disabledTests = [ 44 78 "PythonTestSSLSocket" 45 79 ] ++ lib.optionals stdenv.isDarwin [ 46 - # tests that hang up in the darwin sandbox 80 + # Tests that hang up in the Darwin sandbox 47 81 "SecurityTest" 48 82 "SecurityFromBufferTest" 49 83 "python_test" 50 84 51 - # tests that fail in the darwin sandbox when trying to use network 85 + # Tests that fail in the Darwin sandbox when trying to use network 52 86 "UnitTests" 53 87 "TInterruptTest" 54 88 "TServerIntegrationTest" ··· 62 96 ]; 63 97 64 98 doCheck = !static; 99 + 65 100 checkPhase = '' 66 101 runHook preCheck 67 102 ··· 69 104 70 105 runHook postCheck 71 106 ''; 107 + 72 108 enableParallelChecking = false; 73 109 74 110 meta = with lib; { ··· 76 112 homepage = "https://thrift.apache.org/"; 77 113 license = licenses.asl20; 78 114 platforms = platforms.linux ++ platforms.darwin; 79 - maintainers = [ maintainers.bjornfor ]; 115 + maintainers = with maintainers; [ bjornfor ]; 80 116 }; 81 117 }
+12 -5
pkgs/development/libraries/unicorn/default.nix
··· 1 - { lib, stdenv 1 + { lib 2 + , stdenv 2 3 , fetchFromGitHub 3 4 , pkg-config 4 5 , cmake ··· 7 8 8 9 stdenv.mkDerivation rec { 9 10 pname = "unicorn"; 10 - version = "2.0.0-rc5"; 11 + version = "2.0.0-rc7"; 11 12 12 13 src = fetchFromGitHub { 13 14 owner = "unicorn-engine"; 14 15 repo = pname; 15 16 rev = version; 16 - sha256 = "1q9k8swnq4qsi54zdfaap69z56w3yj4n4ggm9pscmmmr69nply5f"; 17 + hash = "sha256-qlxtFCJBmouPuUEu8RduZM+rbOr52sGjdb8ZRHWmJ/w="; 17 18 }; 18 19 19 - nativeBuildInputs = [ pkg-config cmake ]; 20 - buildInputs = lib.optionals stdenv.isDarwin [ IOKit ]; 20 + nativeBuildInputs = [ 21 + cmake 22 + pkg-config 23 + ]; 24 + 25 + buildInputs = lib.optionals stdenv.isDarwin [ 26 + IOKit 27 + ]; 21 28 22 29 meta = with lib; { 23 30 description = "Lightweight multi-platform CPU emulator library";
+2 -2
pkgs/development/python-modules/GitPython/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "gitpython"; 14 - version = "3.1.25"; 14 + version = "3.1.27"; 15 15 disabled = pythonOlder "3.7"; 16 16 17 17 src = fetchFromGitHub { 18 18 owner = "gitpython-developers"; 19 19 repo = "GitPython"; 20 20 rev = version; 21 - sha256 = "sha256-ienc7zvLe6t8rkMtC6wVIewUqQBFdFbLc8iPT6aPVrE="; 21 + sha256 = "sha256-RA+6JFXHUQoXGErV8+aYuJPsfXzNSZK3kTm6eMbQIss="; 22 22 }; 23 23 24 24 patches = [
+19 -15
pkgs/development/python-modules/Rtree/default.nix
··· 1 - { lib, 2 - stdenv, 3 - buildPythonPackage, 4 - fetchPypi, 5 - libspatialindex, 6 - numpy, 7 - pytestCheckHook 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , fetchPypi 5 + , libspatialindex 6 + , numpy 7 + , pytestCheckHook 8 + , pythonOlder 8 9 }: 9 10 10 11 buildPythonPackage rec { 11 - pname = "Rtree"; 12 - version = "0.9.7"; 12 + pname = "rtree"; 13 + version = "1.0.0"; 14 + disabled = pythonOlder "3.7"; 13 15 14 16 src = fetchPypi { 15 - inherit pname version; 16 - sha256 = "be8772ca34699a9ad3fb4cfe2cfb6629854e453c10b3328039301bbfc128ca3e"; 17 + pname = "Rtree"; 18 + inherit version; 19 + sha256 = "sha256-0Eg0ghITRrCTuaQlGNQPkhrfRFkVt66jB+smdoyDloI="; 17 20 }; 18 21 19 - buildInputs = [ libspatialindex ]; 20 - 21 - patchPhase = '' 22 + postPatch = '' 22 23 substituteInPlace rtree/finder.py --replace \ 23 - "find_library('spatialindex_c')" "'${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}'" 24 + 'find_library("spatialindex_c")' '"${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}"' 24 25 ''; 26 + 27 + buildInputs = [ libspatialindex ]; 25 28 26 29 checkInputs = [ 27 30 numpy 28 31 pytestCheckHook 29 32 ]; 33 + 30 34 pythonImportsCheck = [ "rtree" ]; 31 35 32 36 meta = with lib; {
+2 -2
pkgs/development/python-modules/aiomysql/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "aiomysql"; 12 - version = "0.1.0"; 12 + version = "0.1.1"; 13 13 format = "pyproject"; 14 14 15 15 disabled = pythonOlder "3.7"; ··· 18 18 owner = "aio-libs"; 19 19 repo = pname; 20 20 rev = "v${version}"; 21 - hash = "sha256-TNaQ4EKiHwSmPpUco0pA5SBP3fljWQ/Kd5RLs649fu0="; 21 + hash = "sha256-rYEos2RuE2xI59httYlN21smBH4/fU4uT48FWwrI6Qg="; 22 22 }; 23 23 24 24 nativeBuildInputs = [
+2 -1
pkgs/development/python-modules/aiosteamist/default.nix
··· 32 32 33 33 postPatch = '' 34 34 substituteInPlace pyproject.toml \ 35 - --replace "--cov=aiosteamist" "" 35 + --replace "--cov=aiosteamist" "" \ 36 + --replace 'xmltodict = "^0.12.0"' 'xmltodict = "*"' 36 37 ''; 37 38 38 39 pythonImportsCheck = [
+3 -3
pkgs/development/python-modules/ansible-later/default.nix
··· 21 21 22 22 buildPythonPackage rec { 23 23 pname = "ansible-later"; 24 - version = "2.0.13"; 24 + version = "2.0.14"; 25 25 format = "pyproject"; 26 26 27 27 disabled = pythonOlder "3.8"; ··· 30 30 owner = "thegeeklab"; 31 31 repo = pname; 32 32 rev = "refs/tags/v${version}"; 33 - hash = "sha256-9xVFvXCHjgF+7asO1ialGIofJwsRRRiydo/Ui2C+Wig="; 33 + hash = "sha256-iY+5p6LNrlCTGi61cm2DJdyt8SmAwYqKmXNXescjAVQ="; 34 34 }; 35 35 36 36 nativeBuildInputs = [ ··· 63 63 --replace " --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail" "" \ 64 64 --replace 'PyYAML = "6.0"' 'PyYAML = "*"' \ 65 65 --replace 'unidiff = "0.7.3"' 'unidiff = "*"' \ 66 - --replace 'jsonschema = "4.4.0"' 'jsonschema = "*"' 66 + --replace 'jsonschema = "' 'jsonschema = "^' 67 67 ''; 68 68 69 69 postInstall = ''
+2 -1
pkgs/development/python-modules/antlr4-python3-runtime/default.nix
··· 9 9 10 10 sourceRoot = "source/runtime/Python3"; 11 11 12 + # in 4.9, test was renamed to tests 12 13 checkPhase = '' 13 - cd test 14 + cd test* 14 15 ${python.interpreter} ctest.py 15 16 ''; 16 17
+2 -2
pkgs/development/python-modules/apipkg/default.nix
··· 3 3 4 4 buildPythonPackage rec { 5 5 pname = "apipkg"; 6 - version = "2.1.0"; 6 + version = "2.1.1"; 7 7 8 8 src = fetchPypi { 9 9 inherit pname version; 10 - sha256 = "a4be31cf8081e660d2cdea6edfb8a0f39f385866abdcfcfa45e5a0887345cb70"; 10 + sha256 = "sha256-zKNAIkFKE5duM6HjjWoJBWfve2jQNy+SPGmaj4wIivw="; 11 11 }; 12 12 13 13 nativeBuildInputs = [ setuptools-scm ];
+2 -11
pkgs/development/python-modules/asgiref/default.nix
··· 6 6 , pytest-asyncio 7 7 , pytestCheckHook 8 8 , pythonOlder 9 - , fetchpatch 10 9 }: 11 10 12 11 buildPythonPackage rec { 13 - version = "3.5.0"; 12 + version = "3.5.2"; 14 13 pname = "asgiref"; 15 14 format = "setuptools"; 16 15 ··· 20 19 owner = "django"; 21 20 repo = pname; 22 21 rev = version; 23 - sha256 = "sha256-eWDsd8iWK1C/X3t/fKAM1i4hyTM/daGTd8CDSgDTL/U="; 22 + sha256 = "sha256-56suF63ePRDprqODhVIPCEGiO8UGgWrpwg2wYEs6OOE="; 24 23 }; 25 - 26 - patches = [ 27 - (fetchpatch { 28 - name = "remove-sock-nonblock-in-tests.patch"; 29 - url = "https://github.com/django/asgiref/commit/d451a724c93043b623e83e7f86743bbcd9a05c45.patch"; 30 - sha256 = "0whdsn5isln4dqbqqngvsy4yxgaqgpnziz0cndj1zdxim8cdicj7"; 31 - }) 32 - ]; 33 24 34 25 propagatedBuildInputs = [ 35 26 async-timeout
+11 -11
pkgs/development/python-modules/astroid/default.nix
··· 5 5 , pythonOlder 6 6 , isPyPy 7 7 , lazy-object-proxy 8 - , wrapt 8 + , setuptools 9 + , setuptools-scm 9 10 , typing-extensions 10 11 , typed-ast 12 + , pylint 11 13 , pytestCheckHook 12 - , setuptools-scm 13 - , pylint 14 + , wrapt 14 15 }: 15 16 16 17 buildPythonPackage rec { 17 18 pname = "astroid"; 18 - version = "2.11.2"; # Check whether the version is compatible with pylint 19 + version = "2.11.5"; # Check whether the version is compatible with pylint 19 20 20 21 disabled = pythonOlder "3.6.2"; 21 22 ··· 23 24 owner = "PyCQA"; 24 25 repo = pname; 25 26 rev = "v${version}"; 26 - sha256 = "sha256-adnvJCchsMWQxsIlenndUb6Mw1MgCNAanZcTmssmsEc="; 27 + sha256 = "sha256-GKda3hNdOrsd11pi+6NpYodW4TAgSvqbv2hF4GaIvtM="; 27 28 }; 28 29 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; ··· 34 35 35 36 propagatedBuildInputs = [ 36 37 lazy-object-proxy 38 + setuptools 37 39 wrapt 38 40 ] ++ lib.optionals (pythonOlder "3.10") [ 39 41 typing-extensions 40 - ] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast; 42 + ] ++ lib.optionals (!isPyPy && pythonOlder "3.8") [ 43 + typed-ast 44 + ]; 41 45 42 46 checkInputs = [ 43 47 pytestCheckHook 44 48 ]; 45 49 46 50 disabledTests = [ 47 - # assert (1, 1) == (1, 16) 48 - "test_end_lineno_string" 49 - ] ++ lib.optionals (pythonAtLeast "3.10") [ 50 51 # AssertionError: Lists differ: ['ABC[16 chars]yBase', 'Final', 'Generic', 'MyProtocol', 'Protocol', 'object'] != ['ABC[16 chars]yBase', 'Final', 'Generic', 'MyProtocol', 'object'] 51 52 "test_mro_typing_extensions" 52 53 ]; ··· 59 60 description = "An abstract syntax tree for Python with inference support"; 60 61 homepage = "https://github.com/PyCQA/astroid"; 61 62 license = licenses.lgpl21Plus; 62 - platforms = platforms.all; 63 - maintainers = with maintainers; [ ]; 63 + maintainers = with maintainers; [ SuperSandro2000 ]; 64 64 }; 65 65 }
+4 -2
pkgs/development/python-modules/audible/default.nix
··· 14 14 propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ]; 15 15 16 16 postPatch = '' 17 - substituteInPlace setup.py \ 18 - --replace 'httpx>=0.20.*,<=0.22.*' 'httpx' 17 + sed -i "s/httpx.*/httpx',/" setup.py 19 18 ''; 19 + 20 + # has no tests 21 + doCheck = false; 20 22 21 23 pythonImportsCheck = [ "audible"]; 22 24
+34
pkgs/development/python-modules/azure-data-tables/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , azure-core 5 + , msrest 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "azure-data-tables"; 10 + version = "12.4.0"; 11 + 12 + src = fetchPypi { 13 + inherit pname version; 14 + extension = "zip"; 15 + sha256 = "sha256-3V/I3pHi+JCO+kxkyn9jz4OzBoqbpCYpjeO1QTnpZlw="; 16 + }; 17 + 18 + propagatedBuildInputs = [ 19 + azure-core 20 + msrest 21 + ]; 22 + 23 + # has no tests 24 + doCheck = false; 25 + 26 + pythonImportsCheck = [ "azure.data.tables" ]; 27 + 28 + meta = with lib; { 29 + description = "NoSQL data storage service that can be accessed from anywhere"; 30 + homepage = "https://github.com/Azure/azure-sdk-for-python"; 31 + license = licenses.mit; 32 + maintainers = with maintainers; [ jonringer ]; 33 + }; 34 + }
+6
pkgs/development/python-modules/azure-mgmt-consumption/default.nix
··· 24 24 azure-mgmt-nspkg 25 25 ]; 26 26 27 + preBuild = '' 28 + rm -f azure_bdist_wheel.py 29 + substituteInPlace setup.cfg \ 30 + --replace "azure-namespace-package = azure-mgmt-nspkg" "" 31 + ''; 32 + 27 33 pythonNamespaces = [ "azure.mgmt" ]; 28 34 29 35 # has no tests
+2 -2
pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "azure-mgmt-containerinstance"; 14 - version = "9.1.0"; 14 + version = "9.2.0"; 15 15 16 16 src = fetchPypi { 17 17 inherit pname version; 18 18 extension = "zip"; 19 - sha256 = "22164b0c59138b37bc48ba6d476bf635152bc428dcb420b521a14b8c25c797ad"; 19 + sha256 = "sha256-3rElVUvbGqF99ppZanUUrwFGtCAXak2zhMVOd6n9bkY="; 20 20 }; 21 21 22 22 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix
··· 6 6 }: 7 7 8 8 buildPythonPackage rec { 9 - version = "9.1.0"; 9 + version = "10.0.0"; 10 10 pname = "azure-mgmt-containerregistry"; 11 11 disabled = isPy27; 12 12 13 13 src = fetchPypi { 14 14 inherit pname version; 15 - sha256 = "sha256-jkzGLDqrJgwCnz27lGzFk4d2q+j0P+PU8uUVGQg7MkA="; 15 + sha256 = "sha256-HjejK28Em5AeoQ20o4fucnXTlAwADF/SEpVfHn9anZk="; 16 16 extension = "zip"; 17 17 }; 18 18
+6
pkgs/development/python-modules/azure-mgmt-relay/default.nix
··· 24 24 azure-mgmt-nspkg 25 25 ]; 26 26 27 + preBuild = '' 28 + rm -f azure_bdist_wheel.py 29 + substituteInPlace setup.cfg \ 30 + --replace "azure-namespace-package = azure-mgmt-nspkg" "" 31 + ''; 32 + 27 33 pythonNamespaces = [ "azure.mgmt" ]; 28 34 29 35 # has no tests
+2 -2
pkgs/development/python-modules/azure-storage-blob/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "azure-storage-blob"; 14 - version = "12.11.0"; 14 + version = "12.12.0"; 15 15 16 16 src = fetchPypi { 17 17 inherit pname version; 18 18 extension = "zip"; 19 - sha256 = "sha256-SVNbMZC7adDZ/3o4MkaxTaTSsb3/YMrl+Rc5IMZ8p+4="; 19 + sha256 = "sha256-9trwfRyobRia4VybGFnf9bcSe/JKB6S75B4LgeAdYvc="; 20 20 }; 21 21 22 22 propagatedBuildInputs = [
+6 -1
pkgs/development/python-modules/beautifulsoup4/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , chardet 4 5 , html5lib 5 6 , lxml 6 7 , pytestCheckHook ··· 22 23 hash = "sha256-rZqlW2XvKAjrQF9Gz3Tff8twRNXLwmSH+W6y7y5DZpM="; 23 24 }; 24 25 26 + nativeBuildInputs = [ 27 + sphinxHook 28 + ]; 29 + 25 30 propagatedBuildInputs = [ 31 + chardet 26 32 html5lib 27 33 lxml 28 34 soupsieve ··· 31 37 checkInputs = [ 32 38 pytestCheckHook 33 39 ]; 34 - nativeBuildInputs = [ sphinxHook ]; 35 40 36 41 pythonImportsCheck = [ 37 42 "bs4"
+5
pkgs/development/python-modules/billiard/default.nix
··· 25 25 pytestCheckHook 26 26 ]; 27 27 28 + disabledTests = [ 29 + # psutil.NoSuchProcess: process no longer exists (pid=168) 30 + "test_set_pdeathsig" 31 + ]; 32 + 28 33 pythonImportsCheck = [ 29 34 "billiard" 30 35 ];
-2
pkgs/development/python-modules/botocore/default.nix
··· 4 4 , python-dateutil 5 5 , jmespath 6 6 , docutils 7 - , ordereddict 8 7 , simplejson 9 8 , mock 10 9 , nose ··· 24 23 python-dateutil 25 24 jmespath 26 25 docutils 27 - ordereddict 28 26 simplejson 29 27 urllib3 30 28 ];
+9 -4
pkgs/development/python-modules/cachecontrol/default.nix
··· 7 7 , msgpack 8 8 , pytestCheckHook 9 9 , pythonOlder 10 + , redis 10 11 , requests 11 12 }: 12 13 13 14 buildPythonPackage rec { 14 15 pname = "cachecontrol"; 15 - version = "0.12.10"; 16 + version = "0.12.11"; 16 17 format = "setuptools"; 17 18 18 19 disabled = pythonOlder "3.6"; ··· 21 22 owner = "ionrock"; 22 23 repo = pname; 23 24 rev = "v${version}"; 24 - hash = "sha256-mgvL0q10UbPHY1H3tJprke5p8qNl3HNYoeLAERZTcTs="; 25 + hash = "sha256-uUPIQz/n347Q9G7NDOGuB760B/KxOglUxiS/rYjt5Po="; 25 26 }; 26 27 27 28 propagatedBuildInputs = [ 28 - lockfile 29 29 msgpack 30 30 requests 31 31 ]; ··· 34 34 cherrypy 35 35 mock 36 36 pytestCheckHook 37 - ]; 37 + ] ++ passthru.optional-dependencies.filecache; 38 38 39 39 pythonImportsCheck = [ 40 40 "cachecontrol" 41 41 ]; 42 + 43 + passthru.optional-dependencies = { 44 + filecache = [ lockfile ]; 45 + redis = [ redis ]; 46 + }; 42 47 43 48 meta = with lib; { 44 49 description = "Httplib2 caching for requests";
+2 -2
pkgs/development/python-modules/cachetools/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "cachetools"; 10 - version = "5.0.0"; 10 + version = "5.2.0"; 11 11 format = "setuptools"; 12 12 13 13 disabled = pythonOlder "3.7"; ··· 16 16 owner = "tkem"; 17 17 repo = pname; 18 18 rev = "v${version}"; 19 - hash = "sha256-urTkls1S83m7Eo7chPaQc5gxz0omZBToNYa8upQEiOo="; 19 + hash = "sha256-DheHTD62f1ZxoiS0y0/CzDMHvKGmEiEUAX6oaqTpB78="; 20 20 }; 21 21 22 22 checkInputs = [
+2 -2
pkgs/development/python-modules/certbot/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "certbot"; 12 - version = "1.24.0"; 12 + version = "1.27.0"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = pname; 16 16 repo = pname; 17 17 rev = "v${version}"; 18 - sha256 = "sha256-XIKFEPQKIV5s6sZ7LRnlTvsb3cF4KIaiVZ36cAN1AwA="; 18 + sha256 = "sha256-3IKRVR1rLpOH22Mp2m0InqcPt85+jQgBSyrRL9/nMxY="; 19 19 }; 20 20 21 21 sourceRoot = "source/${pname}";
+2 -2
pkgs/development/python-modules/certifi/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "certifi"; 10 - version = "2021.10.08"; 10 + version = "2022.05.18.1"; 11 11 12 12 disabled = pythonOlder "3.5"; 13 13 ··· 15 15 owner = pname; 16 16 repo = "python-certifi"; 17 17 rev = version; 18 - sha256 = "sha256-SFb/spVHK15b53ZG1P147DcTjs1dqR0+MBXzpE+CWpo="; 18 + sha256 = "sha256-uDNVzKcT45mz0zXBwPkttKV21fEcgbRamE3+QutNLjA="; 19 19 }; 20 20 21 21 checkInputs = [
+1 -1
pkgs/development/python-modules/cfn-flip/default.nix
··· 19 19 owner = "awslabs"; 20 20 repo = "aws-cfn-template-flip"; 21 21 rev = version; 22 - hash = "sha256-1cV0mHc6+P0CbnLIMSSwNEzDB+1QzNjioH/EoIo40xU="; 22 + hash = "sha256-lfhTR3+D1FvblhQGF83AB8+I8WDPBTmo+q22ksgDgt4="; 23 23 }; 24 24 25 25 propagatedBuildInputs = [
+11 -4
pkgs/development/python-modules/cherrypy/default.nix
··· 8 8 , objgraph 9 9 , path 10 10 , portend 11 + , pyopenssl 11 12 , pytest-forked 12 13 , pytest-services 13 14 , pytestCheckHook 15 + , python-memcached 14 16 , pythonAtLeast 15 17 , pythonOlder 16 18 , requests-toolbelt ··· 38 40 ]; 39 41 40 42 propagatedBuildInputs = [ 41 - # required 42 43 cheroot 43 44 portend 44 45 more-itertools 45 46 zc_lockfile 46 47 jaraco_collections 47 - # optional 48 - routes 49 - simplejson 50 48 ]; 51 49 52 50 checkInputs = [ ··· 89 87 pythonImportsCheck = [ 90 88 "cherrypy" 91 89 ]; 90 + 91 + passthru.optional-dependencies = { 92 + json = [ simplejson ]; 93 + memcached_session = [ python-memcached ]; 94 + routes_dispatcher = [ routes ]; 95 + ssl = [ pyopenssl ]; 96 + # not packaged yet 97 + xcgi = [ /* flup */ ]; 98 + }; 92 99 93 100 meta = with lib; { 94 101 description = "Object-oriented HTTP framework";
+29 -11
pkgs/development/python-modules/cloudpickle/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPy27, pytest, mock }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , psutil 5 + , pytestCheckHook 6 + , pythonOlder 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 pname = "cloudpickle"; 5 - version = "2.0.0"; 6 - disabled = isPy27; # abandoned upstream 11 + version = "2.1.0"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.6"; 7 15 8 16 src = fetchPypi { 9 17 inherit pname version; 10 - sha256 = "5cd02f3b417a783ba84a4ec3e290ff7929009fe51f6405423cfccfadd43ba4a4"; 18 + hash = "sha256-uyM+h2pYSR2VkKZ2+Tx6VHOgj3R9Wrnff5zlZLPnk44="; 11 19 }; 12 20 13 - buildInputs = [ pytest mock ]; 21 + checkInputs = [ 22 + psutil 23 + pytestCheckHook 24 + ]; 14 25 15 - # See README for tests invocation 16 - checkPhase = '' 17 - PYTHONPATH=$PYTHONPATH:'.:tests' py.test 18 - ''; 26 + pythonImportsCheck = [ 27 + "cloudpickle" 28 + ]; 19 29 20 - # TypeError: cannot serialize '_io.FileIO' object 21 - doCheck = false; 30 + disabledTestPaths = [ 31 + # ModuleNotFoundError: No module named '_cloudpickle_testpkg' 32 + "tests/cloudpickle_test.py" 33 + ]; 34 + 35 + disabledTests = [ 36 + # TypeError: cannot pickle 'EncodedFile' object 37 + "test_pickling_special_file_handles" 38 + ]; 22 39 23 40 meta = with lib; { 24 41 description = "Extended pickling support for Python objects"; 25 42 homepage = "https://github.com/cloudpipe/cloudpickle"; 26 43 license = with licenses; [ bsd3 ]; 44 + maintainers = with maintainers; [ ]; 27 45 }; 28 46 }
+19 -10
pkgs/development/python-modules/configobj/default.nix
··· 1 - { lib, buildPythonPackage 1 + { lib 2 + , buildPythonPackage 2 3 , fetchFromGitHub 4 + , mock 5 + , pytestCheckHook 6 + , pythonOlder 3 7 , six 4 - , mock, pytest 5 8 }: 6 9 7 10 buildPythonPackage rec { 8 11 pname = "configobj"; 9 12 version = "5.0.6"; 13 + format = "setuptools"; 10 14 11 - # Pypi archives don't contain the tests 15 + disabled = pythonOlder "3.7"; 16 + 12 17 src = fetchFromGitHub { 13 18 owner = "DiffSK"; 14 19 repo = pname; 15 20 rev = "v${version}"; 16 - sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw"; 21 + hash = "sha256-HMLYzVMnxvMpb3ORsbKy18oU/NkuRT0isK6NaUk6J3U="; 17 22 }; 18 23 19 - 20 - propagatedBuildInputs = [ six ]; 24 + propagatedBuildInputs = [ 25 + six 26 + ]; 21 27 22 - checkPhase = '' 23 - pytest --deselect=tests/test_configobj.py::test_options_deprecation 24 - ''; 28 + checkInputs = [ 29 + mock 30 + pytestCheckHook 31 + ]; 25 32 26 - checkInputs = [ mock pytest ]; 33 + pythonImportsCheck = [ 34 + "configobj" 35 + ]; 27 36 28 37 meta = with lib; { 29 38 description = "Config file reading, writing and validation";
+7 -3
pkgs/development/python-modules/cryptography/default.nix
··· 12 12 , isPyPy 13 13 , cffi 14 14 , pytestCheckHook 15 + , pytest-benchmark 15 16 , pytest-subtests 17 + , pythonOlder 16 18 , pretend 17 19 , libiconv 18 20 , iso8601 ··· 25 27 in 26 28 buildPythonPackage rec { 27 29 pname = "cryptography"; 28 - version = "36.0.2"; # Also update the hash in vectors.nix 30 + version = "37.0.2"; # Also update the hash in vectors.nix 31 + disabled = pythonOlder "3.6"; 29 32 30 33 src = fetchPypi { 31 34 inherit pname version; 32 - sha256 = "sha256-cPj097sqyfNAZVy6yJ1oxSevW7Q4dSKoQT6EHj5mKMk="; 35 + sha256 = "sha256-8iStJTzJzqdWj0kHcAfSJj76VzlqLy94EUBm/VS1xo4="; 33 36 }; 34 37 35 38 cargoDeps = rustPlatform.fetchCargoTarball { 36 39 inherit src; 37 40 sourceRoot = "${pname}-${version}/${cargoRoot}"; 38 41 name = "${pname}-${version}"; 39 - sha256 = "sha256-6C4N445h4Xf2nCc9rJWpSZaNPilR9GfgbmKvNlSIFqg="; 42 + sha256 = "sha256-qvrxvneoBXjP96AnUPyrtfmCnZo+IriHR5HbtWQ5Gk8="; 40 43 }; 41 44 42 45 cargoRoot = "src/rust"; ··· 63 66 iso8601 64 67 pretend 65 68 pytestCheckHook 69 + pytest-benchmark 66 70 pytest-subtests 67 71 pytz 68 72 ];
+1 -1
pkgs/development/python-modules/cryptography/vectors.nix
··· 8 8 src = fetchPypi { 9 9 pname = "cryptography_vectors"; 10 10 inherit version; 11 - sha256 = "sha256-KnkkRJoDAl+vf4dUpvQgAAHKshBzSmzmrB9r2s06aOQ="; 11 + sha256 = "sha256-fGXT3lF1b0GBQt9gVBfsLG6WHDZPcMyKEDAwiJ1aMhk="; 12 12 }; 13 13 14 14 # No tests included
+2 -2
pkgs/development/python-modules/cssutils/default.nix
··· 17 17 18 18 buildPythonPackage rec { 19 19 pname = "cssutils"; 20 - version = "2.4.0"; 20 + version = "2.4.1"; 21 21 22 22 disabled = pythonOlder "3.7"; 23 23 ··· 25 25 26 26 src = fetchPypi { 27 27 inherit pname version; 28 - hash = "sha256-LZchCoOwo/4eRGn1/5pkILB4VyA1GIsbq3EDw6NtyJs="; 28 + hash = "sha256-+Gicb66TTLanB3xwZvLGAmwOkN560wqBaz9tWaE41jg="; 29 29 }; 30 30 31 31 nativeBuildInputs = [
+20 -12
pkgs/development/python-modules/dask-gateway-server/default.nix
··· 1 1 { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 2 , aiohttp 3 + , buildPythonPackage 5 4 , colorlog 6 5 , cryptography 7 - , traitlets 6 + , fetchFromGitHub 8 7 , go 9 - , isPy27 8 + , pythonOlder 9 + , traitlets 10 10 }: 11 11 12 12 buildPythonPackage rec { 13 13 pname = "dask-gateway-server"; 14 14 # update dask-gateway-server lock step with dask-gateway 15 - version = "0.9.0"; 16 - disabled = isPy27; 15 + version = "2022.4.0"; 16 + format = "setuptools"; 17 17 18 - src = fetchPypi { 19 - inherit pname version; 20 - sha256 = "82bca8a98fc1dbda9f67c8eceac59cb92abe07db6227c120a1eb1d040ea40fda"; 18 + disabled = pythonOlder "3.7"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "dask"; 22 + repo = "dask-gateway"; 23 + rev = version; 24 + hash = "sha256-Grjp7gt3Pos4cQSGV/Rynz6W/zebRI0OqDiWT4cTh8I="; 21 25 }; 26 + 27 + sourceRoot = "${src.name}/${pname}"; 22 28 23 29 nativeBuildInputs = [ 24 30 go ··· 36 42 export GO111MODULE=off 37 43 ''; 38 44 39 - # tests requires cluster for testing 45 + # Tests requires cluster for testing 40 46 doCheck = false; 41 47 42 - pythonImportsCheck = [ "dask_gateway_server" ]; 48 + pythonImportsCheck = [ 49 + "dask_gateway_server" 50 + ]; 43 51 44 52 meta = with lib; { 45 53 description = "A multi-tenant server for securely deploying and managing multiple Dask clusters"; 46 54 homepage = "https://gateway.dask.org/"; 47 55 license = licenses.bsd3; 48 - maintainers = [ maintainers.costrouc ]; 56 + maintainers = with maintainers; [ costrouc ]; 49 57 }; 50 58 }
+42 -12
pkgs/development/python-modules/dask-glm/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchPypi 4 3 , cloudpickle 5 4 , dask 6 - , numpy, toolz # dask[array] 5 + , distributed 6 + , fetchPypi 7 7 , multipledispatch 8 - , setuptools-scm 9 - , scipy 10 - , scikit-learn 11 8 , pytestCheckHook 9 + , pythonOlder 10 + , scikit-learn 11 + , scipy 12 + , setuptools-scm 13 + , sparse 12 14 }: 13 15 14 16 buildPythonPackage rec { 17 + pname = "dask-glm"; 15 18 version = "0.2.0"; 16 - pname = "dask-glm"; 19 + format = "setuptools"; 20 + 21 + disabled = pythonOlder "3.7"; 17 22 18 23 src = fetchPypi { 19 24 inherit pname version; 20 - sha256 = "58b86cebf04fe5b9e58092e1c467e32e60d01e11b71fdc628baaa9fc6d1adee5"; 25 + hash = "sha256-WLhs6/BP5bnlgJLhxGfjLmDQHhG3H9xii6qp/G0a3uU="; 21 26 }; 22 27 23 - nativeBuildInputs = [ setuptools-scm ]; 24 - checkInputs = [ pytestCheckHook ]; 25 - propagatedBuildInputs = [ cloudpickle dask numpy toolz multipledispatch scipy scikit-learn ]; 28 + nativeBuildInputs = [ 29 + setuptools-scm 30 + ]; 31 + 32 + propagatedBuildInputs = [ 33 + cloudpickle 34 + distributed 35 + multipledispatch 36 + scikit-learn 37 + scipy 38 + sparse 39 + ] ++ dask.optional-dependencies.array; 40 + 41 + checkInputs = [ 42 + sparse 43 + pytestCheckHook 44 + ]; 45 + 46 + pythonImportsCheck = [ 47 + "dask_glm" 48 + ]; 49 + 50 + disabledTestPaths = [ 51 + # Circular dependency with dask-ml 52 + "dask_glm/tests/test_estimators.py" 53 + # Test tries to imort an obsolete method 54 + "dask_glm/tests/test_utils.py" 55 + ]; 26 56 27 57 meta = with lib; { 28 - homepage = "https://github.com/dask/dask-glm/"; 29 58 description = "Generalized Linear Models with Dask"; 59 + homepage = "https://github.com/dask/dask-glm/"; 30 60 license = licenses.bsd3; 31 - maintainers = [ maintainers.costrouc ]; 61 + maintainers = with maintainers; [ costrouc ]; 32 62 }; 33 63 }
+2 -4
pkgs/development/python-modules/dask-ml/default.nix
··· 13 13 , scikit-learn 14 14 , scipy 15 15 , setuptools-scm 16 - , toolz 17 16 }: 18 17 19 18 buildPythonPackage rec { ··· 33 32 ]; 34 33 35 34 propagatedBuildInputs = [ 36 - dask 37 35 dask-glm 38 36 distributed 39 37 multipledispatch ··· 43 41 pandas 44 42 scikit-learn 45 43 scipy 46 - toolz 47 - ]; 44 + ] ++ dask.optional-dependencies.array 45 + ++ dask.optional-dependencies.dataframe; 48 46 49 47 # has non-standard build from source, and pypi doesn't include tests 50 48 doCheck = false;
+43 -20
pkgs/development/python-modules/dask/default.nix
··· 4 4 , buildPythonPackage 5 5 , cloudpickle 6 6 , distributed 7 + , fastparquet 7 8 , fetchFromGitHub 8 9 , fetchpatch 9 10 , fsspec ··· 12 13 , packaging 13 14 , pandas 14 15 , partd 16 + , pyarrow 15 17 , pytest-rerunfailures 16 18 , pytest-xdist 17 19 , pytestCheckHook 18 20 , pythonOlder 19 21 , pyyaml 22 + , scipy 20 23 , toolz 24 + , zarr 21 25 }: 22 26 23 27 buildPythonPackage rec { 24 28 pname = "dask"; 25 - version = "2022.02.1"; 29 + version = "2022.05.2"; 26 30 format = "setuptools"; 27 31 28 32 disabled = pythonOlder "3.7"; ··· 31 35 owner = "dask"; 32 36 repo = pname; 33 37 rev = version; 34 - hash = "sha256-A8ktvfpow/QKAEEt9SUnkTqYFJCrV1mgnuDIP3gdyrE="; 38 + hash = "sha256-8M70Pf31PhYnBPRhSG55eWg6gK0lxsIFKF+cRCsf0/U="; 35 39 }; 36 40 37 41 propagatedBuildInputs = [ ··· 41 45 partd 42 46 pyyaml 43 47 toolz 44 - pandas 45 - jinja2 46 - bokeh 47 - numpy 48 48 ]; 49 49 50 - doCheck = true; 50 + passthru.optional-dependencies = { 51 + array = [ 52 + numpy 53 + ]; 54 + complete = [ 55 + distributed 56 + ]; 57 + dataframe = [ 58 + numpy 59 + pandas 60 + ]; 61 + distributed = [ 62 + distributed 63 + ]; 64 + diagnostics = [ 65 + bokeh 66 + jinja2 67 + ]; 68 + }; 51 69 52 70 checkInputs = [ 71 + fastparquet 72 + pyarrow 53 73 pytestCheckHook 54 74 pytest-rerunfailures 55 75 pytest-xdist 76 + scipy 77 + zarr 56 78 ]; 57 79 58 80 dontUseSetuptoolsCheck = true; 59 81 60 82 postPatch = '' 61 - # versioneer hack to set version of github package 83 + # versioneer hack to set version of GitHub package 62 84 echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py 63 85 64 86 substituteInPlace setup.py \ 65 87 --replace "version=versioneer.get_version()," "version='${version}'," \ 66 88 --replace "cmdclass=versioneer.get_cmdclass()," "" 89 + 90 + substituteInPlace setup.cfg \ 91 + --replace " --durations=10" "" \ 92 + --replace " -v" "" 67 93 ''; 68 94 69 95 pytestFlagsArray = [ 70 - # rerun failed tests up to three times 96 + # Rerun failed tests up to three times 71 97 "--reruns 3" 72 - # don't run tests that require network access 98 + # Don't run tests that require network access 73 99 "-m 'not network'" 100 + # Ignore warning about pyarrow 5.0.0 feautres 101 + "-W" 102 + "ignore::FutureWarning" 74 103 ]; 75 104 76 105 disabledTests = lib.optionals stdenv.isDarwin [ 77 - # this test requires features of python3Packages.psutil that are 106 + # Test requires features of python3Packages.psutil that are 78 107 # blocked in sandboxed-builds 79 108 "test_auto_blocksize_csv" 109 + # AttributeError: 'str' object has no attribute 'decode' 110 + "test_read_dir_nometa" 80 111 ] ++ [ 81 - # A deprecation warning from newer sqlalchemy versions makes these tests 82 - # to fail https://github.com/dask/dask/issues/7406 83 - "test_sql" 84 - # Test interrupt fails intermittently https://github.com/dask/dask/issues/2192 85 - "test_interrupt" 112 + "test_chunksize_files" 86 113 ]; 87 114 88 115 __darwinAllowLocalNetworking = true; ··· 97 124 "dask.dataframe.tseries" 98 125 "dask.diagnostics" 99 126 ]; 100 - 101 - passthru.optional-dependencies = { 102 - complete = [ distributed ]; 103 - }; 104 127 105 128 meta = with lib; { 106 129 description = "Minimal task scheduling abstraction";
+2 -2
pkgs/development/python-modules/databases/default.nix
··· 14 14 15 15 buildPythonPackage rec { 16 16 pname = "databases"; 17 - version = "0.5.5"; 17 + version = "0.6.0"; 18 18 format = "setuptools"; 19 19 20 20 disabled = pythonOlder "3.6"; ··· 23 23 owner = "encode"; 24 24 repo = pname; 25 25 rev = version; 26 - hash = "sha256-NOXK1UCQzqvJRfzsgIfpihuD9oF52sMD+BxqUHWF8Rk="; 26 + hash = "sha256-5+x735EFX9B25HgXiqzUJm0nbF7tDF5FOQVnbYQyomE="; 27 27 }; 28 28 29 29 propagatedBuildInputs = [
+14 -16
pkgs/development/python-modules/distributed/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchPypi 4 3 , click 5 4 , cloudpickle 6 5 , dask 6 + , fetchPypi 7 + , jinja2 8 + , locket 7 9 , msgpack 10 + , packaging 8 11 , psutil 12 + , pythonOlder 13 + , pyyaml 9 14 , sortedcontainers 10 15 , tblib 11 16 , toolz 12 17 , tornado 18 + , urllib3 13 19 , zict 14 - , pyyaml 15 - , mpi4py 16 - , bokeh 17 - , pythonOlder 18 20 }: 19 21 20 22 buildPythonPackage rec { 21 23 pname = "distributed"; 22 - version = "2022.2.1"; 24 + version = "2022.5.2"; 23 25 format = "setuptools"; 24 26 25 27 disabled = pythonOlder "3.7"; 26 28 27 - # get full repository need conftest.py to run tests 28 29 src = fetchPypi { 29 30 inherit pname version; 30 - hash = "sha256-+2KnWvjvM7vhqoCmjAGjOpPBzVozLdAXq0SVW/fs9ls="; 31 + hash = "sha256-BEqsUfpk/Z4WsaLEMVIg0oHw5cwbBfTT03hSQm8efLY="; 31 32 }; 32 33 33 34 propagatedBuildInputs = [ 34 - bokeh 35 35 click 36 36 cloudpickle 37 37 dask 38 - mpi4py 38 + jinja2 39 + locket 39 40 msgpack 41 + packaging 40 42 psutil 41 43 pyyaml 42 44 sortedcontainers 43 45 tblib 44 46 toolz 45 47 tornado 48 + urllib3 46 49 zict 47 50 ]; 48 51 49 - postPatch = '' 50 - substituteInPlace requirements.txt \ 51 - --replace "dask == 2022.02.0" "dask" 52 - ''; 53 - 54 - # when tested random tests would fail and not repeatably 52 + # When tested random tests would fail and not repeatably 55 53 doCheck = false; 56 54 57 55 pythonImportsCheck = [
+6
pkgs/development/python-modules/fastapi-mail/default.nix
··· 31 31 hash = "sha256-PkA7qkdDUd7mrtvb6IbCzFRq6X0M3iKY+FKuNConJ5A="; 32 32 }; 33 33 34 + postPatch = '' 35 + substituteInPlace pyproject.toml \ 36 + --replace 'fastapi = "^0.75.0"' 'fastapi = "*"' \ 37 + --replace 'httpx = "^0.22.0"' 'httpx = "*"' 38 + ''; 39 + 34 40 nativeBuildInputs = [ 35 41 poetry-core 36 42 ];
+7 -18
pkgs/development/python-modules/fastapi/default.nix
··· 7 7 , pytest-asyncio 8 8 , aiosqlite 9 9 , databases 10 - , fetchpatch 11 10 , flask 12 11 , httpx 13 12 , passlib ··· 20 19 21 20 buildPythonPackage rec { 22 21 pname = "fastapi"; 23 - version = "0.75.2"; 22 + version = "0.78.0"; 24 23 format = "flit"; 25 24 26 25 disabled = pythonOlder "3.6"; ··· 29 28 owner = "tiangolo"; 30 29 repo = pname; 31 30 rev = version; 32 - hash = "sha256-B4q3Q256Sj4jTQt1TDm3fiEaQKdVxddCF9+KsxkkTWo="; 31 + hash = "sha256-4JS0VLVg67O7VdcDw2k2u+98kiCdCHvCAEGHYGWEIOA="; 33 32 }; 34 33 34 + postPatch = '' 35 + substituteInPlace pyproject.toml \ 36 + --replace "starlette==" "starlette>=" 37 + ''; 38 + 35 39 propagatedBuildInputs = [ 36 40 starlette 37 41 pydantic ··· 50 54 sqlalchemy 51 55 trio 52 56 ] ++ passlib.optional-dependencies.bcrypt; 53 - 54 - patches = [ 55 - # Bump starlette, https://github.com/tiangolo/fastapi/pull/4483 56 - (fetchpatch { 57 - name = "support-later-starlette.patch"; 58 - # PR contains multiple commits 59 - url = "https://patch-diff.githubusercontent.com/raw/tiangolo/fastapi/pull/4483.patch"; 60 - sha256 = "sha256-ZWaqAd/QYEYRL1hSQdXdFPgWgdmOill2GtmEn33vz2U="; 61 - }) 62 - ]; 63 - 64 - postPatch = '' 65 - substituteInPlace pyproject.toml \ 66 - --replace "starlette ==" "starlette >=" 67 - ''; 68 57 69 58 pytestFlagsArray = [ 70 59 # ignoring deprecation warnings to avoid test failure from
+28 -4
pkgs/development/python-modules/fastparquet/default.nix
··· 8 8 , cramjam 9 9 , fsspec 10 10 , thrift 11 + , python-lzo 11 12 , pytestCheckHook 13 + , pythonOlder 12 14 }: 13 15 14 16 buildPythonPackage rec { 15 17 pname = "fastparquet"; 16 18 version = "0.8.1"; 19 + format = "setuptools"; 20 + 21 + disabled = pythonOlder "3.7"; 17 22 18 23 src = fetchFromGitHub { 19 24 owner = "dask"; 20 25 repo = pname; 21 26 rev = version; 22 - sha256 = "05qb4nz87p9vnrdsyl25hdp5sj35lki64gjza5dahc89fwfdnsmd"; 27 + hash = "sha256-rWrbHHcJMahaUV8+YuKkZUhdboNFUK9btjvdg74lCxc="; 23 28 }; 24 29 30 + propagatedBuildInputs = [ 31 + cramjam 32 + fsspec 33 + numba 34 + numpy 35 + pandas 36 + thrift 37 + ]; 38 + 39 + passthru.optional-dependencies = { 40 + lzo = [ 41 + python-lzo 42 + ]; 43 + }; 44 + 45 + checkInputs = [ 46 + pytestCheckHook 47 + ]; 48 + 25 49 postPatch = '' 26 50 substituteInPlace setup.py \ 27 51 --replace "'pytest-runner'," "" \ 28 52 --replace "oldest-supported-numpy" "numpy" 29 53 ''; 30 54 31 - propagatedBuildInputs = [ cramjam fsspec numba numpy pandas thrift ]; 32 - checkInputs = [ pytestCheckHook ]; 33 55 34 56 # Workaround https://github.com/NixOS/nixpkgs/issues/123561 35 57 preCheck = '' ··· 43 65 rm "$fastparquet_test" 44 66 ''; 45 67 46 - pythonImportsCheck = [ "fastparquet" ]; 68 + pythonImportsCheck = [ 69 + "fastparquet" 70 + ]; 47 71 48 72 meta = with lib; { 49 73 description = "A python implementation of the parquet format";
+7 -6
pkgs/development/python-modules/filelock/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , pythonOlder 4 3 , fetchPypi 5 - , setuptools-scm 6 4 , pytestCheckHook 5 + , pythonOlder 6 + , setuptools-scm 7 7 }: 8 8 9 9 buildPythonPackage rec { 10 10 pname = "filelock"; 11 - version = "3.6.0"; 11 + version = "3.7.1"; 12 12 format = "pyproject"; 13 - disabled = pythonOlder "3.6"; 13 + 14 + disabled = pythonOlder "3.7"; 14 15 15 16 src = fetchPypi { 16 17 inherit pname version; 17 - sha256 = "sha256-nNVAqTUuQyxyRqSP5OhxKxCssd8q0fMOjAcLgq4f7YU="; 18 + hash = "sha256-Og/YUWatnbq1TJrslnN7dEEG3F8VwLCaZ0SkRSmfzwQ="; 18 19 }; 19 20 20 21 nativeBuildInputs = [ ··· 26 27 ]; 27 28 28 29 meta = with lib; { 29 - homepage = "https://github.com/benediktschmitt/py-filelock"; 30 30 description = "A platform independent file lock for Python"; 31 + homepage = "https://github.com/benediktschmitt/py-filelock"; 31 32 license = licenses.unlicense; 32 33 maintainers = with maintainers; [ hyphon81 ]; 33 34 };
-2
pkgs/development/python-modules/flask-limiter/default.nix
··· 6 6 , hiro 7 7 , limits 8 8 , mock 9 - , ordereddict 10 9 , pymemcache 11 10 , pytestCheckHook 12 11 , redis ··· 32 31 redis 33 32 flask-restful 34 33 pymemcache 35 - ordereddict 36 34 ]; 37 35 38 36 postPatch = ''
+2
pkgs/development/python-modules/flickrapi/default.nix
··· 4 4 , requests 5 5 , requests-toolbelt 6 6 , requests-oauthlib 7 + , six 7 8 , pytestCheckHook 8 9 , responses 9 10 , pythonOlder ··· 27 28 requests 28 29 requests-toolbelt 29 30 requests-oauthlib 31 + six 30 32 ]; 31 33 32 34 checkInputs = [
+37 -27
pkgs/development/python-modules/fonttools/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , buildPythonPackage 3 - , fetchFromGitHub 4 4 , pythonOlder 5 - , brotlipy 6 - , zopfli 5 + , isPyPy 6 + , fetchFromGitHub 7 + , setuptools-scm 8 + , fs 7 9 , lxml 10 + , brotli 11 + , brotlicffi 12 + , zopfli 13 + , unicodedata2 14 + , lz4 8 15 , scipy 9 16 , munkres 10 - , unicodedata2 17 + , matplotlib 11 18 , sympy 12 - , reportlab 13 - , sphinx 19 + , xattr 20 + , skia-pathops 21 + , uharfbuzz 14 22 , pytestCheckHook 15 - , glibcLocales 16 - , setuptools-scm 17 23 }: 18 24 19 25 buildPythonPackage rec { ··· 31 37 32 38 nativeBuildInputs = [ setuptools-scm ]; 33 39 34 - # all dependencies are optional, but 35 - # we run the checks with them 40 + passthru.optional-dependencies = let 41 + extras = { 42 + ufo = [ fs ]; 43 + lxml = [ lxml ]; 44 + woff = [ (if isPyPy then brotlicffi else brotli) zopfli ]; 45 + unicode = lib.optional (pythonOlder "3.11") unicodedata2; 46 + graphite = [ lz4 ]; 47 + interpolatable = [ (if isPyPy then munkres else scipy) ]; 48 + plot = [ matplotlib ]; 49 + symfont = [ sympy ]; 50 + type1 = lib.optional stdenv.isDarwin xattr; 51 + pathops = [ skia-pathops ]; 52 + repacker = [ uharfbuzz ]; 53 + }; 54 + in extras // { 55 + all = lib.concatLists (lib.attrValues extras); 56 + }; 36 57 37 58 checkInputs = [ 38 59 pytestCheckHook 39 - # etree extra 40 - lxml 41 - # woff extra 42 - brotlipy 43 - zopfli 44 - # interpolatable extra 45 - scipy 46 - munkres 47 - # symfont 48 - sympy 49 - # pens 50 - reportlab 51 - sphinx 52 - ] ++ lib.optionals (pythonOlder "3.9") [ 53 - # unicode extra 54 - unicodedata2 55 - ]; 60 + ] ++ lib.concatLists (lib.attrVals [ 61 + "woff" 62 + "interpolatable" 63 + "pathops" 64 + "repacker" 65 + ] passthru.optional-dependencies); 56 66 57 67 pythonImportsCheck = [ "fontTools" ]; 58 68
+20 -14
pkgs/development/python-modules/fsspec/default.nix
··· 1 1 { lib 2 2 , stdenv 3 + , aiohttp 3 4 , buildPythonPackage 4 5 , fetchFromGitHub 5 - , pythonOlder 6 - , pytestCheckHook 7 6 , numpy 8 - , aiohttp 7 + , paramiko 8 + , pytest-asyncio 9 + , pytest-mock 9 10 , pytest-vcr 10 - , pytest-mock 11 - , pytest-asyncio 11 + , pytestCheckHook 12 + , pythonOlder 12 13 , requests 13 - , paramiko 14 14 , smbprotocol 15 + , tqdm 15 16 }: 16 17 17 18 buildPythonPackage rec { 18 19 pname = "fsspec"; 19 - version = "2022.3.0"; 20 - disabled = pythonOlder "3.6"; 20 + version = "2022.5.0"; 21 + format = "setuptools"; 22 + 23 + disabled = pythonOlder "3.7"; 21 24 22 25 src = fetchFromGitHub { 23 26 owner = "intake"; 24 27 repo = "filesystem_spec"; 25 28 rev = version; 26 - sha256 = "sha256-jTF8R0kaHMsCYg+7YFi21Homn63K+ulp9NDZC/jkIXM="; 29 + hash = "sha256-WOzw9UPF8LZuOhp5p/CJUUJcYpAfixV6GiI8tfnoklc="; 27 30 }; 28 31 29 32 propagatedBuildInputs = [ ··· 31 34 paramiko 32 35 requests 33 36 smbprotocol 37 + tqdm 34 38 ]; 35 39 36 40 checkInputs = [ 37 41 numpy 38 - pytest-vcr 39 - pytest-mock 40 42 pytest-asyncio 43 + pytest-mock 44 + pytest-vcr 41 45 pytestCheckHook 42 46 ]; 43 47 ··· 58 62 "test_touch" 59 63 ]; 60 64 61 - pythonImportsCheck = [ "fsspec" ]; 65 + pythonImportsCheck = [ 66 + "fsspec" 67 + ]; 62 68 63 69 meta = with lib; { 64 - homepage = "https://github.com/intake/filesystem_spec"; 65 70 description = "A specification that Python filesystems should adhere to"; 71 + homepage = "https://github.com/intake/filesystem_spec"; 66 72 changelog = "https://github.com/fsspec/filesystem_spec/raw/${version}/docs/source/changelog.rst"; 67 73 license = licenses.bsd3; 68 - maintainers = [ maintainers.costrouc ]; 74 + maintainers = with maintainers; [ costrouc ]; 69 75 }; 70 76 }
+5 -3
pkgs/development/python-modules/gcsfs/default.nix
··· 18 18 19 19 buildPythonPackage rec { 20 20 pname = "gcsfs"; 21 - version = "2022.3.0"; 21 + version = "2022.5.0"; 22 22 format = "setuptools"; 23 23 24 24 disabled = pythonOlder "3.7"; ··· 27 27 owner = "fsspec"; 28 28 repo = pname; 29 29 rev = version; 30 - hash = "sha256-+Bchwsa8Jj7WBWbzyH+GQuqZki4EltMryumKt4Pm1es="; 30 + hash = "sha256-gIkK1VSg1h04+MQBoxFtXIdn80faJlgQ9ayqV5p0RMU="; 31 31 }; 32 32 33 33 propagatedBuildInputs = [ ··· 55 55 "gcsfs/tests/test_retry.py" 56 56 ]; 57 57 58 - pytestFlagsArray = [ "-x" ]; 58 + pytestFlagsArray = [ 59 + "-x" 60 + ]; 59 61 60 62 pythonImportsCheck = [ 61 63 "gcsfs"
+2 -1
pkgs/development/python-modules/gdown/default.nix
··· 26 26 tqdm 27 27 setuptools 28 28 six 29 - ]; 29 + ] 30 + ++ requests.optional-dependencies.socks; 30 31 31 32 checkPhase = '' 32 33 $out/bin/gdown --help > /dev/null
+2 -2
pkgs/development/python-modules/glances-api/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "glances-api"; 14 - version = "0.3.5"; 14 + version = "0.3.6"; 15 15 format = "pyproject"; 16 16 17 17 disabled = pythonOlder "3.8"; ··· 20 20 owner = "home-assistant-ecosystem"; 21 21 repo = "python-glances-api"; 22 22 rev = version; 23 - sha256 = "sha256-8NWrsiiKevIMeD++C2weRdG0FPm5T4fHMUSJM4J+AOo="; 23 + sha256 = "sha256-2H8S08tntCNKwMw553/wuWLXmri7b2tLxFlgCDJWQNQ="; 24 24 }; 25 25 26 26 nativeBuildInputs = [
+2
pkgs/development/python-modules/globus-sdk/default.nix
··· 8 8 , pythonOlder 9 9 , requests 10 10 , responses 11 + , six 11 12 , typing-extensions 12 13 }: 13 14 ··· 37 38 mypy 38 39 pytestCheckHook 39 40 responses 41 + six 40 42 ]; 41 43 42 44 postPatch = ''
+38 -21
pkgs/development/python-modules/graph-tool/default.nix
··· 1 - { fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook 2 - , pkg-config, boost, expat, scipy, cgal, gmp, mpfr 3 - , gobject-introspection, pygobject3, gtk3, matplotlib, ncurses 4 - , buildPythonPackage 1 + { buildPythonPackage 5 2 , lib 3 + , fetchurl 4 + 5 + , autoreconfHook 6 + , boost 7 + , cairomm 8 + , cgal 9 + , expat 10 + , gmp 11 + , gobject-introspection 12 + , gtk3 13 + , matplotlib 14 + , mpfr 15 + , numpy 16 + , pkg-config 17 + , pycairo 18 + , pygobject3 19 + , python 20 + , scipy 21 + , sparsehash 6 22 }: 7 23 8 24 buildPythonPackage rec { 9 25 pname = "graph-tool"; 10 26 format = "other"; 11 - version = "2.43"; 27 + version = "2.45"; 12 28 13 29 src = fetchurl { 14 30 url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2"; 15 - hash = "sha256-XxvuCUIgz7JIaNsPr0f44v/Sb3fdcJmVhC5NnomNqGw="; 31 + hash = "sha256-+S2nrM/aArKXke/k8LPtkzKfJyMq9NOvwHySQh7Ghmg="; 16 32 }; 17 33 18 34 configureFlags = [ ··· 23 39 "--enable-openmp" 24 40 ]; 25 41 26 - nativeBuildInputs = [ autoreconfHook pkg-config ]; 27 - buildInputs = [ ncurses ]; 42 + enableParallelBuilding = true; 43 + 44 + nativeBuildInputs = [ 45 + autoreconfHook 46 + pkg-config 47 + ]; 28 48 49 + # https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#manual-compilation 29 50 propagatedBuildInputs = [ 30 51 boost 52 + cairomm 31 53 cgal 32 54 expat 33 55 gmp 34 - mpfr 35 - python 36 - scipy 37 - # optional 38 - sparsehash 39 - # drawing 40 - cairomm 41 56 gobject-introspection 42 57 gtk3 43 - pycairo 44 58 matplotlib 59 + mpfr 60 + numpy 61 + pycairo 45 62 pygobject3 63 + scipy 64 + sparsehash 46 65 ]; 47 66 48 - enableParallelBuilding = false; 49 - 50 67 meta = with lib; { 51 68 description = "Python module for manipulation and statistical analysis of graphs"; 52 - homepage = "https://graph-tool.skewed.de/"; 53 - license = licenses.gpl3; 54 - maintainers = [ maintainers.joelmo ]; 69 + homepage = "https://graph-tool.skewed.de"; 70 + license = licenses.lgpl3Plus; 71 + maintainers = with maintainers; [ ]; 55 72 }; 56 73 }
+34 -32
pkgs/development/python-modules/graphite-web/default.nix
··· 1 - { stdenv 2 - , lib 1 + { lib 2 + , stdenv 3 3 , buildPythonPackage 4 - , fetchPypi 4 + , cairocffi 5 5 , django 6 - , python-memcached 7 - , txamqp 8 6 , django_tagging 7 + , fetchPypi 9 8 , gunicorn 10 - , pytz 11 9 , pyparsing 12 - , cairocffi 10 + , python-memcached 11 + , pythonOlder 12 + , pytz 13 + , six 14 + , txamqp 15 + , urllib3 13 16 , whisper 14 17 , whitenoise 15 - , urllib3 16 - , six 17 18 }: 18 19 19 20 buildPythonPackage rec { 20 21 pname = "graphite-web"; 21 - version = "1.1.8"; 22 + version = "1.1.10"; 23 + format = "setuptools"; 24 + 25 + disabled = pythonOlder "3.7"; 22 26 23 27 src = fetchPypi { 24 28 inherit pname version; 25 - sha256 = "54240b0f1e069b53e2ce92d4e534e21b195fb0ebd64b6ad8a49c44284e3eb0b1"; 29 + hash = "sha256-Pxho1QWo2jJZYAMJx999bbELDVMr7Wp7wsssYPkc01o="; 26 30 }; 27 31 28 - patches = [ 29 - ./update-django-tagging.patch 30 - ]; 31 - 32 - postPatch = '' 33 - # https://github.com/graphite-project/graphite-web/pull/2701 34 - substituteInPlace setup.py \ 35 - --replace "'scandir'" "'scandir; python_version < \"3.5\"'" 36 - ''; 37 - 38 32 propagatedBuildInputs = [ 33 + cairocffi 39 34 django 40 - python-memcached 41 - txamqp 42 35 django_tagging 43 36 gunicorn 37 + pyparsing 38 + python-memcached 44 39 pytz 45 - pyparsing 46 - cairocffi 40 + six 41 + txamqp 42 + urllib3 47 43 whisper 48 44 whitenoise 49 - urllib3 50 - six 51 45 ]; 52 46 47 + postPatch = '' 48 + substituteInPlace setup.py \ 49 + --replace "Django>=1.8,<3.1" "Django" \ 50 + --replace "django-tagging==0.4.3" "django-tagging" 51 + ''; 52 + 53 53 # Carbon-s default installation is /opt/graphite. This env variable ensures 54 - # carbon is installed as a regular python module. 55 - GRAPHITE_NO_PREFIX="True"; 54 + # carbon is installed as a regular Python module. 55 + GRAPHITE_NO_PREFIX = "True"; 56 56 57 57 preConfigure = '' 58 58 substituteInPlace webapp/graphite/settings.py \ 59 59 --replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')" 60 60 ''; 61 61 62 - pythonImportsCheck = [ "graphite" ]; 62 + pythonImportsCheck = [ 63 + "graphite" 64 + ]; 63 65 64 66 meta = with lib; { 65 67 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 66 - homepage = "http://graphiteapp.org/"; 67 68 description = "Enterprise scalable realtime graphing"; 68 - maintainers = with maintainers; [ offline basvandijk ]; 69 + homepage = "http://graphiteapp.org/"; 69 70 license = licenses.asl20; 71 + maintainers = with maintainers; [ offline basvandijk ]; 70 72 }; 71 73 }
-13
pkgs/development/python-modules/graphite-web/update-django-tagging.patch
··· 1 - diff --git a/setup.py b/setup.py 2 - index a1a21f1..f0d1051 100644 3 - --- a/setup.py 4 - +++ b/setup.py 5 - @@ -117,7 +117,7 @@ try: 6 - ['templates/*', 'local_settings.py.example']}, 7 - scripts=glob('bin/*'), 8 - data_files=list(webapp_content.items()) + storage_dirs + conf_files + examples, 9 - - install_requires=['Django>=1.8,<3.1', 'django-tagging==0.4.3', 'pytz', 10 - + install_requires=['Django>=1.8,<3.1', 'django-tagging==0.5.0', 'pytz', 11 - 'pyparsing', 'cairocffi', 'urllib3', 'scandir', 'six'], 12 - classifiers=[ 13 - 'Intended Audience :: Developers',
+14 -6
pkgs/development/python-modules/gyp/default.nix
··· 1 - { lib, stdenv 1 + { lib 2 + , stdenv 2 3 , buildPythonPackage 3 4 , fetchFromGitiles 5 + , six 6 + , python 4 7 }: 5 8 6 9 buildPythonPackage { 7 10 pname = "gyp"; 8 - version = "2020-05-12"; 11 + version = "unstable-2022-04-01"; 9 12 10 13 src = fetchFromGitiles { 11 14 url = "https://chromium.googlesource.com/external/gyp"; 12 - rev = "caa60026e223fc501e8b337fd5086ece4028b1c6"; 13 - sha256 = "0r9phq5yrmj968vdvy9vivli35wn1j9a6iwshp69wl7q4p0x8q2b"; 15 + rev = "9ecf45e37677743503342ee4c6a76eaee80e4a7f"; 16 + hash = "sha256-LUlF2VhRnuDwJLdITgmXIQV/IuKdx1KXQkiPVHKrl4Q="; 14 17 }; 15 18 16 19 patches = lib.optionals stdenv.isDarwin [ ··· 18 21 ./no-xcode.patch 19 22 ]; 20 23 24 + propagatedBuildInputs = [ 25 + six 26 + ]; 27 + 28 + pythonImportsCheck = [ "gyp" "gyp.generator" ]; 29 + 21 30 meta = with lib; { 22 31 description = "A tool to generate native build files"; 23 - homepage = "https://chromium.googlesource.com/external/gyp/+/master/README.md"; 32 + homepage = "https://gyp.gsrc.io"; 24 33 license = licenses.bsd3; 25 34 maintainers = with maintainers; [ codyopel ]; 26 35 }; 27 - 28 36 }
+3 -3
pkgs/development/python-modules/hass-nabucasa/default.nix
··· 25 25 }; 26 26 27 27 postPatch = '' 28 - sed -i 's/"acme.*"/"acme"/' setup.py 29 28 substituteInPlace setup.py \ 30 - --replace "cryptography>=2.8,<4.0" "cryptography" \ 29 + --replace "acme==" "acme>=" \ 30 + --replace "cryptography>=2.8,<37.0" "cryptography" \ 31 + --replace "pycognito==" "pycognito>=" \ 31 32 --replace "snitun==" "snitun>=" \ 32 - --replace "pycognito==2022.01.0" "pycognito" 33 33 ''; 34 34 35 35 propagatedBuildInputs = [
+2
pkgs/development/python-modules/homeconnect/default.nix
··· 4 4 , requests 5 5 , requests-oauthlib 6 6 , pythonOlder 7 + , six 7 8 }: 8 9 9 10 buildPythonPackage rec { ··· 21 22 propagatedBuildInputs = [ 22 23 requests 23 24 requests-oauthlib 25 + six 24 26 ]; 25 27 26 28 # Project has no tests
+5 -3
pkgs/development/python-modules/httpbin/default.nix
··· 11 11 , raven 12 12 , six 13 13 , pytestCheckHook 14 + , werkzeug 14 15 }: 15 16 16 17 buildPythonPackage rec { ··· 34 35 35 36 propagatedBuildInputs = [ 36 37 brotlipy 38 + decorator 37 39 flask 38 40 flask-limiter 39 - markupsafe 40 - decorator 41 41 itsdangerous 42 + markupsafe 42 43 raven 43 44 six 44 - ]; 45 + werkzeug 46 + ] ++ raven.optional-dependencies.flask; 45 47 46 48 checkInputs = [ 47 49 pytestCheckHook
+25 -19
pkgs/development/python-modules/httpcore/default.nix
··· 1 1 { lib 2 - , buildPythonPackage 3 - , pythonOlder 4 - , fetchFromGitHub 5 2 , anyio 3 + , buildPythonPackage 6 4 , certifi 5 + , fetchFromGitHub 7 6 , h11 8 7 , h2 9 8 , pproxy 10 9 , pytest-asyncio 10 + , pytest-httpbin 11 + , pytest-trio 11 12 , pytestCheckHook 12 - , pytest-cov 13 - , pytest-httpbin 13 + , pythonOlder 14 14 , sniffio 15 15 , socksio 16 - , trio 17 - , trustme 18 - , uvicorn 19 16 }: 20 17 21 18 buildPythonPackage rec { 22 19 pname = "httpcore"; 23 - version = "0.14.7"; 24 - disabled = pythonOlder "3.6"; 20 + version = "0.15.0"; 21 + format = "setuptools"; 22 + 23 + disabled = pythonOlder "3.7"; 25 24 26 25 src = fetchFromGitHub { 27 26 owner = "encode"; 28 27 repo = pname; 29 28 rev = version; 30 - sha256 = "sha256-h+3MfP1p/ifN0mF/xxrOKPTjD4Q7WzRh94YO4DYSuXE="; 29 + hash = "sha256-FF3Yzac9nkVcA5bHVOz2ymvOelSfJ0K6oU8UWpBDcmo="; 31 30 }; 32 31 33 32 postPatch = '' ··· 43 42 ]; 44 43 45 44 passthru.optional-dependencies = { 46 - http2 = [ h2 ]; 47 - socks = [ socksio ]; 45 + http2 = [ 46 + h2 47 + ]; 48 + socks = [ 49 + socksio 50 + ]; 48 51 }; 49 52 50 53 checkInputs = [ 51 54 pproxy 52 55 pytest-asyncio 53 - pytestCheckHook 54 - pytest-cov 55 56 pytest-httpbin 56 - trio 57 - trustme 58 - uvicorn 57 + pytest-trio 58 + pytestCheckHook 59 59 ] ++ passthru.optional-dependencies.http2 60 60 ++ passthru.optional-dependencies.socks; 61 61 62 - pythonImportsCheck = [ "httpcore" ]; 62 + pythonImportsCheck = [ 63 + "httpcore" 64 + ]; 65 + 66 + pytestFlagsArray = [ 67 + "--asyncio-mode=strict" 68 + ]; 63 69 64 70 meta = with lib; { 65 71 description = "A minimal low-level HTTP client";
+31 -27
pkgs/development/python-modules/httpx/default.nix
··· 1 1 { lib 2 - , async_generator 2 + , brotli 3 + , brotlicffi 3 4 , buildPythonPackage 4 - , pythonOlder 5 + , certifi 6 + , chardet 7 + , click 5 8 , fetchFromGitHub 6 - , certifi 7 - , charset-normalizer 9 + , h2 8 10 , httpcore 11 + , isPyPy 12 + , pygments 13 + , python 14 + , pythonOlder 9 15 , rfc3986 16 + , rich 10 17 , sniffio 11 - , h2 12 18 , socksio 13 - , isPyPy 14 - , brotli 15 - , brotlicffi 16 - , click 17 - , rich 18 - , pygments 19 - , python 20 19 , pytestCheckHook 21 20 , pytest-asyncio 22 21 , pytest-trio 23 - , typing-extensions 24 22 , trustme 25 23 , uvicorn 26 24 }: 27 25 28 26 buildPythonPackage rec { 29 27 pname = "httpx"; 30 - version = "0.22.0"; 28 + version = "0.23.0"; 31 29 format = "setuptools"; 32 30 33 - disabled = pythonOlder "3.6"; 31 + disabled = pythonOlder "3.7"; 34 32 35 33 src = fetchFromGitHub { 36 34 owner = "encode"; 37 35 repo = pname; 38 36 rev = version; 39 - sha256 = "sha256-hQmQodGpVG23IZSsWV7rB1iB6QAudDao/8YshIgpmas="; 37 + hash = "sha256-s11Yeizm3y3w5D6ACQ2wp/KJ0+1ALY/R71IlTP2pMC4="; 40 38 }; 41 39 42 40 propagatedBuildInputs = [ 43 41 certifi 44 - charset-normalizer 45 42 httpcore 46 43 rfc3986 47 44 sniffio 48 - ] ++ lib.optionals (pythonOlder "3.7") [ 49 - async_generator 50 45 ]; 51 46 52 47 passthru.optional-dependencies = { 53 - http2 = [ h2 ]; 54 - socks = [ socksio ]; 55 - brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; 56 - cli = [ click rich pygments ]; 48 + http2 = [ 49 + h2 50 + ]; 51 + socks = [ 52 + socksio 53 + ]; 54 + brotli = if isPyPy then [ 55 + brotlicffi 56 + ] else [ 57 + brotli 58 + ]; 59 + cli = [ 60 + click 61 + rich 62 + pygments 63 + ]; 57 64 }; 58 65 59 66 checkInputs = [ 67 + chardet 60 68 pytestCheckHook 61 69 pytest-asyncio 62 70 pytest-trio 63 71 trustme 64 - typing-extensions 65 72 uvicorn 66 73 ] ++ passthru.optional-dependencies.http2 67 74 ++ passthru.optional-dependencies.brotli ··· 88 95 # httpcore.ConnectError: [Errno -2] Name or service not known 89 96 "test_async_proxy_close" 90 97 "test_sync_proxy_close" 91 - # sensitive to charset_normalizer output 92 - "iso-8859-1" 93 - "test_response_no_charset_with_iso_8859_1_content" 94 98 ]; 95 99 96 100 disabledTestPaths = [
+10 -1
pkgs/development/python-modules/hyperion-py/default.nix
··· 2 2 , aiohttp 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 + , fetchpatch 5 6 , pytestCheckHook 6 7 , pythonOlder 7 8 , pythonAtLeast ··· 13 14 buildPythonPackage rec { 14 15 pname = "hyperion-py"; 15 16 version = "0.7.5"; 16 - disabled = pythonOlder "3.8" || pythonAtLeast "3.10"; 17 + disabled = pythonOlder "3.8"; 17 18 format = "pyproject"; 18 19 19 20 src = fetchFromGitHub { ··· 22 23 rev = "v${version}"; 23 24 sha256 = "sha256-arcnpCQsRuiWCrAz/t4TCjTe8DRDtRuzYp8k7nnjGDk="; 24 25 }; 26 + 27 + patches = [ 28 + (fetchpatch { 29 + # python3.10 compat: Drop loop kwarg in asyncio.sleep call 30 + url = "https://github.com/dermotduffy/hyperion-py/commit/f02af52fcce17888984c99bfc03935e372011394.patch"; 31 + hash = "sha256-4nfsQVxd77VV9INwNxTyFRDlAjwdTYqfSGuF487hFCs="; 32 + }) 33 + ]; 25 34 26 35 nativeBuildInputs = [ 27 36 poetry-core
+4 -12
pkgs/development/python-modules/hypothesis/default.nix
··· 8 8 , pytestCheckHook 9 9 , pytest-xdist 10 10 , sortedcontainers 11 - , tzdata 12 11 , pythonOlder 13 12 }: 14 - buildPythonPackage rec { 15 - # https://hypothesis.readthedocs.org/en/latest/packaging.html 16 13 17 - # Hypothesis has optional dependencies on the following libraries 18 - # pytz fake_factory django numpy pytest 19 - # If you need these, you can just add them to your environment. 20 - 14 + buildPythonPackage rec { 21 15 pname = "hypothesis"; 22 - version = "6.40.0"; 16 + version = "6.46.10"; 23 17 format = "setuptools"; 24 18 25 19 disabled = pythonOlder "3.7"; 26 20 27 21 src = fetchFromGitHub { 28 22 owner = "HypothesisWorks"; 29 - repo = "hypothesis-python"; 23 + repo = "hypothesis"; 30 24 rev = "hypothesis-python-${version}"; 31 - hash = "sha256-6BC3CTotkMhguueH4NJM8VjbrYhofHqtZEUytcllMwQ="; 25 + hash = "sha256-eQ7Ns0k1hOVw8/xiINMei6GbQqDHXrBl+1v8YQeFO9Q="; 32 26 }; 33 27 34 28 postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; ··· 42 36 pexpect 43 37 pytest-xdist 44 38 pytestCheckHook 45 - ] ++ lib.optional (pythonAtLeast "3.9") [ 46 - tzdata 47 39 ]; 48 40 49 41 inherit doCheck;
+2 -2
pkgs/development/python-modules/imageio/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "imageio"; 19 - version = "2.16.1"; 19 + version = "2.19.2"; 20 20 disabled = isPy27; 21 21 22 22 src = fetchPypi { 23 - sha256 = "sha256-fxI8sjp3rFq+jtTnrWpggxqC3ixdEjRj3PHUJ4xHedI="; 23 + sha256 = "sha256-RuHnQSiDfSoevIdHa39zl4tpoSj6I4vJibYlqYGb2bM="; 24 24 inherit pname version; 25 25 }; 26 26
+9 -5
pkgs/development/python-modules/immutables/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "immutables"; 12 - version = "0.17"; 12 + version = "0.18"; 13 + format = "setuptools"; 14 + 13 15 disabled = pythonOlder "3.6"; 14 16 15 17 src = fetchFromGitHub { 16 18 owner = "MagicStack"; 17 19 repo = pname; 18 20 rev = "v${version}"; 19 - sha256 = "sha256-4VuB8eTWHD4hEDj11u/talfv38h2BhogSZmEVyUtnko="; 21 + hash = "sha256-lXCoPTcpTOv9K0xCVjbrP3qlzP9tfk/e3Rk3oOmbS/Y="; 20 22 }; 21 23 22 - propagatedBuildInputs = [ 24 + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ 23 25 typing-extensions 24 26 ]; 25 27 ··· 33 35 "testMypyImmu" 34 36 ]; 35 37 36 - pythonImportsCheck = [ "immutables" ]; 38 + pythonImportsCheck = [ 39 + "immutables" 40 + ]; 37 41 38 42 meta = with lib; { 39 - description = "An immutable mapping type for Python"; 43 + description = "An immutable mapping type"; 40 44 homepage = "https://github.com/MagicStack/immutables"; 41 45 license = with licenses; [ asl20 ]; 42 46 maintainers = with maintainers; [ catern ];
+41 -23
pkgs/development/python-modules/intake/default.nix
··· 6 6 , entrypoints 7 7 , fetchFromGitHub 8 8 , fsspec 9 - , holoviews 10 9 , hvplot 11 10 , intake-parquet 12 11 , jinja2 ··· 27 26 28 27 buildPythonPackage rec { 29 28 pname = "intake"; 30 - version = "0.6.4"; 29 + version = "0.6.5"; 30 + format = "setuptools"; 31 31 32 32 disabled = pythonOlder "3.7"; 33 33 ··· 35 35 owner = pname; 36 36 repo = pname; 37 37 rev = version; 38 - sha256 = "194cdd6lx92zcpkn3wgm490kxvw0c58ziix8hcihsr5ayfr1wdsl"; 38 + hash = "sha256-ABMXWUVptpOSPB1jQ57iXk/UG92puNCICzXo3ZMG2Pk="; 39 39 }; 40 40 41 41 propagatedBuildInputs = [ 42 42 appdirs 43 - bokeh 44 43 dask 45 44 entrypoints 46 45 fsspec 47 - holoviews 48 - hvplot 49 - jinja2 50 46 msgpack 51 - msgpack-numpy 52 - numpy 47 + jinja2 53 48 pandas 54 - panel 55 - pyarrow 56 - python-snappy 57 49 pyyaml 58 - requests 59 - tornado 60 50 ]; 61 51 62 52 checkInputs = [ 63 53 intake-parquet 64 54 pytestCheckHook 65 - ]; 55 + ] ++ passthru.optional-dependencies.server; 56 + 57 + passthru.optional-dependencies = { 58 + server = [ 59 + msgpack 60 + python-snappy 61 + tornado 62 + ]; 63 + dataframe = [ 64 + msgpack-numpy 65 + pyarrow 66 + ]; 67 + plot = [ 68 + hvplot 69 + bokeh 70 + panel 71 + ]; 72 + remote = [ 73 + requests 74 + ]; 75 + }; 66 76 67 77 postPatch = '' 68 78 substituteInPlace setup.py \ 69 79 --replace "'pytest-runner'" "" 70 80 ''; 71 81 72 - # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball 73 - # test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball 74 82 preCheck = '' 75 - HOME=$TMPDIR 76 - PATH=$out/bin:$PATH 83 + export HOME=$(mktemp -d); 84 + export PATH="$PATH:$out/bin"; 77 85 ''; 78 86 79 87 disabledTests = [ 80 - # Disable tests which touch network and are broken 88 + # Disable tests which touch network 89 + "http" 90 + "test_dir" 81 91 "test_discover" 82 92 "test_filtered_compressed_cache" 93 + "test_flatten_flag" 83 94 "test_get_dir" 84 - "test_remote_cat" 85 - "http" 95 + "test_pagination" 96 + "test_read_part_compressed" 97 + "test_read_partition" 86 98 "test_read_pattern" 87 99 "test_remote_arr" 88 - "test_flatten_flag" 100 + "test_remote_cat" 101 + # ValueError 102 + "test_mlist_parameter" 103 + # ImportError 104 + "test_dataframe" 105 + "test_ndarray" 106 + "test_python" 89 107 # Timing-based, flaky on darwin and possibly others 90 108 "TestServerV1Source.test_idle_timer" 91 109 ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [
+29 -9
pkgs/development/python-modules/jsonpatch/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchPypi 3 + , fetchFromGitHub 4 4 , jsonpointer 5 + , pytestCheckHook 6 + , pythonOlder 5 7 }: 6 8 7 9 buildPythonPackage rec { 8 10 pname = "jsonpatch"; 9 11 version = "1.32"; 12 + format = "setuptools"; 10 13 11 - src = fetchPypi { 12 - inherit pname version; 13 - sha256 = "b6ddfe6c3db30d81a96aaeceb6baf916094ffa23d7dd5fa2c13e13f8b6e600c2"; 14 + disabled = pythonOlder "3.7"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "stefankoegl"; 18 + repo = "python-json-patch"; 19 + rev = "v${version}"; 20 + hash = "sha256-JMGBgYjnjHQ5JpzDwJcR2nVZfzmQ8ZZtcB0GsJ9Q4Jc="; 14 21 }; 15 22 16 - # test files are missing 17 - doCheck = false; 18 - propagatedBuildInputs = [ jsonpointer ]; 23 + propagatedBuildInputs = [ 24 + jsonpointer 25 + ]; 26 + 27 + checkInputs = [ 28 + pytestCheckHook 29 + ]; 30 + 31 + pythonImportsCheck = [ 32 + "jsonpatch" 33 + ]; 19 34 20 - meta = { 35 + pytestFlagsArray = [ 36 + "tests.py" 37 + ]; 38 + 39 + meta = with lib; { 21 40 description = "Library to apply JSON Patches according to RFC 6902"; 22 41 homepage = "https://github.com/stefankoegl/python-json-patch"; 23 - license = lib.licenses.bsd2; # "Modified BSD license, says pypi" 42 + license = licenses.bsd2; # "Modified BSD license, says pypi" 43 + maintainers = with maintainers; [ ]; 24 44 }; 25 45 }
+6 -6
pkgs/development/python-modules/jsonschema/default.nix
··· 2 2 , attrs 3 3 , buildPythonPackage 4 4 , fetchPypi 5 + , hatch-vcs 6 + , hatchling 5 7 , importlib-metadata 6 8 , importlib-resources 7 9 , pyrsistent 8 10 , pythonOlder 9 - , setuptools-scm 10 11 , twisted 11 12 , typing-extensions 12 13 }: 13 14 14 15 buildPythonPackage rec { 15 16 pname = "jsonschema"; 16 - version = "4.5.1"; 17 + version = "4.6.0"; 17 18 format = "pyproject"; 18 19 19 20 disabled = pythonOlder "3.7"; 20 21 21 22 src = fetchPypi { 22 23 inherit pname version; 23 - sha256 = "sha256-fG2IJhk0DDNHob9zFeFH5tPa5DkDOuY4PWrLkIwQHfw="; 24 + sha256 = "sha256-nWOXukpsC/AwBzYFf2SePhLsvAfT6BoNrLct5OmAGVc="; 24 25 }; 25 26 26 27 postPatch = '' 27 28 patchShebangs json/bin/jsonschema_suite 28 29 ''; 29 30 30 - SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 - 32 31 nativeBuildInputs = [ 33 - setuptools-scm 32 + hatch-vcs 33 + hatchling 34 34 ]; 35 35 36 36 propagatedBuildInputs = [
+6 -9
pkgs/development/python-modules/libcst/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , buildPythonPackage 4 - , dataclasses 5 4 , fetchFromGitHub 6 5 , hypothesis 7 6 , libiconv ··· 18 17 19 18 buildPythonPackage rec { 20 19 pname = "libcst"; 21 - version = "0.4.1"; 20 + version = "0.4.3"; 22 21 format = "pyproject"; 23 22 24 - disabled = pythonOlder "3.6"; 23 + disabled = pythonOlder "3.7"; 25 24 26 25 src = fetchFromGitHub { 27 26 owner = "instagram"; 28 27 repo = pname; 29 28 rev = "v${version}"; 30 - sha256 = "sha256-soAlt1KBpCn5JxM1b2LZ3vOpBn9HPGdbm+BBYbyEkfE="; 29 + sha256 = "sha256-Lm62rVL5f+fu4KzOQMroM0Eu27l5v2dkGtRiIVPFNhg="; 31 30 }; 32 31 33 32 cargoDeps = rustPlatform.fetchCargoTarball { 34 33 inherit src; 35 34 sourceRoot = "source/${cargoRoot}"; 36 35 name = "${pname}-${version}"; 37 - hash = "sha256:1rz1c0dv3f1h2m5hwdisl3rbqnmifbva4f0c4vygk7rh1q27l515"; 36 + hash = "sha256-i5BYYiILadKEPIJOaWdG1lZNSHfNQnwmc5j0D1jg/kc="; 38 37 }; 39 38 40 39 cargoRoot = "native"; ··· 56 55 buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; 57 56 58 57 propagatedBuildInputs = [ 59 - hypothesis 60 58 typing-extensions 61 59 typing-inspect 62 60 pyyaml 63 - ] ++ lib.optional (pythonOlder "3.7") [ 64 - dataclasses 65 61 ]; 66 62 67 63 checkInputs = [ 64 + hypothesis 68 65 pytestCheckHook 69 66 ]; 70 67 ··· 88 85 description = "Concrete Syntax Tree (CST) parser and serializer library for Python"; 89 86 homepage = "https://github.com/Instagram/libcst"; 90 87 license = with licenses; [ mit asl20 psfl ]; 91 - maintainers = with maintainers; [ ruuda SuperSandro2000 ]; 88 + maintainers = with maintainers; [ SuperSandro2000 ]; 92 89 }; 93 90 }
+2 -5
pkgs/development/python-modules/limits/default.nix
··· 17 17 18 18 buildPythonPackage rec { 19 19 pname = "limits"; 20 - version = "2.6.2"; 20 + version = "2.6.3"; 21 21 format = "setuptools"; 22 22 23 23 disabled = pythonOlder "3.7"; ··· 32 32 postFetch = '' 33 33 rm "$out/limits/_version.py" 34 34 ''; 35 - hash = "sha256-1TfwGxEgf6LFYSaNLyVRtJVOnTVNxvswoKMFNWrNOv0="; 35 + hash = "sha256-YAuq8QycQ55emU2S0rQHxdHCD+jSRmzUKeYFdrV9NzM="; 36 36 }; 37 37 38 38 propagatedBuildInputs = [ ··· 56 56 substituteInPlace pytest.ini \ 57 57 --replace "--cov=limits" "" \ 58 58 --replace "-K" "" 59 - # redis-py-cluster doesn't support redis > 4 60 - substituteInPlace tests/conftest.py \ 61 - --replace "import rediscluster" "" 62 59 63 60 # Recreate _version.py, deleted at fetch time due to non-reproducibility. 64 61 echo 'def get_versions(): return {"version": "${version}"}' > limits/_version.py
+15 -6
pkgs/development/python-modules/locket/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, pytest }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + }: 2 6 3 7 buildPythonPackage rec { 4 8 pname = "locket"; 5 - version = "0.2.1"; 9 + version = "1.0.0"; 10 + format = "setuptools"; 11 + 12 + disabled = pythonOlder "3.7"; 6 13 7 14 src = fetchPypi { 8 15 inherit pname version; 9 - sha256 = "3e1faba403619fe201552f083f1ecbf23f550941bc51985ac6ed4d02d25056dd"; 16 + hash = "sha256-XA1MBSqLu/dQ4Fao5lzNMJCG9PDxii6sMGqN+kESpjI="; 10 17 }; 11 - 12 - buildInputs = [ pytest ]; 13 18 14 19 # weird test requirements (spur.local>=0.3.7,<0.4) 15 20 doCheck = false; 16 21 22 + pythonImportsCheck = [ 23 + "locket" 24 + ]; 25 + 17 26 meta = with lib; { 18 - description = "Locket implements a lock that can be used by multiple processes provided they use the same path."; 27 + description = "Library which provides a lock that can be used by multiple processes"; 19 28 homepage = "https://github.com/mwilliamson/locket.py"; 20 29 license = licenses.bsd2; 21 30 maintainers = with maintainers; [ teh ];
+2 -2
pkgs/development/python-modules/lxml/default.nix
··· 8 8 9 9 buildPythonPackage rec { 10 10 pname = "lxml"; 11 - version = "4.8.0"; 11 + version = "4.9.0"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = pname; 15 15 repo = pname; 16 16 rev = "lxml-${version}"; 17 - sha256 = "sha256-ppyLn8B0YFQivRCOE8TjKGdDDQHbb7UdTUkevznoVC8="; 17 + sha256 = "sha256-3bPyfsiJGDNB0MPw4OhATRnsM3I8ThZwvPWI+easgNo="; 18 18 }; 19 19 20 20 # setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs
+9
pkgs/development/python-modules/m2r/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 + , fetchpatch 3 4 , fetchPypi 4 5 , docutils 5 6 , mistune ··· 14 15 inherit pname version; 15 16 sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99"; 16 17 }; 18 + 19 + patches = [ 20 + # fix tests in python 3.10 21 + (fetchpatch { 22 + url = "https://github.com/miyakogi/m2r/commit/58ee9cabdadf5e3deb13037f3052238f0f2bffcd.patch"; 23 + sha256 = "sha256-CN3PWmnk7xsn1wngRHuEWmDTP3HtVNxkFv0xzD2Zjlo="; 24 + }) 25 + ]; 17 26 18 27 postPatch = '' 19 28 substituteInPlace tests/test_cli.py \
+8 -2
pkgs/development/python-modules/moto/default.nix
··· 16 16 , idna 17 17 , jinja2 18 18 , jsondiff 19 + , openapi-spec-validator 19 20 , python-dateutil 20 21 , python-jose 21 22 , pytz ··· 35 36 36 37 buildPythonPackage rec { 37 38 pname = "moto"; 38 - version = "3.1.3"; 39 + version = "3.1.11"; 39 40 format = "setuptools"; 40 41 41 42 disabled = pythonOlder "3.6"; 42 43 43 44 src = fetchPypi { 44 45 inherit pname version; 45 - sha256 = "sha256-+kgVlfVhHZ/r2vCg0Skwe1433mh2w30DXO7+Rs59isA="; 46 + sha256 = "sha256-GwxHL0t0AXdakuY/vPomESoA4Ie59u3aEiAqOcYsYYE="; 46 47 }; 47 48 48 49 propagatedBuildInputs = [ ··· 58 59 idna 59 60 jinja2 60 61 jsondiff 62 + openapi-spec-validator 61 63 python-dateutil 62 64 python-jose 63 65 pytz ··· 94 96 "--deselect=tests/test_iotdata/test_iotdata.py::test_delete_field_from_device_shadow" 95 97 "--deselect=tests/test_iotdata/test_iotdata.py::test_publish" 96 98 "--deselect=tests/test_s3/test_server.py::test_s3_server_bucket_versioning" 99 + 100 + # Disalbe test that require docker daemon 101 + "--deselect=tests/test_events/test_events_lambdatriggers_integration.py::test_creating_bucket__invokes_lambda" 102 + "--deselect=tests/test_s3/test_s3_lambda_integration.py::test_objectcreated_put__invokes_lambda" 97 103 98 104 # json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 99 105 "--deselect=tests/test_cloudformation/test_cloudformation_stack_integration.py::test_lambda_function"
+14 -4
pkgs/development/python-modules/msgpack/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchPypi 4 4 , pytestCheckHook 5 + , pythonOlder 5 6 , setuptools 6 7 }: 7 8 8 9 buildPythonPackage rec { 9 10 pname = "msgpack"; 10 - version = "1.0.3"; 11 + version = "1.0.4"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.6"; 11 15 12 16 src = fetchPypi { 13 17 inherit pname version; 14 - sha256 = "51fdc7fb93615286428ee7758cecc2f374d5ff363bdd884c7ea622a7a327a81e"; 18 + hash = "sha256-9dhpwY8DAgLrQS8Iso0q/upVPWYTruieIA16yn7wH18="; 15 19 }; 16 20 17 21 nativeBuildInputs = [ 18 22 setuptools 19 23 ]; 20 24 21 - checkInputs = [ pytestCheckHook ]; 25 + checkInputs = [ 26 + pytestCheckHook 27 + ]; 28 + 29 + pythonImportsCheck = [ 30 + "msgpack" 31 + ]; 22 32 23 33 meta = with lib; { 34 + description = "MessagePack serializer implementation"; 24 35 homepage = "https://github.com/msgpack/msgpack-python"; 25 - description = "MessagePack serializer implementation for Python"; 26 36 changelog = "https://github.com/msgpack/msgpack-python/blob/master/ChangeLog.rst"; 27 37 license = licenses.asl20; 28 38 maintainers = with maintainers; [ SuperSandro2000 ];
+12 -5
pkgs/development/python-modules/netifaces/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , pythonOlder 4 5 }: 5 6 6 7 buildPythonPackage rec { 7 8 version = "0.11.0"; 8 9 pname = "netifaces"; 10 + format = "setuptools"; 11 + 12 + disabled = pythonOlder "3.7"; 9 13 10 14 src = fetchPypi { 11 15 inherit pname version; 12 - sha256 = "043a79146eb2907edf439899f262b3dfe41717d34124298ed281139a8b93ca32"; 16 + hash = "sha256-BDp5FG6ykH7fQ5iZ8mKz3+QXF9NBJCmO0oETmouTyjI="; 13 17 }; 14 18 15 - doCheck = false; # no tests implemented 19 + # No tests implemented 20 + doCheck = false; 16 21 17 - pythonImportsCheck = [ "netifaces" ]; 22 + pythonImportsCheck = [ 23 + "netifaces" 24 + ]; 18 25 19 26 meta = with lib; { 20 - homepage = "https://alastairs-place.net/projects/netifaces/"; 21 27 description = "Portable access to network interfaces from Python"; 28 + homepage = "https://github.com/al45tair/netifaces"; 22 29 license = licenses.mit; 30 + maintainers = with maintainers; [ ]; 23 31 }; 24 - 25 32 }
+6 -7
pkgs/development/python-modules/networkx/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchPypi 4 4 , nose 5 - , pytest 5 + , pytestCheckHook 6 6 , decorator 7 7 , setuptools 8 + , pythonOlder 8 9 }: 9 10 10 11 buildPythonPackage rec { 11 12 pname = "networkx"; 12 13 # upgrade may break sage, please test the sage build or ping @timokau on upgrade 13 - version = "2.7.1"; 14 + version = "2.8.2"; 15 + disabled = pythonOlder "3.8"; 14 16 15 17 src = fetchPypi { 16 18 inherit pname version; 17 - sha256 = "sha256-0RlLp1Pl7tB83s0dI8XNejx3IJm9jb0v6jZniM9N57o="; 19 + sha256 = "sha256-rpnJsNNeW0pizxz+oB5bNjPY0C9KDq1paFtufeW4Xqs="; 18 20 }; 19 21 20 22 propagatedBuildInputs = [ decorator setuptools ]; 21 - checkInputs = [ nose pytest]; 22 - checkPhase = '' 23 - pytest 24 - ''; 23 + checkInputs = [ nose pytestCheckHook ]; 25 24 26 25 meta = { 27 26 homepage = "https://networkx.github.io/";
+1 -1
pkgs/development/python-modules/nose_progressive/default.nix
··· 24 24 doCheck = !isPy3k; 25 25 26 26 meta = with lib; { 27 - broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 28 27 homepage = "https://github.com/erikrose/nose-progressive"; 29 28 description = "A testrunner with a progress bar and smarter tracebacks"; 30 29 license = licenses.mit; 31 30 maintainers = with maintainers; [ domenkozar ]; 31 + broken = true; # relies on 2to3 conversion, which was removed from setuptools>=58.0 32 32 }; 33 33 34 34 }
+2 -2
pkgs/development/python-modules/numpy/default.nix
··· 44 44 # Attention! v1.22.0 breaks scipy and by extension scikit-learn, so 45 45 # build both to verify they don't break. 46 46 # https://github.com/scipy/scipy/issues/15414 47 - version = "1.21.5"; 47 + version = "1.21.6"; 48 48 49 49 format = "pyproject.toml"; 50 50 disabled = pythonOlder "3.7"; ··· 52 52 src = fetchPypi { 53 53 inherit pname version; 54 54 extension = "zip"; 55 - sha256 = "sha256-alkovGJBJk3OXtUJ5m8zZ2/Jf0ZOepGe3GcvtVMiIe4="; 55 + sha256 = "sha256-7LVSUROXBmaf3sL/BzyY746ahEc+UecWIRtBqg8Y5lY="; 56 56 }; 57 57 58 58 patches = lib.optionals python.hasDistutilsCxxPatch [
-21
pkgs/development/python-modules/ordereddict/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 - }: 5 - 6 - buildPythonPackage rec { 7 - pname = "ordereddict"; 8 - version = "1.1"; 9 - 10 - src = fetchPypi { 11 - inherit pname version; 12 - sha256 = "07qvy11nvgxpzarrni3wrww3vpc9yafgi2bch4j2vvvc42nb8d8w"; 13 - }; 14 - 15 - meta = with lib; { 16 - description = "A drop-in substitute for Py2.7's new collections.OrderedDict that works in Python 2.4-2.6"; 17 - license = licenses.bsd3; 18 - maintainers = with maintainers; [ ]; 19 - }; 20 - 21 - }
+3 -3
pkgs/development/python-modules/osmnx/default.nix
··· 3 3 4 4 buildPythonPackage rec { 5 5 pname = "osmnx"; 6 - version = "1.1.2"; 7 - disabled = pythonOlder "3.6"; 6 + version = "1.2.0"; 7 + disabled = pythonOlder "3.8"; 8 8 9 9 src = fetchFromGitHub { 10 10 owner = "gboeing"; 11 11 repo = pname; 12 12 rev = "v${version}"; 13 - sha256 = "sha256-qrTAXZFm88elMrVjvGwfdNwTA/PRdCOHFqpcgoKVGNk="; 13 + sha256 = "sha256-HfgMmPEiKstMXV0rtul8QLxB1FY32Ws7IEonBB+qZOc="; 14 14 }; 15 15 16 16 propagatedBuildInputs = [ geopandas matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy gdal rasterio ];
+3 -2
pkgs/development/python-modules/pbr/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "pbr"; 10 - version = "5.8.1"; 10 + version = "5.9.0"; 11 11 12 12 src = fetchPypi { 13 13 inherit pname version; 14 - sha256 = "sha256-ZrxaNJEvQIuzklvyEjHLb1kgYme39j81A++GXBopLiU="; 14 + sha256 = "sha256-6Nyi9LQ1YO3vWIE5afUqVs7wIxRsu4kxYm24DmwcQwg="; 15 15 }; 16 16 17 + # importlib-metadata could be added here if it wouldn't cause an infinite recursion 17 18 propagatedBuildInputs = [ setuptools ]; 18 19 19 20 # check in passthru.tests.pytest to escape infinite recursion with fixtures
+8 -4
pkgs/development/python-modules/pefile/default.nix
··· 8 8 9 9 buildPythonPackage rec { 10 10 pname = "pefile"; 11 - version = "2021.9.3"; 11 + version = "2022.5.30"; 12 + format = "setuptools"; 13 + 12 14 disabled = pythonOlder "3.6"; 13 15 14 16 src = fetchFromGitHub { 15 17 owner = "erocarrera"; 16 18 repo = pname; 17 19 rev = "v${version}"; 18 - sha256 = "0sr17rmqpr874m8rpkp8xdz8kjshhimbfgq13qy4lscaiznmlf0d"; 20 + hash = "sha256-Cv20hJsErHFSuS5Q1kqLNp4DAsPXv/eFhaU9oYECSeI="; 19 21 }; 20 22 21 23 nativeBuildInputs = [ ··· 29 31 # Test data encrypted 30 32 doCheck = false; 31 33 32 - pythonImportsCheck = [ "pefile" ]; 34 + pythonImportsCheck = [ 35 + "pefile" 36 + ]; 33 37 34 38 meta = with lib; { 35 39 description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files"; 36 40 homepage = "https://github.com/erocarrera/pefile"; 37 41 license = licenses.mit; 38 - maintainers = [ maintainers.pamplemousse ]; 42 + maintainers = with maintainers; [ pamplemousse ]; 39 43 }; 40 44 }
+5
pkgs/development/python-modules/pgpy/default.nix
··· 25 25 pytestCheckHook 26 26 ]; 27 27 28 + disabledTests = [ 29 + # assertions contains extra: IDEA has been deprecated 30 + "test_encrypt_bad_cipher" 31 + ]; 32 + 28 33 meta = with lib; { 29 34 homepage = "https://github.com/SecurityInnovation/PGPy"; 30 35 description = "Pretty Good Privacy for Python 2 and 3";
+2 -2
pkgs/development/python-modules/pillow/default.nix
··· 12 12 13 13 import ./generic.nix (rec { 14 14 pname = "pillow"; 15 - version = "9.1.0"; 15 + version = "9.1.1"; 16 16 17 17 disabled = pythonOlder "3.7"; 18 18 19 19 src = fetchPypi { 20 20 pname = "Pillow"; 21 21 inherit version; 22 - sha256 = "f401ed2bbb155e1ade150ccc63db1a4f6c1909d3d378f7d1235a44e90d75fb97"; 22 + sha256 = "sha256-dQJTmTm1PXVl89Edh8eOfskA08cpRdTuDi8lDVmDCaA="; 23 23 }; 24 24 25 25 passthru.tests = {
+8 -5
pkgs/development/python-modules/pure-eval/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , isPy3k 3 + , pythonOlder 4 4 , fetchFromGitHub 5 5 , setuptools-scm 6 6 , toml ··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "pure_eval"; 12 - version = "0.2.1"; 12 + version = "0.2.2"; 13 + format = "setuptools"; 13 14 14 - disabled = !isPy3k; 15 + disabled = pythonOlder "3.7"; 15 16 16 17 src = fetchFromGitHub { 17 18 owner = "alexmojaki"; 18 19 repo = pname; 19 20 rev = "v${version}"; 20 - sha256 = "sha256-+Vucu16NFPtQ23AbBH/cQU+klxp6DMicSScbnKegLZI="; 21 + hash = "sha256-9N+UcgAv30s4ctgsBrOHiix4BoXhKPgxH/GOz/NIFdU="; 21 22 }; 22 23 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; ··· 34 35 pytestCheckHook 35 36 ]; 36 37 37 - pythonImportsCheck = [ "pure_eval" ]; 38 + pythonImportsCheck = [ 39 + "pure_eval" 40 + ]; 38 41 39 42 meta = with lib; { 40 43 description = "Safely evaluate AST nodes without side effects";
+21 -13
pkgs/development/python-modules/pyannotate/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , mypy-extensions 5 + , pytestCheckHook 4 6 , pythonOlder 5 7 , six 6 - , mypy-extensions 7 - , typing 8 - , pytest 9 8 }: 10 9 11 10 buildPythonPackage rec { 11 + pname = "pyannotate"; 12 12 version = "1.2.0"; 13 - pname = "pyannotate"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 14 16 15 17 src = fetchPypi { 16 18 inherit pname version; 17 - sha256 = "16bm0mf7wxvy0lgmcs1p8n1ji8pnvj1jvj8zk3am70dkp825iv84"; 19 + hash = "sha256-BO1YBLqzgVPVmB/JLYPc9qIog0U3aFYfBX53flwFdZk="; 18 20 }; 19 21 20 - checkInputs = [ pytest ]; 21 - propagatedBuildInputs = [ six mypy-extensions ] 22 - ++ lib.optionals (pythonOlder "3.5") [ typing ]; 22 + propagatedBuildInputs = [ 23 + six 24 + mypy-extensions 25 + ]; 23 26 24 - checkPhase = '' 25 - py.test 26 - ''; 27 + checkInputs = [ 28 + pytestCheckHook 29 + ]; 30 + 31 + pythonImportsCheck = [ 32 + "pyannotate_runtime" 33 + "pyannotate_tools" 34 + ]; 27 35 28 36 meta = with lib; { 29 - homepage = "https://github.com/dropbox/pyannotate"; 30 37 description = "Auto-generate PEP-484 annotations"; 38 + homepage = "https://github.com/dropbox/pyannotate"; 31 39 license = licenses.mit; 32 - maintainers = [ maintainers.costrouc ]; 40 + maintainers = with maintainers; [ costrouc ]; 33 41 }; 34 42 }
+30 -7
pkgs/development/python-modules/pyarrow/default.nix
··· 2 2 , stdenv 3 3 , buildPythonPackage 4 4 , python 5 - , isPy3k 5 + , pythonOlder 6 6 , arrow-cpp 7 7 , cffi 8 8 , cloudpickle ··· 28 28 29 29 buildPythonPackage rec { 30 30 pname = "pyarrow"; 31 - disabled = !isPy3k; 31 + inherit (_arrow-cpp) version src; 32 32 33 - inherit (_arrow-cpp) version src; 33 + disabled = pythonOlder "3.7"; 34 34 35 35 sourceRoot = "apache-arrow-${version}/python"; 36 36 37 - nativeBuildInputs = [ cmake cython pkg-config setuptools-scm ]; 38 - propagatedBuildInputs = [ numpy six cloudpickle scipy fsspec cffi ]; 37 + nativeBuildInputs = [ 38 + cmake 39 + cython 40 + pkg-config 41 + setuptools-scm 42 + ]; 43 + 44 + propagatedBuildInputs = [ 45 + cffi 46 + cloudpickle 47 + fsspec 48 + numpy 49 + scipy 50 + six 51 + ]; 52 + 39 53 checkInputs = [ 40 54 hypothesis 41 55 pandas ··· 62 76 ARROW_TEST_DATA = lib.optionalString doCheck _arrow-cpp.ARROW_TEST_DATA; 63 77 64 78 doCheck = true; 79 + 65 80 dontUseCmakeConfigure = true; 66 81 67 82 preBuild = '' ··· 80 95 "--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws" 81 96 "--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws_region_selection" 82 97 "--deselect=pyarrow/tests/test_fs.py::test_s3_options" 98 + # Flaky test 99 + "--deselect=pyarrow/tests/test_flight.py::test_roundtrip_errors" 100 + "--deselect=pyarrow/tests/test_pandas.py::test_threaded_pandas_import" 83 101 ] ++ lib.optionals stdenv.isDarwin [ 84 102 # Requires loopback networking 85 103 "--deselect=pyarrow/tests/test_ipc.py::test_socket_" ··· 90 108 ]; 91 109 92 110 dontUseSetuptoolsCheck = true; 111 + 93 112 preCheck = '' 94 113 shopt -s extglob 95 114 rm -r pyarrow/!(tests) ··· 98 117 ulimit -n 1024 99 118 ''; 100 119 101 - pythonImportsCheck = [ "pyarrow" ] ++ map (module: "pyarrow.${module}") ([ 120 + pythonImportsCheck = [ 121 + "pyarrow" 122 + ] ++ map (module: "pyarrow.${module}") ([ 102 123 "compute" 103 124 "csv" 104 125 "dataset" ··· 108 129 "hdfs" 109 130 "json" 110 131 "parquet" 111 - ] ++ lib.optionals (!stdenv.isDarwin) [ "plasma" ]); 132 + ] ++ lib.optionals (!stdenv.isDarwin) [ 133 + "plasma" 134 + ]); 112 135 113 136 meta = with lib; { 114 137 description = "A cross-language development platform for in-memory data";
+6 -6
pkgs/development/python-modules/pyathena/default.nix
··· 1 1 { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 2 , boto3 5 3 , botocore 4 + , buildPythonPackage 5 + , fetchPypi 6 6 , pandas 7 + , pythonOlder 7 8 , tenacity 8 - , pythonOlder 9 9 }: 10 10 11 11 buildPythonPackage rec { 12 12 pname = "pyathena"; 13 - version = "2.5.2"; 13 + version = "2.9.1"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.7"; ··· 18 18 src = fetchPypi { 19 19 pname = "PyAthena"; 20 20 inherit version; 21 - sha256 = "sha256-vjoK6lEitvd5vqSEE/ael8q00O05lquKIviFK/bPlVQ="; 21 + hash = "sha256-b1JdJhSe4ezKN4afZexwc/YT7OM9nIXHK7ca6nYRGnY="; 22 22 }; 23 23 24 24 propagatedBuildInputs = [ ··· 38 38 ]; 39 39 40 40 meta = with lib; { 41 + description = "Python DB API 2.0 (PEP 249) client for Amazon Athena"; 41 42 homepage = "https://github.com/laughingman7743/PyAthena/"; 42 43 license = licenses.mit; 43 - description = "Python DB API 2.0 (PEP 249) client for Amazon Athena"; 44 44 maintainers = with maintainers; [ turion ]; 45 45 }; 46 46 }
+2 -2
pkgs/development/python-modules/pybase64/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "pybase64"; 10 - version = "1.2.1"; 10 + version = "1.2.2"; 11 11 12 12 disabled = pythonOlder "3.6"; 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; 16 - sha256 = "d2016a3a487d3d4501d8281f61ee54c25efd65e37a4c7dce8011e0de7183c956"; 16 + sha256 = "sha256-vv2YOlp7ZVE1W2q+VnI/f58SxYDgLxJreIOwdb6/8lw="; 17 17 }; 18 18 19 19 checkInputs = [ pytestCheckHook ];
+10 -4
pkgs/development/python-modules/pyelftools/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , buildPythonPackage 3 4 , fetchFromGitHub 4 5 , python 5 - , stdenv 6 + , pythonOlder 6 7 }: 7 8 8 9 buildPythonPackage rec { 9 10 pname = "pyelftools"; 10 - version = "0.27"; 11 + version = "0.28"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 11 15 12 16 src = fetchFromGitHub { 13 17 owner = "eliben"; 14 18 repo = pname; 15 19 rev = "v${version}"; 16 - sha256 = "09igdym2qj2fvfcazbz25qybmgz7ccrn25xn3havfkdkka0z0i3p"; 20 + hash = "sha256-+T5C0ah2oj5E8fWaQbuzYRVgD5bSiUbaArrlxNLojvw="; 17 21 }; 18 22 19 23 doCheck = stdenv.hostPlatform.system == "x86_64-linux"; ··· 23 27 ${python.interpreter} test/all_tests.py 24 28 ''; 25 29 26 - pythonImportsCheck = [ "elftools" ]; 30 + pythonImportsCheck = [ 31 + "elftools" 32 + ]; 27 33 28 34 meta = with lib; { 29 35 description = "Python library for analyzing ELF files and DWARF debugging information";
+14 -28
pkgs/development/python-modules/pygal/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , fetchpatch 5 - , isPyPy 6 - , flask 4 + , lxml 5 + , cairosvg 7 6 , pyquery 8 - , pytest 9 - , pytest-runner 10 - , cairosvg 11 - , tinycss 12 - , cssselect 13 - , lxml 7 + , pytestCheckHook 14 8 }: 15 9 16 10 buildPythonPackage rec { 17 11 pname = "pygal"; 18 12 version = "3.0.0"; 19 - 20 - doCheck = !isPyPy; # one check fails with pypy 21 13 22 14 src = fetchPypi { 23 15 inherit pname version; 24 16 sha256 = "sha256-KSP5XS5RWTCqWplyGdzO+/PZK36vX8HJ/ruVsJk1/bI="; 25 17 }; 26 18 27 - buildInputs = [ 28 - flask 29 - pyquery 19 + postPatch = '' 20 + substituteInPlace setup.py \ 21 + --replace pytest-runner "" 22 + ''; 30 23 31 - # Should be a check input, but upstream lists it under "setup_requires". 32 - # https://github.com/Kozea/pygal/issues/430 33 - pytest-runner 34 - ]; 24 + passthru.optional-dependencies = { 25 + lxml = [ lxml ]; 26 + png = [ cairosvg ]; 27 + }; 35 28 36 29 checkInputs = [ 37 - pytest 38 - ]; 30 + pyquery 31 + pytestCheckHook 32 + ] ++ passthru.optional-dependencies.png; 39 33 40 34 preCheck = '' 41 35 # necessary on darwin to pass the testsuite 42 36 export LANG=en_US.UTF-8 43 37 ''; 44 38 45 - postPatch = '' 46 - substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]" 47 - ''; 48 - 49 - propagatedBuildInputs = [ cairosvg tinycss cssselect ] 50 - ++ lib.optionals (!isPyPy) [ lxml ]; 51 - 52 39 meta = with lib; { 53 40 description = "Sexy and simple python charting"; 54 41 homepage = "http://www.pygal.org"; 55 42 license = licenses.lgpl3Plus; 56 43 maintainers = with maintainers; [ sjourdois ]; 57 44 }; 58 - 59 45 }
+15 -8
pkgs/development/python-modules/pylint/default.nix
··· 2 2 , lib 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 - , pythonAtLeast 6 5 , pythonOlder 7 6 , installShellFiles 8 7 , astroid ··· 11 10 , mccabe 12 11 , platformdirs 13 12 , tomli 13 + , tomlkit 14 14 , typing-extensions 15 15 , GitPython 16 16 , pytest-timeout ··· 20 20 21 21 buildPythonPackage rec { 22 22 pname = "pylint"; 23 - version = "2.13.5"; 23 + version = "2.14.1"; 24 24 format = "setuptools"; 25 25 26 - disabled = pythonOlder "3.6.2"; 26 + disabled = pythonOlder "3.7.2"; 27 27 28 28 src = fetchFromGitHub { 29 29 owner = "PyCQA"; 30 30 repo = pname; 31 31 rev = "v${version}"; 32 - sha256 = "sha256-FB99vmUtoTc0cTjDUSbx80Tesh0vASigSpPktrDYk08="; 32 + sha256 = "sha256-rtyqHRDywv3l8bDgEjQlsh8lvwWbLswOPujFakaLWOw="; 33 33 }; 34 34 35 35 nativeBuildInputs = [ ··· 42 42 isort 43 43 mccabe 44 44 platformdirs 45 + tomlkit 45 46 ] ++ lib.optionals (pythonOlder "3.11") [ 46 47 tomli 47 48 ] ++ lib.optionals (pythonOlder "3.9") [ ··· 65 66 66 67 dontUseSetuptoolsCheck = true; 67 68 68 - # calls executable in one of the tests 69 69 preCheck = '' 70 - export PATH=$PATH:$out/bin 71 70 export HOME=$TEMPDIR 72 71 ''; 73 72 ··· 78 77 "tests/pyreverse/test_writer.py" 79 78 ]; 80 79 81 - disabledTests = lib.optionals stdenv.isDarwin [ 80 + disabledTests = [ 81 + # AssertionError when self executing and checking output 82 + # expected output looks like it should match though 83 + "test_invocation_of_pylint_config" 84 + "test_generate_rcfile" 85 + "test_generate_toml_config" 86 + "test_help_msg" 87 + "test_output_of_callback_options" 88 + ] ++ lib.optionals stdenv.isDarwin [ 82 89 "test_parallel_execution" 83 90 "test_py3k_jobs_option" 84 91 ]; ··· 96 103 - epylint: Emacs and Flymake compatible Pylint 97 104 ''; 98 105 license = licenses.gpl1Plus; 99 - maintainers = with maintainers; [ totoroot ]; 106 + maintainers = with maintainers; [ SuperSandro2000 ]; 100 107 }; 101 108 }
+9 -6
pkgs/development/python-modules/pymemcache/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , six 5 - , future 6 4 , mock 5 + , six 7 6 , pytestCheckHook 7 + , pythonOlder 8 8 }: 9 9 10 10 buildPythonPackage rec { 11 11 pname = "pymemcache"; 12 - version = "3.5.1"; 12 + version = "3.5.2"; 13 13 format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 14 16 15 17 src = fetchFromGitHub { 16 18 owner = "pinterest"; 17 19 repo = pname; 18 20 rev = "v${version}"; 19 - sha256 = "sha256-DKqfv5gf9gzbnEPQSzy2mAaVYJZL9jmTKyGWVzj40T4="; 21 + hash = "sha256-bsiFWZHGJO/07w6mFXzf0JwftJWClE2mTv86h8zT1K0="; 20 22 }; 21 23 22 24 propagatedBuildInputs = [ ··· 24 26 ]; 25 27 26 28 checkInputs = [ 27 - future 28 29 mock 29 30 pytestCheckHook 30 31 ]; ··· 38 39 "TestClientSocketConnect" 39 40 ]; 40 41 41 - pythonImportsCheck = [ "pymemcache" ]; 42 + pythonImportsCheck = [ 43 + "pymemcache" 44 + ]; 42 45 43 46 meta = with lib; { 44 47 description = "Python memcached client";
+4 -9
pkgs/development/python-modules/pyscss/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , pytest 4 + , pytestCheckHook 5 5 , six 6 6 , enum34 7 7 , pathlib 8 - , ordereddict 9 8 , pythonOlder 10 9 }: 11 10 ··· 20 19 sha256 = "sha256-z0y4z+/JE6rZWHAvps/taDZvutyVhxxs2gMujV5rNu4="; 21 20 }; 22 21 23 - checkInputs = [ pytest ]; 22 + checkInputs = [ pytestCheckHook ]; 24 23 25 24 propagatedBuildInputs = [ six ] 26 - ++ (lib.optionals (pythonOlder "3.4") [ enum34 pathlib ]) 27 - ++ (lib.optionals (pythonOlder "2.7") [ ordereddict ]); 25 + ++ lib.optionals (pythonOlder "3.4") [ enum34 pathlib ]; 28 26 29 27 # Test suite is broken. 30 28 # See https://github.com/Kronuz/pyScss/issues/415 31 29 doCheck = false; 32 - checkPhase = '' 33 - py.test 34 - ''; 35 30 36 31 meta = with lib; { 37 32 description = "A Scss compiler for Python"; 38 33 homepage = "https://pyscss.readthedocs.org/en/latest/"; 39 34 license = licenses.mit; 35 + maintainers = with maintainers; [ ]; 40 36 }; 41 - 42 37 }
+24 -6
pkgs/development/python-modules/pyserial/default.nix
··· 1 - { stdenv, lib, fetchPypi, buildPythonPackage }: 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , fetchPypi 5 + , python 6 + , pythonOlder 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 pname = "pyserial"; 5 - version="3.5"; 11 + version = "3.5"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 6 15 7 16 src = fetchPypi { 8 17 inherit pname version; 9 - sha256 = "1nyd4m4mnrz8scbfqn4zpq8gnbl4x42w5zz62vcgpzqd2waf0xrw"; 18 + hash = "sha256-PHfgFBcN//vYFub/wgXphC77EL6fWOwW0+hnW0klzds="; 10 19 }; 11 20 12 21 patches = [ ··· 14 23 ./002-rfc2217-timeout-setter-for-rfc2217.patch 15 24 ]; 16 25 17 - checkPhase = "python -m unittest discover -s test"; 18 26 doCheck = !stdenv.hostPlatform.isDarwin; # broken on darwin 19 27 28 + checkPhase = '' 29 + runHook preCheck 30 + ${python.interpreter} -m unittest discover -s test 31 + runHook postCheck 32 + ''; 33 + 34 + pythonImportsCheck = [ 35 + "serial" 36 + ]; 37 + 20 38 meta = with lib; { 39 + description = "Python serial port extension"; 21 40 homepage = "https://github.com/pyserial/pyserial"; 22 - license = licenses.psfl; 23 - description = "Python serial port extension"; 41 + license = licenses.bsd3; 24 42 maintainers = with maintainers; [ makefu ]; 25 43 }; 26 44 }
+8 -3
pkgs/development/python-modules/pytest-annotate/default.nix
··· 1 - { stdenv 2 - , lib 1 + { lib 2 + , stdenv 3 3 , buildPythonPackage 4 4 , fetchPypi 5 5 , pyannotate ··· 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; 16 - sha256 = "d0da4c3d872a7d5796ac85016caa1da38ae902bebdc759e1b6c0f6f8b5802741"; 16 + hash = "sha256-0NpMPYcqfVeWrIUBbKodo4rpAr69x1nhtsD2+LWAJ0E="; 17 17 }; 18 18 19 19 buildInputs = [ ··· 23 23 propagatedBuildInputs = [ 24 24 pyannotate 25 25 ]; 26 + 27 + postPatch = '' 28 + substituteInPlace setup.py \ 29 + --replace "pytest>=3.2.0,<7.0.0" "pytest>=3.2.0" 30 + ''; 26 31 27 32 # Module has no tests 28 33 doCheck = false;
+6 -2
pkgs/development/python-modules/pytest-httpbin/default.nix
··· 4 4 , httpbin 5 5 , pytest 6 6 , pytestCheckHook 7 + , pythonOlder 7 8 , requests 8 9 , six 9 10 }: 10 11 11 12 buildPythonPackage rec { 12 13 pname = "pytest-httpbin"; 13 - version = "1.0.1"; 14 + version = "1.0.2"; 15 + format = "setuptools"; 16 + 17 + disabled = pythonOlder "3.7"; 14 18 15 19 src = fetchFromGitHub { 16 20 owner = "kevin1024"; 17 21 repo = "pytest-httpbin"; 18 22 rev = "v${version}"; 19 - hash = "sha256-Vngd8Vum96+rdG8Nz1+aHrO6WZjiAz+0CeIovaH8N+s="; 23 + hash = "sha256-S4ThQx4H3UlKhunJo35esPClZiEn7gX/Qwo4kE1QMTI="; 20 24 }; 21 25 22 26 buildInputs = [
+2 -2
pkgs/development/python-modules/pytest-httpx/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "pytest-httpx"; 13 - version = "0.20.0"; 13 + version = "0.21.0"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.6"; ··· 19 19 owner = "Colin-b"; 20 20 repo = "pytest_httpx"; 21 21 rev = "v${version}"; 22 - sha256 = "sha256-9LDbVZgTmfyYAWylUy6Q4KH2gKpAa/o4IhqQV31BVgY="; 22 + hash = "sha256-mUzmtZCguaab4fAE7VcUhv+NQVYiPpxxHpiVVlzwrIo="; 23 23 }; 24 24 25 25 buildInputs = [
+7 -2
pkgs/development/python-modules/pytest-localserver/default.nix
··· 1 1 { lib 2 + , aiosmtpd 2 3 , buildPythonPackage 3 4 , fetchPypi 4 5 , werkzeug 6 + , pythonOlder 5 7 }: 6 8 7 9 buildPythonPackage rec { 8 10 pname = "pytest-localserver"; 9 - version = "0.5.1.post0"; 11 + version = "0.6.0"; 10 12 format = "setuptools"; 11 13 14 + disabled = pythonOlder "3.6"; 15 + 12 16 src = fetchPypi { 13 17 inherit pname version; 14 - sha256 = "5ec7f8e6534cf03887af2cb59e577f169ac0e8b2fd2c3e3409280035f386d407"; 18 + sha256 = "sha256-3cR5q6lqfaDnocx9OjA+UFgtbVBYA+j2e4JyGPn+D2U="; 15 19 }; 16 20 17 21 propagatedBuildInputs = [ 22 + aiosmtpd 18 23 werkzeug 19 24 ]; 20 25
+2 -2
pkgs/development/python-modules/pytest-randomly/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "pytest-randomly"; 15 - version = "3.11.0"; 15 + version = "3.12.0"; 16 16 format = "setuptools"; 17 17 18 18 disabled = pythonOlder "3.7"; ··· 21 21 repo = pname; 22 22 owner = "pytest-dev"; 23 23 rev = version; 24 - hash = "sha256-NoYpMpFWz52Z0+KIUumUFp3xMPA1jGw8COojU+bsgHc="; 24 + hash = "sha256-n/Xp/HghqcQUreez+QbR3Mi5hE1U4zoOJCdFqD+pVBk="; 25 25 }; 26 26 27 27 propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
+2 -2
pkgs/development/python-modules/pytest-subtests/default.nix
··· 8 8 9 9 buildPythonPackage rec { 10 10 pname = "pytest-subtests"; 11 - version = "0.7.0"; 11 + version = "0.8.0"; 12 12 format = "setuptools"; 13 13 14 14 disabled = pythonOlder "3.6"; 15 15 16 16 src = fetchPypi { 17 17 inherit pname version; 18 - sha256 = "sha256-lcRMd+P77emEi7iMqQs4SBX8uoCQ75qfVWWasWOxaBw="; 18 + sha256 = "sha256-Rus3YCLpJpUIFszCNQLeMnetzBOWZS3bMyjOAokFLE0="; 19 19 }; 20 20 21 21 nativeBuildInputs = [
+7 -5
pkgs/development/python-modules/python-slugify/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchPypi 3 + , fetchFromGitHub 4 4 , pytestCheckHook 5 5 , pythonOlder 6 6 , text-unidecode ··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "python-slugify"; 12 - version = "6.1.1"; 12 + version = "6.1.2"; 13 13 format = "setuptools"; 14 14 15 15 disabled = pythonOlder "3.6"; 16 16 17 - src = fetchPypi { 18 - inherit pname version; 19 - hash = "sha256-AAAzl/TjFBTpIs5WezpNoozxQ2pT0zLJrutRx9jEaf0="; 17 + src = fetchFromGitHub { 18 + owner = "un33k"; 19 + repo = pname; 20 + rev = "v${version}"; 21 + hash = "sha256-JGjUNBEMuICsaClQGDSGX4qFRjecVKzmpPNRUTvfwho="; 20 22 }; 21 23 22 24 propagatedBuildInputs = [
+41 -19
pkgs/development/python-modules/pyzmq/default.nix
··· 1 - { buildPythonPackage 1 + { lib 2 + , buildPythonPackage 2 3 , fetchPypi 4 + , py 3 5 , pytestCheckHook 6 + , python 7 + , pythonOlder 4 8 , tornado 5 9 , zeromq 6 - , py 7 - , python 8 10 }: 9 11 10 12 buildPythonPackage rec { 11 13 pname = "pyzmq"; 12 - version = "22.3.0"; 14 + version = "23.0.0"; 15 + format = "setuptools"; 16 + 17 + disabled = pythonOlder "3.6"; 13 18 14 19 src = fetchPypi { 15 20 inherit pname version; 16 - sha256 = "8eddc033e716f8c91c6a2112f0a8ebc5e00532b4a6ae1eb0ccc48e027f9c671c"; 21 + hash = "sha256-pF9cBHfRLfBe8uKSK0m3wK6dD0/5trsNZmVY3w7zcSI="; 17 22 }; 18 23 24 + buildInputs = [ 25 + zeromq 26 + ]; 27 + 28 + propagatedBuildInputs = [ 29 + py 30 + ]; 31 + 19 32 checkInputs = [ 20 33 pytestCheckHook 21 34 tornado 22 35 ]; 23 - buildInputs = [ zeromq ]; 24 - propagatedBuildInputs = [ py ]; 25 36 26 - # failing tests 27 - disabledTests = [ 28 - "test_socket" # hangs 29 - "test_current" 30 - "test_instance" 31 - "test_callable_check" 32 - "test_on_recv_basic" 33 - "test_on_recv_wake" 34 - "test_monitor" # https://github.com/zeromq/pyzmq/issues/1272 35 - "test_cython" 36 - "test_asyncio" # hangs 37 - "test_mockable" # fails 37 + pythonImportsCheck = [ 38 + "zmq" 38 39 ]; 39 40 40 41 pytestFlagsArray = [ 41 42 "$out/${python.sitePackages}/zmq/tests/" # Folder with tests 42 43 ]; 43 44 45 + disabledTests = [ 46 + # Tests hang 47 + "test_socket" 48 + "test_monitor" 49 + # https://github.com/zeromq/pyzmq/issues/1272 50 + "test_cython" 51 + # Test fails 52 + "test_mockable" 53 + # Issues with the sandbox 54 + "TestFutureSocket" 55 + "TestIOLoop" 56 + "TestPubLog" 57 + ]; 58 + 44 59 # Some of the tests use localhost networking. 45 60 __darwinAllowLocalNetworking = true; 61 + 62 + meta = with lib; { 63 + description = "Python bindings for ØMQ"; 64 + homepage = "https://pyzmq.readthedocs.io/"; 65 + license = with licenses; [ bsd3 /* or */ lgpl3Only ]; 66 + maintainers = with maintainers; [ ]; 67 + }; 46 68 }
+2 -2
pkgs/development/python-modules/qiling/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "qiling"; 19 - version = "1.4.2"; 19 + version = "1.4.3"; 20 20 format = "setuptools"; 21 21 22 22 disabled = pythonOlder "3.7"; 23 23 24 24 src = fetchPypi { 25 25 inherit pname version; 26 - hash = "sha256-myUGzNP4bf90d2gY5ZlYbVlTG640dj/Qha8/aMydvuw="; 26 + hash = "sha256-sndRKknfY3LgqUf6FOobwczIStjzZkudVgUR1EQSyeU="; 27 27 }; 28 28 29 29 propagatedBuildInputs = [
+79 -58
pkgs/development/python-modules/qutip/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, buildPythonPackage, python, packaging, numpy 2 - , cython, scipy, matplotlib, pytestCheckHook, pytest-rerunfailures 3 - , doCheck ? false 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , cvxopt 5 + , cvxpy 6 + , cython 7 + , doCheck ? true 8 + , fetchFromGitHub 9 + , matplotlib 10 + , numpy 11 + , packaging 12 + , pytest-rerunfailures 13 + , pytestCheckHook 14 + , python 15 + , pythonOlder 16 + , scipy 4 17 }: 5 18 6 - let 7 - self = buildPythonPackage rec { 8 - pname = "qutip"; 9 - version = "4.6.3"; 19 + buildPythonPackage rec { 20 + pname = "qutip"; 21 + version = "4.7.0"; 22 + format = "setuptools"; 23 + 24 + disabled = pythonOlder "3.7"; 25 + 26 + src = fetchFromGitHub { 27 + owner = pname; 28 + repo = pname; 29 + rev = "v${version}"; 30 + hash = "sha256-wGr6uTM6pFL2nvN4zdqPdEO8O3kjrRtKWx8luL1t9Sw="; 31 + }; 10 32 11 - src = fetchFromGitHub { 12 - owner = pname; 13 - repo = pname; 14 - rev = "v${version}"; 15 - sha256 = "sha256-11K7Tl7PE98nM2vGsa+OKIJYu0Wmv8dT700PDt9RRVk="; 16 - }; 33 + nativeBuildInputs = [ 34 + cython 35 + ]; 17 36 18 - # QuTiP says it needs specific (old) Numpy versions. We overwrite them here 19 - # as the tests work perfectly fine with up-to-date packages. 20 - postPatch = '' 21 - substituteInPlace setup.cfg --replace "numpy>=1.16.6,<1.20" "numpy>=1.16.6" 22 - ''; 37 + propagatedBuildInputs = [ 38 + numpy 39 + packaging 40 + scipy 41 + ]; 23 42 24 - # Disabling OpenMP support on Darwin. 25 - setupPyGlobalFlags = lib.optional (!stdenv.isDarwin) "--with-openmp"; 43 + checkInputs = [ 44 + pytestCheckHook 45 + pytest-rerunfailures 46 + ] ++ passthru.optional-dependencies.graphics; 26 47 27 - propagatedBuildInputs = [ 28 - packaging 29 - numpy 30 - cython 31 - scipy 32 - matplotlib 33 - ]; 48 + # Disabling OpenMP support on Darwin. 49 + setupPyGlobalFlags = lib.optional (!stdenv.isDarwin) [ 50 + "--with-openmp" 51 + ]; 34 52 35 - checkInputs = [ 36 - pytestCheckHook 37 - pytest-rerunfailures 38 - ]; 53 + # QuTiP tries to access the home directory to create an rc file for us. 54 + # We need to go to another directory to run the tests from there. 55 + # This is due to the Cython-compiled modules not being in the correct location 56 + # of the source tree. 57 + preCheck = '' 58 + export HOME=$(mktemp -d); 59 + export OMP_NUM_THREADS=$NIX_BUILD_CORES 60 + mkdir -p test && cd test 61 + ''; 39 62 40 - # test suite is very cpu intensive 41 - inherit doCheck; 42 - # - QuTiP tries to access the home directory to create an rc file for us. 43 - # This of course fails and therefore, we provide a writable temp dir as HOME. 44 - # - We need to go to another directory to run the tests from there. 45 - # This is due to the Cython-compiled modules not being in the correct location 46 - # of the source tree. 47 - # - For running tests, see: 48 - # https://qutip.org/docs/latest/installation.html#verifying-the-installation 49 - checkPhase = '' 50 - export OMP_NUM_THREADS=$NIX_BUILD_CORES 51 - export HOME=$(mktemp -d) 52 - mkdir -p test && cd test 53 - ${python.interpreter} -c "import qutip.testing; qutip.testing.run()" 54 - ''; 63 + # For running tests, see https://qutip.org/docs/latest/installation.html#verifying-the-installation 64 + checkPhase = '' 65 + runHook preCheck 66 + ${python.interpreter} -c "import qutip.testing; qutip.testing.run()" 67 + runHook postCheck 68 + ''; 55 69 56 - pythonImportsCheck = [ "qutip" ]; 70 + pythonImportsCheck = [ 71 + "qutip" 72 + ]; 57 73 58 - passthru.tests = { 59 - all-tests = self.override { doCheck = true; }; 60 - }; 74 + passthru.optional-dependencies = { 75 + graphics = [ 76 + matplotlib 77 + ]; 78 + semidefinite = [ 79 + cvxpy 80 + cvxopt 81 + ]; 82 + }; 61 83 62 - meta = with lib; { 63 - broken = (stdenv.isLinux && stdenv.isAarch64); 64 - description = "Open-source software for simulating the dynamics of closed and open quantum systems"; 65 - homepage = "https://qutip.org/"; 66 - license = licenses.bsd3; 67 - maintainers = [ maintainers.fabiangd ]; 68 - }; 84 + meta = with lib; { 85 + broken = (stdenv.isLinux && stdenv.isAarch64); 86 + description = "Open-source software for simulating the dynamics of closed and open quantum systems"; 87 + homepage = "https://qutip.org/"; 88 + license = licenses.bsd3; 89 + maintainers = with maintainers; [ fabiangd ]; 69 90 }; 70 - in self 91 + }
+12 -6
pkgs/development/python-modules/raven/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, isPy3k 2 - , contextlib2, blinker 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , blinker 5 + , flask 3 6 }: 4 7 5 8 buildPythonPackage rec { ··· 13 16 sha256 = "16x9ldl8cy7flw5kh7qmgbmflqyf210j3q6ac2lw61sgwajsnvw8"; 14 17 }; 15 18 16 - # way too many dependencies to run tests 17 - # see https://github.com/getsentry/raven-python/blob/master/setup.py 19 + # requires outdated dependencies which have no official support for python 3.4 18 20 doCheck = false; 19 21 20 - propagatedBuildInputs = [ blinker ] ++ lib.optionals (!isPy3k) [ contextlib2 ]; 22 + pythonImportsCheck = [ "raven" ]; 23 + 24 + passthru.optional-dependencies = { 25 + flask = [ blinker flask ]; 26 + }; 21 27 22 28 meta = { 23 - description = "A Python client for Sentry (getsentry.com)"; 29 + description = "Legacy Python client for Sentry (getsentry.com) — replaced by sentry-python"; 24 30 homepage = "https://github.com/getsentry/raven-python"; 25 31 license = [ lib.licenses.bsd3 ]; 26 32 maintainers = with lib.maintainers; [ primeos ];
+2 -1
pkgs/development/python-modules/repoze_lru/default.nix
··· 12 12 sha256 = "0429a75e19380e4ed50c0694e26ac8819b4ea7851ee1fc7583c8572db80aff77"; 13 13 }; 14 14 15 + pythonImportsCheck = [ "repoze.lru" ]; 16 + 15 17 meta = with lib; { 16 18 description = "A tiny LRU cache implementation and decorator"; 17 19 homepage = "http://www.repoze.org/"; 18 20 license = licenses.bsd0; 19 21 maintainers = with maintainers; [ domenkozar ]; 20 22 }; 21 - 22 23 }
+17 -8
pkgs/development/python-modules/requests/default.nix
··· 1 1 { lib 2 2 , stdenv 3 + , pythonOlder 3 4 , brotli 4 5 , brotlicffi 5 6 , buildPythonPackage ··· 21 22 pname = "requests"; 22 23 version = "2.27.1"; 23 24 25 + disabled = pythonOlder "3.7"; 26 + 24 27 src = fetchPypi { 25 28 inherit pname version; 26 29 hash = "sha256-aNfFb9WomZiHco7zBKbRLtx7508c+kdxT8i0FFJcmmE="; ··· 32 35 ]; 33 36 34 37 propagatedBuildInputs = [ 38 + brotlicffi 35 39 certifi 40 + charset-normalizer 36 41 idna 37 42 urllib3 38 - chardet 39 - ] ++ lib.optionals isPy3k [ 40 - brotlicffi 41 - charset-normalizer 42 - ] ++ lib.optionals isPy27 [ 43 - brotli 44 43 ]; 45 44 45 + passthru.optional-dependencies = { 46 + security = []; 47 + socks = [ 48 + pysocks 49 + ]; 50 + use_chardet_on_py3 = [ 51 + chardet 52 + ]; 53 + }; 54 + 46 55 checkInputs = [ 47 - pysocks 48 56 pytest-mock 49 57 pytest-xdist 50 58 pytestCheckHook 51 - ]; 59 + ] 60 + ++ passthru.optional-dependencies.socks; 52 61 53 62 # AttributeError: 'KeywordMapping' object has no attribute 'get' 54 63 doCheck = !isPy27;
+2 -2
pkgs/development/python-modules/responses/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "responses"; 13 - version = "0.20.0"; 13 + version = "0.21.0"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.7"; ··· 19 19 owner = "getsentry"; 20 20 repo = pname; 21 21 rev = version; 22 - hash = "sha256-dhIKMQXBJfZGIanJN1bFmlr/FYL1UYgYKGYaSznKhZs="; 22 + hash = "sha256-qYohrXrQkUBPo7yC+ZOwidDaCg/2nteXKAOCUvR4k2Q="; 23 23 }; 24 24 25 25 propagatedBuildInputs = [
+6 -1
pkgs/development/python-modules/rokuecp/default.nix
··· 8 8 , fetchFromGitHub 9 9 , poetry-core 10 10 , pytest-asyncio 11 + , pytest-freezegun 11 12 , pytestCheckHook 12 13 , pythonOlder 13 14 , xmltodict ··· 43 44 44 45 checkInputs = [ 45 46 aresponses 47 + pytest-asyncio 48 + pytest-freezegun 46 49 pytestCheckHook 47 - pytest-asyncio 48 50 ]; 49 51 50 52 postPatch = '' ··· 59 61 "test_get_dns_state" 60 62 # Assertion issue 61 63 "test_guess_stream_format" 64 + "test_update_tv" 65 + "test_get_apps_single_app" 66 + "test_get_tv_channels_single_channel" 62 67 ]; 63 68 64 69 pythonImportsCheck = [
+7 -8
pkgs/development/python-modules/routes/default.nix
··· 5 5 , six 6 6 , soupsieve 7 7 , webob 8 - , coverage 9 - , webtest 10 8 }: 11 9 12 10 buildPythonPackage rec { 13 - pname = "Routes"; 11 + pname = "routes"; 14 12 version = "2.5.1"; 15 13 16 14 src = fetchPypi { 17 - inherit pname version; 15 + pname = "Routes"; 16 + inherit version; 18 17 sha256 = "b6346459a15f0cbab01a45a90c3d25caf980d4733d628b4cc1952b865125d053"; 19 18 }; 20 19 21 20 propagatedBuildInputs = [ repoze_lru six soupsieve webob ]; 21 + 22 22 # incompatible with latest soupsieve 23 23 doCheck = false; 24 - checkInputs = [ coverage soupsieve webtest ]; 25 24 26 25 pythonImportsCheck = [ "routes" ]; 27 26 28 27 meta = with lib; { 29 - description = "A Python re-implementation of the Rails routes system for mapping URLs to application actions"; 30 - homepage = "http://routes.groovie.org/"; 28 + description = "Re-implementation of the Rails routes system for mapping URLs to application actions"; 29 + homepage = "https://github.com/bbangert/routes"; 31 30 license = licenses.mit; 31 + maintainers = with maintainers; [ ]; 32 32 }; 33 - 34 33 }
+15 -7
pkgs/development/python-modules/s3fs/default.nix
··· 1 - { stdenv 2 - , lib 1 + { lib 2 + , stdenv 3 + , aiobotocore 4 + , aiohttp 3 5 , buildPythonPackage 4 - , fetchPypi 5 6 , docutils 6 - , aiobotocore 7 + , fetchPypi 7 8 , fsspec 9 + , pythonOlder 8 10 }: 9 11 10 12 buildPythonPackage rec { 11 13 pname = "s3fs"; 12 - version = "2022.2.0"; 14 + version = "2022.5.0"; 15 + format = "setuptools"; 16 + 17 + disabled = pythonOlder "3.7"; 13 18 14 19 src = fetchPypi { 15 20 inherit pname version; 16 - sha256 = "sha256-RhHQ9+QeW8nawwCQcOCtN9qHpC9t73W0gTwG9+QEpzg="; 21 + hash = "sha256-tAo8v6+Ay6uvDjMjMRF8ysaSkO/aw0cYT7OrYAP3BGU="; 17 22 }; 18 23 19 24 buildInputs = [ ··· 22 27 23 28 propagatedBuildInputs = [ 24 29 aiobotocore 30 + aiohttp 25 31 fsspec 26 32 ]; 27 33 ··· 30 36 # pythonPackages. 31 37 doCheck = false; 32 38 33 - pythonImportsCheck = [ "s3fs" ]; 39 + pythonImportsCheck = [ 40 + "s3fs" 41 + ]; 34 42 35 43 meta = with lib; { 36 44 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
+4
pkgs/development/python-modules/sanic-testing/default.nix
··· 23 23 "testsout" 24 24 ]; 25 25 26 + postPatch = '' 27 + sed -i 's/httpx>=.*"/httpx"/' setup.py 28 + ''; 29 + 26 30 propagatedBuildInputs = [ 27 31 httpx 28 32 sanic
+4
pkgs/development/python-modules/selectors2/default.nix
··· 10 10 sha256 = "1f1bbaac203a23fbc851dc1b5a6e92c50698cc8cefa5873eb5b89eef53d1d82b"; 11 11 }; 12 12 13 + patches = [ 14 + ./mapping-import.patch 15 + ]; 16 + 13 17 checkInputs = [ nose psutil mock ]; 14 18 15 19 checkPhase = ''
+14
pkgs/development/python-modules/selectors2/mapping-import.patch
··· 1 + diff --git a/selectors2.py b/selectors2.py 2 + index 1625a30..c4a1231 100644 3 + --- a/selectors2.py 4 + +++ b/selectors2.py 5 + @@ -22,7 +22,8 @@ 6 + # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 7 + # SOFTWARE. 8 + 9 + -from collections import namedtuple, Mapping 10 + +from collections import namedtuple 11 + +from collections.abc import Mapping 12 + import errno 13 + import math 14 + import platform
+29 -34
pkgs/development/python-modules/selenium/default.nix
··· 1 1 { lib 2 - , stdenv 3 - , fetchPypi 4 2 , fetchFromGitHub 5 3 , buildPythonPackage 6 4 , geckodriver 5 + , pytestCheckHook 6 + , pythonOlder 7 + , trio 8 + , trio-websocket 7 9 , urllib3 8 - , xorg 9 10 , nixosTests 10 11 }: 11 12 12 - let 13 - # Recompiling x_ignore_nofocus.so as the original one dlopen's libX11.so.6 by some 14 - # absolute paths. Replaced by relative path so it is found when used in nix. 15 - x_ignore_nofocus = 16 - fetchFromGitHub { 17 - owner = "SeleniumHQ"; 18 - repo = "selenium"; 19 - rev = "selenium-3.6.0"; 20 - sha256 = "13wf4hx4i7nhl4s8xkziwxl0km1j873syrj4amragj6mpip2wn8v"; 21 - }; 22 - in 23 - 24 13 buildPythonPackage rec { 25 14 pname = "selenium"; 26 - version = "3.141.0"; 15 + version = "4.2.0"; 16 + disabled = pythonOlder "3.7"; 27 17 28 - src = fetchPypi { 29 - inherit pname version; 30 - sha256 = "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"; 18 + src = fetchFromGitHub { 19 + owner = "SeleniumHQ"; 20 + repo = "selenium"; 21 + rev = "selenium-${version}"; # check if there is a newer tag with -python suffix 22 + sha256 = "sha256-KhBCMsWGRD7hJqumA1+K8AVhJ7hq26XkEa1QbgY0Q0w="; 31 23 }; 32 24 33 - buildInputs = [ xorg.libX11 ]; 25 + postPatch = '' 26 + substituteInPlace py/selenium/webdriver/firefox/service.py \ 27 + --replace 'DEFAULT_EXECUTABLE_PATH = "geckodriver"' 'DEFAULT_EXECUTABLE_PATH = "${geckodriver}/bin/geckodriver"' 28 + ''; 29 + 30 + preConfigure = '' 31 + cd py 32 + ''; 34 33 35 34 propagatedBuildInputs = [ 36 - geckodriver urllib3 35 + trio 36 + trio-websocket 37 + urllib3 38 + ] ++ urllib3.optional-dependencies.secure 39 + ++ urllib3.optional-dependencies.socks; 40 + 41 + checkInputs = [ 42 + pytestCheckHook 37 43 ]; 38 44 39 - postPatch = lib.optionalString stdenv.isLinux '' 40 - cp "${x_ignore_nofocus}/cpp/linux-specific/"* . 41 - substituteInPlace x_ignore_nofocus.c --replace "/usr/lib/libX11.so.6" "${lib.getLib xorg.libX11}/lib/libX11.so.6" 42 - cc -c -fPIC x_ignore_nofocus.c -o x_ignore_nofocus.o 43 - cc -shared \ 44 - -Wl,${if stdenv.isDarwin then "-install_name" else "-soname"},x_ignore_nofocus.so \ 45 - -o x_ignore_nofocus.so \ 46 - x_ignore_nofocus.o 47 - cp -v x_ignore_nofocus.so selenium/webdriver/firefox/${if stdenv.is64bit then "amd64" else "x86"}/ 48 - ''; 49 - 50 45 passthru.tests = { 51 46 testing-vaultwarden = nixosTests.vaultwarden; 52 47 }; 53 48 54 49 meta = with lib; { 55 - description = "The selenium package is used to automate web browser interaction from Python"; 56 - homepage = "http://www.seleniumhq.org"; 50 + description = "Bindings for Selenium WebDriver"; 51 + homepage = "https://selenium.dev/"; 57 52 license = licenses.asl20; 58 53 maintainers = with maintainers; [ jraygauthier ]; 59 54 };
+2 -2
pkgs/development/python-modules/simple-rest-client/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "simple-rest-client"; 15 - version = "1.1.2"; 15 + version = "1.1.3"; 16 16 format = "setuptools"; 17 17 18 18 disabled = pythonOlder "3.8"; ··· 21 21 owner = "allisson"; 22 22 repo = "python-simple-rest-client"; 23 23 rev = version; 24 - sha256 = "sha256-kyoFtPa94c5EAT7wBEXdkPEg8Bp3hJQQoFsutap1qvs="; 24 + sha256 = "sha256-HdGYLDrqQvd7hvjwhC5dY2amdHUZHTYJvD1QP89lcXU="; 25 25 }; 26 26 27 27 propagatedBuildInputs = [
+3 -1
pkgs/development/python-modules/sleekxmpp/default.nix
··· 1 - { stdenv, lib, fetchPypi, buildPythonPackage, dnspython, pyasn1 }: 1 + { stdenv, lib, fetchPypi, buildPythonPackage, pythonAtLeast, dnspython, pyasn1 }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "sleekxmpp"; 5 5 version = "1.3.3"; 6 + 7 + disabled = pythonAtLeast "3.10"; # Deprecated in favor of Slixmpp 6 8 7 9 propagatedBuildInputs = [ dnspython pyasn1 ]; 8 10
+2 -1
pkgs/development/python-modules/snowflake-connector-python/default.nix
··· 45 45 46 46 postPatch = '' 47 47 substituteInPlace setup.cfg \ 48 - --replace "pyOpenSSL>=16.2.0,<23.0.0" "pyOpenSSL" 48 + --replace "pyOpenSSL>=16.2.0,<23.0.0" "pyOpenSSL" \ 49 + --replace "cryptography>=3.1.0,<37.0.0" "cryptography" 49 50 ''; 50 51 51 52 # Tests require encrypted secrets, see
+4 -2
pkgs/development/python-modules/snowflake-sqlalchemy/default.nix
··· 1 1 { buildPythonPackage 2 2 , lib 3 3 , fetchPypi 4 + , six 5 + , snowflake-connector-python 4 6 , sqlalchemy 5 - , snowflake-connector-python 6 7 }: 7 8 8 9 buildPythonPackage rec { ··· 15 16 }; 16 17 17 18 propagatedBuildInputs = [ 19 + six 20 + snowflake-connector-python 18 21 sqlalchemy 19 - snowflake-connector-python 20 22 ]; 21 23 22 24 # Pypi does not include tests
+13 -6
pkgs/development/python-modules/snscrape/default.nix
··· 2 2 , beautifulsoup4 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 + , filelock 5 6 , lxml 6 7 , pythonOlder 7 8 , pytz ··· 11 12 12 13 buildPythonPackage rec { 13 14 pname = "snscrape"; 14 - version = "unstable-2021-08-30"; 15 + version = "0.4.3.20220106"; 16 + format = "setuptools"; 15 17 16 18 disabled = pythonOlder "3.8"; 17 19 18 20 src = fetchFromGitHub { 19 21 owner = "JustAnotherArchivist"; 20 22 repo = pname; 21 - rev = "c76f1637ce1d7a154af83495b67ead2559cd5715"; 22 - sha256 = "01x4961fxj1p98y6fcyxw5sv8fa87x41fdx9p31is12bdkmqxi6v"; 23 + rev = "v${version}"; 24 + hash = "sha256-gphNT1IYSiAw22sqHlV8Rm4WRP4EWUvP0UkITuepmMc="; 23 25 }; 24 26 25 27 SETUPTOOLS_SCM_PRETEND_VERSION = version; ··· 30 32 31 33 propagatedBuildInputs = [ 32 34 beautifulsoup4 35 + filelock 33 36 lxml 34 37 requests 35 - ] ++ lib.optionals (pythonOlder "3.9") [ 38 + ] 39 + ++ requests.optional-dependencies.socks 40 + ++ lib.optionals (pythonOlder "3.9") [ 36 41 pytz 37 42 ]; 38 43 ··· 42 47 snscrape --help 43 48 ''; 44 49 45 - pythonImportsCheck = [ "snscrape" ]; 50 + pythonImportsCheck = [ 51 + "snscrape" 52 + ]; 46 53 47 54 meta = with lib; { 55 + description = "A social networking service scraper"; 48 56 homepage = "https://github.com/JustAnotherArchivist/snscrape"; 49 - description = "A social networking service scraper in Python"; 50 57 license = licenses.gpl3Plus; 51 58 maintainers = with maintainers; [ ivan ]; 52 59 };
+19 -9
pkgs/development/python-modules/sopel/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPyPy 1 + { lib 2 + , buildPythonPackage 2 3 , dnspython 4 + , fetchPypi 3 5 , geoip2 4 6 , ipython 7 + , isPyPy 5 8 , praw 6 9 , pyenchant 7 10 , pygeoip 8 11 , pytestCheckHook 12 + , pythonOlder 9 13 , pytz 10 14 , sqlalchemy 11 15 , xmltodict ··· 13 17 14 18 buildPythonPackage rec { 15 19 pname = "sopel"; 16 - version = "7.1.8"; 17 - disabled = isPyPy; 20 + version = "7.1.9"; 21 + format = "setuptools"; 22 + 23 + disabled = isPyPy || pythonOlder "3.7"; 18 24 19 25 src = fetchPypi { 20 26 inherit pname version; 21 - sha256 = "sha256-zxb95GVcDrd3FG/k+0PLg+dVlMgQpf1ntG8jF/zpHH4="; 27 + hash = "sha256-IJ+ovLQv6/UU1oepmUQjzaWBG3Rdd3xvui7FjK85Urs="; 22 28 }; 23 29 24 30 propagatedBuildInputs = [ ··· 33 39 xmltodict 34 40 ]; 35 41 36 - # remove once https://github.com/sopel-irc/sopel/pull/1653 lands 42 + checkInputs = [ 43 + pytestCheckHook 44 + ]; 45 + 37 46 postPatch = '' 38 47 substituteInPlace requirements.txt \ 39 48 --replace "praw>=4.0.0,<6.0.0" "praw" \ 40 - --replace "sqlalchemy<1.4" "sqlalchemy" 49 + --replace "sqlalchemy<1.4" "sqlalchemy" \ 50 + --replace "xmltodict==0.12" "xmltodict>=0.12" 41 51 ''; 42 - 43 - checkInputs = [ pytestCheckHook ]; 44 52 45 53 preCheck = '' 46 54 export TESTDIR=$(mktemp -d) ··· 52 60 popd 53 61 ''; 54 62 55 - pythonImportsCheck = [ "sopel" ]; 63 + pythonImportsCheck = [ 64 + "sopel" 65 + ]; 56 66 57 67 meta = with lib; { 58 68 description = "Simple and extensible IRC bot";
+7 -12
pkgs/development/python-modules/soupsieve/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , pytest 5 - , beautifulsoup4 6 4 , isPy3k 7 5 , backports_functools_lru_cache 8 6 }: ··· 16 14 sha256 = "b8d49b1cd4f037c7082a9683dfa1801aa2597fb11c3a1155b7a5b94829b4f1f9"; 17 15 }; 18 16 19 - checkPhase = '' 20 - py.test 21 - ''; 22 - 23 - checkInputs = [ pytest beautifulsoup4 ]; 24 - 25 17 propagatedBuildInputs = lib.optional (!isPy3k) backports_functools_lru_cache; 26 18 27 - # Circular test dependency on beautifulsoup4 19 + # Circular dependency on beautifulsoup4 28 20 doCheck = false; 29 21 30 - meta = { 22 + # Circular dependency on beautifulsoup4 23 + # pythonImportsCheck = [ "soupsieve" ]; 24 + 25 + meta = with lib; { 31 26 description = "A CSS4 selector implementation for Beautiful Soup"; 32 - license = lib.licenses.mit; 27 + license = licenses.mit; 33 28 homepage = "https://github.com/facelessuser/soupsieve"; 29 + maintainers = with maintainers; [ ]; 34 30 }; 35 - 36 31 }
+16 -10
pkgs/development/python-modules/sparse/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 + , dask 3 4 , fetchPypi 4 - , isPy3k 5 5 , numba 6 6 , numpy 7 + , pytestCheckHook 8 + , pythonOlder 7 9 , scipy 8 - # Test Inputs 9 - , pytestCheckHook 10 - , dask 11 10 }: 12 11 13 12 buildPythonPackage rec { 14 13 pname = "sparse"; 15 14 version = "0.13.0"; 15 + format = "setuptools"; 16 16 17 - disabled = !isPy3k; 17 + disabled = pythonOlder "3.6"; 18 18 19 19 src = fetchPypi { 20 20 inherit pname version; 21 - sha256 = "685dc994aa770ee1b23f2d5392819c8429f27958771f8dceb2c4fb80210d5915"; 21 + hash = "sha256-aF3JlKp3DuGyPy1TkoGchCnyeVh3H43OssT7gCENWRU="; 22 22 }; 23 23 24 24 propagatedBuildInputs = [ ··· 26 26 numpy 27 27 scipy 28 28 ]; 29 - checkInputs = [ pytestCheckHook dask ]; 30 29 31 - pythonImportsCheck = [ "sparse" ]; 30 + checkInputs = [ 31 + dask 32 + pytestCheckHook 33 + ]; 34 + 35 + pythonImportsCheck = [ 36 + "sparse" 37 + ]; 32 38 33 39 meta = with lib; { 34 40 description = "Sparse n-dimensional arrays computations"; 35 - homepage = "https://sparse.pydata.org/en/stable/"; 41 + homepage = "https://sparse.pydata.org/"; 36 42 changelog = "https://sparse.pydata.org/en/stable/changelog.html"; 37 43 downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}"; 38 44 license = licenses.bsd3; 39 - maintainers = [ maintainers.costrouc ]; 45 + maintainers = with maintainers; [ costrouc ]; 40 46 }; 41 47 }
+1 -1
pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix
··· 16 16 pythonImportsCheck = [ "sphinxcontrib.bayesnet" ]; 17 17 18 18 meta = with lib; { 19 - broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 20 19 homepage = "https://github.com/jluttine/sphinx-bayesnet"; 21 20 description = "Bayesian networks and factor graphs in Sphinx using TikZ syntax"; 22 21 license = licenses.gpl3Only; 23 22 maintainers = with maintainers; [ jluttine ]; 23 + broken = true; # relies on 2to3 conversion, which was removed from setuptools>=58.0 24 24 }; 25 25 }
+6 -2
pkgs/development/python-modules/splinter/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 4 , selenium 5 - , six 6 5 , flask 7 6 , pytestCheckHook 8 7 }: ··· 20 19 21 20 propagatedBuildInputs = [ 22 21 selenium 23 - six 24 22 ]; 25 23 26 24 checkInputs = [ ··· 28 26 pytestCheckHook 29 27 ]; 30 28 29 + disabledTests = [ 30 + # driver is present and fails with a different error during loading 31 + "test_local_driver_not_present" 32 + ]; 33 + 31 34 disabledTestPaths = [ 32 35 "samples" 36 + # TODO: requires optional dependencies which should be defined in passthru.optional-dependencies.$name 33 37 "tests/test_djangoclient.py" 34 38 "tests/test_flaskclient.py" 35 39 "tests/test_popups.py"
+2 -2
pkgs/development/python-modules/sqlalchemy/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "SQLAlchemy"; 16 - version = "1.4.36"; 16 + version = "1.4.37"; 17 17 18 18 src = fetchPypi { 19 19 inherit pname version; 20 - hash = "sha256-ZGeKwyHWSkWQHvLiRyXsXng/H0pYgwXhlkMUR+es4kM="; 20 + hash = "sha256-Noj5LGLbbF3yaOImSJEHjxfsuR4xQbQA8uKND3V5beo="; 21 21 }; 22 22 23 23 propagatedBuildInputs = [
+2 -2
pkgs/development/python-modules/starlette/default.nix
··· 21 21 22 22 buildPythonPackage rec { 23 23 pname = "starlette"; 24 - version = "0.19.0"; 24 + version = "0.20.1"; 25 25 format = "setuptools"; 26 26 27 27 disabled = pythonOlder "3.6"; ··· 30 30 owner = "encode"; 31 31 repo = pname; 32 32 rev = version; 33 - sha256 = "sha256-gjRTMzoQ8pqxjIusRwRXGs72VYo6xsp2DSUxmEr9KxU="; 33 + hash = "sha256-PUZ9joOhXkL1K2yi0baiuY74PIi71V/epX8zdcUv1DA="; 34 34 }; 35 35 36 36 postPatch = ''
+11 -7
pkgs/development/python-modules/streamz/default.nix
··· 3 3 , buildPythonPackage 4 4 , confluent-kafka 5 5 , distributed 6 + , fetchpatch 6 7 , fetchPypi 7 8 , flaky 8 9 , graphviz ··· 15 16 , toolz 16 17 , tornado 17 18 , zict 18 - , fetchpatch 19 19 }: 20 20 21 21 buildPythonPackage rec { ··· 27 27 28 28 src = fetchPypi { 29 29 inherit pname version; 30 - sha256 = "sha256-0wZ1ldLFRAIL9R+gLfwsFbL+gvdORAkYWNjnDmeafm8="; 30 + hash = "sha256-0wZ1ldLFRAIL9R+gLfwsFbL+gvdORAkYWNjnDmeafm8="; 31 31 }; 32 32 33 33 patches = [ ··· 36 36 name = "fix-tests-against-distributed-2021.10.0.patch"; 37 37 url = "https://github.com/python-streamz/streamz/commit/5bd3bc4d305ff40c740bc2550c8491be9162778a.patch"; 38 38 sha256 = "1xzxcbf7yninkyizrwm3ahqk6ij2fmh0454iqjx2n7mmzx3sazx7"; 39 - includes = ["streamz/tests/test_dask.py"]; 39 + includes = [ 40 + "streamz/tests/test_dask.py" 41 + ]; 40 42 }) 41 43 ]; 42 44 ··· 63 65 ]; 64 66 65 67 disabledTests = [ 66 - # test_tcp_async fails on sandbox build 68 + # Test fail in the sandbox 67 69 "test_tcp_async" 68 70 "test_tcp" 69 71 "test_partition_timeout" 70 - # flaky 71 - "test_from_iterable_backpressure" 72 + # Tests are flaky 73 + "test_from_iterable" 74 + "test_buffer" 72 75 ]; 76 + 73 77 disabledTestPaths = [ 74 - # disable kafka tests 78 + # Disable kafka tests 75 79 "streamz/tests/test_kafka.py" 76 80 ]; 77 81
+5 -2
pkgs/development/python-modules/tifffile/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "tifffile"; 15 - version = "2022.3.25"; 15 + version = "2022.5.4"; 16 16 format = "setuptools"; 17 17 18 18 disabled = pythonOlder "3.7"; 19 19 20 20 src = fetchPypi { 21 21 inherit pname version; 22 - hash = "sha256-bZQ/LAGxo0pHbJY9EZVl+6EI9VngYUJsY6UVeEaVntk="; 22 + hash = "sha256-sDFHoVhit8HZDUdDUZfxSb73pSwlrWfPH5tGX6pxuNI="; 23 23 }; 24 24 25 25 propagatedBuildInputs = [ ··· 40 40 "test_write_ome" 41 41 # Test file is missing 42 42 "test_write_predictor" 43 + # AssertionError 44 + "test_write_bigtiff" 45 + "test_write_imagej_raw" 43 46 ]; 44 47 45 48 pythonImportsCheck = [
+42
pkgs/development/python-modules/trio-websocket/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , async_generator 5 + , pytest-trio 6 + , pytestCheckHook 7 + , trio 8 + , trustme 9 + , wsproto 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "trio-websocket"; 14 + version = "0.9.2"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "HyperionGray"; 18 + repo = "trio-websocket"; 19 + rev = version; 20 + sha256 = "sha256-8VrpI/pk5IhEvqzo036cnIbJ1Hu3UfQ6GHTNkNJUYvo="; 21 + }; 22 + 23 + propagatedBuildInputs = [ 24 + async_generator 25 + trio 26 + wsproto 27 + ]; 28 + 29 + checkInputs = [ 30 + pytest-trio 31 + pytestCheckHook 32 + trustme 33 + ]; 34 + 35 + pythonImportsCheck = [ "trio_websocket" ]; 36 + 37 + meta = with lib; { 38 + description = "WebSocket client and server implementation for Python Trio"; 39 + license = licenses.mit; 40 + maintainers = with maintainers; [ SuperSandro2000 ]; 41 + }; 42 + }
+4 -2
pkgs/development/python-modules/twine/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "twine"; 19 - version = "4.0.0"; 19 + version = "4.0.1"; 20 20 format = "pyproject"; 21 21 disabled = pythonOlder "3.7"; 22 22 23 23 src = fetchPypi { 24 24 inherit pname version; 25 - sha256 = "sha256-gXqgwL3AKl6+MgUeFo4jxxoGCDNOYkx5MBHxINu8Bbc="; 25 + sha256 = "sha256-lrHPEveuYRpKQLaujpVwIV2v8GEYKPX+HzehYlWrJKA="; 26 26 }; 27 27 28 28 nativeBuildInputs = [ setuptools-scm ]; ··· 41 41 42 42 # Requires network 43 43 doCheck = false; 44 + 45 + pythonImportsCheck = [ "twine" ]; 44 46 45 47 meta = { 46 48 description = "Collection of utilities for interacting with PyPI";
+2 -2
pkgs/development/python-modules/typed-ast/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "typed-ast"; 10 - version = "1.5.2"; 10 + version = "1.5.4"; 11 11 format = "setuptools"; 12 12 13 13 disabled = pythonOlder "3.6"; ··· 16 16 owner = "python"; 17 17 repo = "typed_ast"; 18 18 rev = version; 19 - hash = "sha256-Ul1FIS1a1f8l3tX+m8Bj/LsLQW1sXJv6XzEZ9zh8rfI="; 19 + hash = "sha256-GRmKw7SRrrIIb61VeB8GLhSKCmLUd54AA+GAf43vor8="; 20 20 }; 21 21 22 22 checkInputs = [
+2 -2
pkgs/development/python-modules/types-typed-ast/default.nix
··· 5 5 6 6 buildPythonPackage rec { 7 7 pname = "types-typed-ast"; 8 - version = "1.5.4"; 8 + version = "1.5.6"; 9 9 format = "setuptools"; 10 10 11 11 src = fetchPypi { 12 12 inherit pname version; 13 - hash = "sha256-MlOHn/Y6+4lkZa/kIoocTfLmPNw57vm5dD1QC42aUXY="; 13 + hash = "sha256-UzmUeAz3KbdAwUdQZsRAdi8pqZvalRHU+mhdXuOoQ4k="; 14 14 }; 15 15 16 16 # Module doesn't have tests
+4 -3
pkgs/development/python-modules/unidecode/default.nix
··· 7 7 8 8 buildPythonPackage rec { 9 9 pname = "unidecode"; 10 - version = "1.3.2"; 10 + version = "1.3.4"; 11 + format = "setuptools"; 11 12 12 13 disabled = pythonOlder "3.5"; 13 14 ··· 15 16 owner = "avian2"; 16 17 repo = pname; 17 18 rev = "${pname}-${version}"; 18 - sha256 = "07789mrq0gjxrg1b9a3ypzzfww224sbj25wl0h9nik22sjwi8qhh"; 19 + hash = "sha256-2LRV6Egst2bdxefEzfuA9Ef8zMSWvmlCEV/sIzezyPw="; 19 20 }; 20 21 21 22 checkInputs = [ ··· 27 28 ]; 28 29 29 30 meta = with lib; { 30 - homepage = "https://pypi.python.org/pypi/Unidecode/"; 31 31 description = "ASCII transliterations of Unicode text"; 32 + homepage = "https://pypi.python.org/pypi/Unidecode/"; 32 33 license = licenses.gpl2Plus; 33 34 maintainers = with maintainers; [ domenkozar ]; 34 35 };
+12 -9
pkgs/development/python-modules/urllib3/default.nix
··· 1 1 { lib 2 2 , brotli 3 + , brotlicffi 3 4 , buildPythonPackage 5 + , certifi 4 6 , cryptography 5 7 , python-dateutil 6 8 , fetchPypi 9 + , isPyPy 7 10 , idna 8 - , isPy27 9 11 , mock 10 12 , pyopenssl 11 13 , pysocks ··· 26 28 hash = "sha256-qrrxZHeAal4d0ZqkH4wreVDdPHRjYtfjIj2+beasRI4="; 27 29 }; 28 30 29 - propagatedBuildInputs = [ 30 - brotli 31 - pysocks 32 - ] ++ lib.optionals isPy27 [ 33 - cryptography 34 - idna 35 - pyopenssl 36 - ]; 31 + # FIXME: remove backwards compatbility hack 32 + propagatedBuildInputs = passthru.optional-dependencies.brotli 33 + ++ passthru.optional-dependencies.secure; 37 34 38 35 checkInputs = [ 39 36 python-dateutil ··· 65 62 pythonImportsCheck = [ 66 63 "urllib3" 67 64 ]; 65 + 66 + passthru.optional-dependencies = { 67 + brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; 68 + secure = [ certifi cryptography idna pyopenssl ]; 69 + socks = [ pysocks ]; 70 + }; 68 71 69 72 meta = with lib; { 70 73 description = "Powerful, sanity-friendly HTTP client for Python";
+17 -10
pkgs/development/python-modules/vulture/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , coverage 4 3 , fetchPypi 5 - , isPy27 6 - , pytest-cov 4 + , pythonOlder 7 5 , pytestCheckHook 8 6 , toml 9 7 }: 10 8 11 9 buildPythonPackage rec { 12 10 pname = "vulture"; 13 - version = "2.3"; 14 - disabled = isPy27; 11 + version = "2.4"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.6"; 15 15 16 16 src = fetchPypi { 17 17 inherit pname version; 18 - sha256 = "0ryrmsm72z3fzaanyblz49q40h9d3bbl4pspn2lvkkp9rcmsdm83"; 18 + hash = "sha256-gZQ5KUp2tOC44Ixw11VlqM49wfbgNVjtEjpfK7c3wOo="; 19 19 }; 20 20 21 - propagatedBuildInputs = [ toml ]; 21 + postPatch = '' 22 + substituteInPlace setup.cfg \ 23 + --replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" "" 24 + ''; 25 + 26 + propagatedBuildInputs = [ 27 + toml 28 + ]; 22 29 23 30 checkInputs = [ 24 - coverage 25 - pytest-cov 26 31 pytestCheckHook 27 32 ]; 28 33 29 - pythonImportsCheck = [ "vulture" ]; 34 + pythonImportsCheck = [ 35 + "vulture" 36 + ]; 30 37 31 38 meta = with lib; { 32 39 description = "Finds unused code in Python programs";
+7 -13
pkgs/development/python-modules/weasyprint/default.nix
··· 2 2 , fetchPypi 3 3 , fetchpatch 4 4 , pytestCheckHook 5 - , brotli 6 5 , cairosvg 7 6 , flit-core 8 7 , fonttools 9 8 , pydyf 10 9 , pyphen 11 10 , cffi 12 - , cssselect 13 - , lxml 11 + , cssselect2 14 12 , html5lib 15 - , tinycss 16 - , zopfli 13 + , tinycss2 17 14 , glib 18 15 , harfbuzz 19 16 , pango ··· 23 20 , ghostscript 24 21 , isPy3k 25 22 , substituteAll 23 + , pillow 26 24 }: 27 25 28 26 buildPythonPackage rec { ··· 61 59 ]; 62 60 63 61 propagatedBuildInputs = [ 64 - brotli 65 - cairosvg 66 62 cffi 67 - cssselect 63 + cssselect2 68 64 fonttools 69 65 html5lib 70 - lxml 71 - flit-core 66 + pillow 72 67 pydyf 73 68 pyphen 74 - tinycss 75 - zopfli 76 - ]; 69 + tinycss2 70 + ] ++ fonttools.optional-dependencies.woff; 77 71 78 72 checkInputs = [ 79 73 pytestCheckHook
+24 -8
pkgs/development/python-modules/webob/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , nose 5 - , pytest 4 + , pytestCheckHook 5 + , pythonOlder 6 6 }: 7 7 8 8 buildPythonPackage rec { 9 - pname = "WebOb"; 9 + pname = "webob"; 10 10 version = "1.8.7"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 11 14 12 15 src = fetchPypi { 13 - inherit pname version; 14 - sha256 = "b64ef5141be559cfade448f044fa45c2260351edcb6a8ef6b7e00c7dcef0c323"; 16 + pname = "WebOb"; 17 + inherit version; 18 + hash = "sha256-tk71FBvlWc+t5EjwRPpFwiYDUe3Lao72t+AMfc7wwyM="; 15 19 }; 16 20 17 - propagatedBuildInputs = [ nose pytest ]; 21 + checkInputs = [ 22 + pytestCheckHook 23 + ]; 24 + 25 + pythonImportsCheck = [ 26 + "webob" 27 + ]; 28 + 29 + disabledTestPaths = [ 30 + # AttributeError: 'Thread' object has no attribute 'isAlive' 31 + "tests/test_in_wsgiref.py" 32 + "tests/test_client_functional.py" 33 + ]; 18 34 19 35 meta = with lib; { 20 36 description = "WSGI request and response object"; 21 - homepage = "http://pythonpaste.org/webob/"; 37 + homepage = "https://webob.org/"; 22 38 license = licenses.mit; 39 + maintainers = with maintainers; [ ]; 23 40 }; 24 - 25 41 }
+2 -2
pkgs/development/python-modules/websockets/default.nix
··· 8 8 9 9 buildPythonPackage rec { 10 10 pname = "websockets"; 11 - version = "10.1"; 11 + version = "10.3"; 12 12 format = "setuptools"; 13 13 14 14 disabled = pythonOlder "3.7"; ··· 17 17 owner = "aaugustin"; 18 18 repo = pname; 19 19 rev = version; 20 - sha256 = "sha256-FFaoqxa+TmKJ+P6T7HrwodjbVCir+2qJSfZsoj6deJU="; 20 + hash = "sha256-ZUn/DvO1Kx7Uxne4DF/am69YL1c48qpgQrGek355Z+4="; 21 21 }; 22 22 23 23 # Tests fail on Darwin with `OSError: AF_UNIX path too long`
+4 -5
pkgs/development/python-modules/xdis/default.nix
··· 10 10 11 11 buildPythonPackage rec { 12 12 pname = "xdis"; 13 - version = "unstable-2022-04-13"; 13 + version = "6.0.4"; 14 14 format = "setuptools"; 15 15 16 16 disabled = pythonOlder "3.6"; ··· 18 18 src = fetchFromGitHub { 19 19 owner = "rocky"; 20 20 repo = "python-xdis"; 21 - # Support for later Python releases is missing in 6.0.3 22 - rev = "f888df7df5cb8839927e9187c258769cc77fb7a3"; 23 - hash = "sha256-V1ws5GibRkutFRNcjlP7aW+AshSyWavXIxuwznVbRlU="; 21 + rev = version; 22 + hash = "sha256-CRZG898xCwukq+9YVkyXMP8HcuJ9GtvDhy96kxvRFks="; 24 23 }; 25 24 26 25 propagatedBuildInputs = [ ··· 48 47 49 48 meta = with lib; { 50 49 description = "Python cross-version byte-code disassembler and marshal routines"; 51 - homepage = "https://github.com/rocky/python-xdis/"; 50 + homepage = "https://github.com/rocky/python-xdis"; 52 51 license = licenses.gpl2Plus; 53 52 maintainers = with maintainers; [ ]; 54 53 };
+6 -2
pkgs/development/python-modules/xmltodict/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchPypi 4 4 , pytestCheckHook 5 + , pythonOlder 5 6 }: 6 7 7 8 buildPythonPackage rec { 8 9 pname = "xmltodict"; 9 - version = "0.12.0"; 10 + version = "0.13.0"; 10 11 format = "setuptools"; 12 + disabled = pythonOlder "3.4"; 11 13 12 14 src = fetchPypi { 13 15 inherit pname version; 14 - sha256 = "50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21"; 16 + sha256 = "sha256-NBWVpIjj4BqFqdiRHYkS/ZIu3l/sxNzkN+tLbI0DflY="; 15 17 }; 16 18 17 19 checkInputs = [ 18 20 pytestCheckHook 19 21 ]; 22 + 23 + pythonImportsCheck = [ "xmltodict" ]; 20 24 21 25 meta = with lib; { 22 26 description = "Makes working with XML feel like you are working with JSON";
+1 -3
pkgs/development/python-modules/yamlordereddictloader/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , isPy27 5 - , ordereddict 6 4 , pyyaml 7 5 }: 8 6 ··· 15 13 sha256 = "03h8wa6pzqjiw25s3jv9gydn77gs444mf31lrgvpgy53kswz0c3z"; 16 14 }; 17 15 18 - propagatedBuildInputs = [ pyyaml ] ++ lib.optional (isPy27) ordereddict; 16 + propagatedBuildInputs = [ pyyaml ]; 19 17 20 18 # no tests 21 19 doCheck = false;
+3 -3
pkgs/development/python-modules/zipp/default.nix
··· 9 9 10 10 let zipp = buildPythonPackage rec { 11 11 pname = "zipp"; 12 - version = "3.7.0"; 13 - format = "setuptools"; 12 + version = "3.8.0"; 13 + format = "pyproject"; 14 14 15 15 disabled = pythonOlder "3.7"; 16 16 17 17 src = fetchPypi { 18 18 inherit pname version; 19 - sha256 = "9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebceafb87d"; 19 + sha256 = "sha256-Vr+Krbg8JNtsS1d+E943TM+2faIHi+uh0DfBeYC/Q60="; 20 20 }; 21 21 22 22 nativeBuildInputs = [
-2
pkgs/development/python2-modules/botocore/default.nix
··· 4 4 , python-dateutil 5 5 , jmespath 6 6 , docutils 7 - , ordereddict 8 7 , simplejson 9 8 , mock 10 9 , nose ··· 24 23 python-dateutil 25 24 jmespath 26 25 docutils 27 - ordereddict 28 26 simplejson 29 27 urllib3 30 28 ];
+22 -8
pkgs/development/tools/analysis/autoflake/default.nix
··· 1 - { lib, python3Packages }: 1 + { lib 2 + , python3 3 + }: 2 4 3 - with python3Packages; 4 - buildPythonApplication rec { 5 + python3.pkgs.buildPythonApplication rec { 5 6 pname = "autoflake"; 6 7 version = "1.4"; 7 8 8 - src = fetchPypi { 9 + src = python3.pkgs.fetchPypi { 9 10 inherit pname version; 10 - sha256 = "61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea"; 11 + hash = "sha256-YaNTASz/arlMoGKCPR+y9pLErNpRx2/4Oo13kV+6Ueo="; 11 12 }; 12 13 13 - propagatedBuildInputs = [ pyflakes ]; 14 + propagatedBuildInputs = with python3.pkgs; [ 15 + pyflakes 16 + ]; 14 17 15 - doCheck = true; 18 + checkInputs = with python3.pkgs; [ 19 + pytestCheckHook 20 + ]; 21 + 22 + pythonImportsCheck = [ 23 + "autoflake" 24 + ]; 25 + 26 + disabledTests = [ 27 + # AssertionError: True is not false 28 + "test_is_literal_or_name" 29 + ]; 16 30 17 31 meta = with lib; { 32 + description = "Tool to remove unused imports and unused variables"; 18 33 homepage = "https://github.com/myint/autoflake"; 19 - description = "A simple program which removes unused imports and unused variables as reported by pyflakes"; 20 34 license = licenses.mit; 21 35 maintainers = with maintainers; [ yuriaisaka ]; 22 36 };
+2 -2
pkgs/development/tools/jira_cli/default.nix
··· 1 1 { lib, libffi, openssl, python3Packages }: 2 2 let 3 - inherit (python3Packages) fetchPypi buildPythonApplication vcrpy mock hiro; 3 + inherit (python3Packages) fetchPypi buildPythonApplication; 4 4 in 5 5 buildPythonApplication rec { 6 6 pname = "jira-cli"; ··· 19 19 checkInputs = with python3Packages; [ vcrpy mock hiro ]; 20 20 buildInputs = [ libffi openssl ]; 21 21 propagatedBuildInputs = with python3Packages; [ 22 - ordereddict requests six suds-jurko termcolor keyring 22 + requests six suds-jurko termcolor keyring 23 23 jira keyrings-alt 24 24 ]; 25 25
+1
pkgs/development/tools/pip-audit/default.nix
··· 43 43 cachecontrol 44 44 cyclonedx-python-lib 45 45 html5lib 46 + lockfile 46 47 packaging 47 48 pip-api 48 49 progress
+8
pkgs/misc/i3a/default.nix
··· 9 9 hash = "sha256-2k1HYtgJ76qXLvX6RmOSKtMMg+K722n8U9YmBANvQvE="; 10 10 }; 11 11 12 + postPatch = '' 13 + substituteInPlace setup.py \ 14 + --replace "python_requires='>=3.7,<3.10'," "python_requires='>=3.7'," 15 + ''; 16 + 12 17 nativeBuildInputs = [ python3Packages.setuptools-scm ]; 18 + 13 19 propagatedBuildInputs = [ python3Packages.i3ipc ]; 20 + 21 + doCheck = false; 14 22 15 23 meta = with lib; { 16 24 homepage = "https://git.goral.net.pl/mgoral/i3a";
+2 -2
pkgs/servers/calibre-web/default.nix
··· 2 2 , fetchFromGitHub 3 3 , nixosTests 4 4 , python3 5 - , python3Packages 6 5 }: 7 6 8 7 python3.pkgs.buildPythonApplication rec { ··· 16 15 sha256 = "sha256-KjmpFetNhNM5tL34e/Pn1i3hc86JZglubSMsHZWu198="; 17 16 }; 18 17 19 - propagatedBuildInputs = with python3Packages; [ 18 + propagatedBuildInputs = with python3.pkgs; [ 20 19 advocate 21 20 backports_abc 21 + chardet 22 22 flask-babel 23 23 flask_login 24 24 flask_principal
+12 -1
pkgs/servers/home-assistant/default.nix
··· 29 29 let 30 30 defaultOverrides = [ 31 31 # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt 32 - (mkOverride "python-slugify" "4.0.1" "sha256-aaUXdm4AwSaOW7/A0BCgqFCN4LGNMK1aH/NX+K5yQnA=") 33 32 34 33 # pytest-aiohttp>0.3.0 breaks home-assistant tests 35 34 (self: super: { ··· 97 96 repo = "pyatag"; 98 97 rev = version; 99 98 sha256 = "00ly4injmgrj34p0lyx7cz2crgnfcijmzc0540gf7hpwha0marf6"; 99 + }; 100 + }); 101 + }) 102 + 103 + (self: super: { 104 + python-slugify = super.python-slugify.overridePythonAttrs (oldAttrs: rec { 105 + pname = "python-slugify"; 106 + version = "4.0.1"; 107 + src = super.fetchPypi { 108 + inherit pname version; 109 + hash = "sha256-aaUXdm4AwSaOW7/A0BCgqFCN4LGNMK1aH/NX+K5yQnA="; 100 110 }; 101 111 }); 102 112 }) ··· 200 210 "attrs" 201 211 "awesomeversion" 202 212 "bcrypt" 213 + "cryptography" 203 214 "httpx" 204 215 "PyJWT" 205 216 ];
+5 -8
pkgs/tools/admin/azure-cli/default.nix
··· 1 1 { stdenv, lib, python3, fetchFromGitHub, installShellFiles }: 2 2 3 3 let 4 - version = "2.34.1"; 4 + version = "2.37.0"; 5 5 srcName = "azure-cli-${version}-src"; 6 6 7 7 src = fetchFromGitHub { ··· 9 9 owner = "Azure"; 10 10 repo = "azure-cli"; 11 11 rev = "azure-cli-${version}"; 12 - sha256 = "sha256-BEEwxf3UTShKi3K/uBK1yMxyPCvybL/BbKsu8XAwu0M="; 12 + sha256 = "sha256-Y1P+cTOK7NbV7k9rg38vE7EPuZQo88IQW3IYYou8ZOI="; 13 13 }; 14 14 15 15 # put packages that needs to be overriden in the py package scope ··· 27 27 substituteInPlace setup.py \ 28 28 --replace "chardet~=3.0.4" "chardet" \ 29 29 --replace "javaproperties~=0.5.1" "javaproperties" \ 30 - --replace "pytz==2019.1" "pytz" \ 31 - --replace "scp~=0.13.2" "scp" \ 32 - --replace "PyNaCl~=1.4.0" "PyNaCl" \ 33 - --replace "jsondiff~=1.2.0" "jsondiff~=1.2" \ 34 - --replace "antlr4-python3-runtime~=4.7.2" "antlr4-python3-runtime~=4.7" \ 35 - --replace "mock~=4.0" "mock" 30 + --replace "scp~=0.13.2" "scp" 36 31 37 32 # remove namespace hacks 38 33 # remove urllib3 because it was added as 'urllib3[secure]', which doesn't get handled well ··· 50 45 azure-cli-core 51 46 azure-cli-telemetry 52 47 azure-cosmos 48 + azure-data-tables 53 49 azure-datalake-store 54 50 azure-functions-devops-build 55 51 azure-graphrbac ··· 131 127 azure-synapse-artifacts 132 128 azure-synapse-managedprivateendpoints 133 129 azure-synapse-spark 130 + chardet 134 131 colorama 135 132 cryptography 136 133 distro
+82 -73
pkgs/tools/admin/azure-cli/python-packages.nix
··· 1 1 { stdenv, python3, lib, src, version }: 2 2 3 3 let 4 - buildAzureCliPackage = with py.pkgs; attrs: buildPythonPackage attrs; 4 + buildAzureCliPackage = with py.pkgs; buildPythonPackage; 5 5 6 6 overrideAzureMgmtPackage = package: version: extension: sha256: 7 7 # check to make sure overriding is even necessary 8 - if version == package.version then 9 - package 10 - else package.overrideAttrs(oldAttrs: rec { 8 + package.overrideAttrs(oldAttrs: rec { 11 9 inherit version; 12 10 13 11 src = py.pkgs.fetchPypi { 14 12 inherit (oldAttrs) pname; 15 13 inherit version sha256 extension; 16 14 }; 17 - 18 - preBuild = '' 19 - rm -f azure_bdist_wheel.py 20 - substituteInPlace setup.cfg \ 21 - --replace "azure-namespace-package = azure-mgmt-nspkg" "" 22 - ''; 23 - 24 - # force PEP420 25 - pythonNamespaces = [ "azure.mgmt" ]; 26 15 }); 27 16 28 17 py = python3.override { ··· 60 49 pyjwt 61 50 pyopenssl 62 51 pyperclip 52 + pysocks 63 53 pyyaml 64 54 requests 65 55 six ··· 72 62 --replace "cryptography>=3.2,<3.4" "cryptography" \ 73 63 --replace "msal-extensions>=0.3.1,<0.4" "msal-extensions" 74 64 ''; 75 - 76 65 checkInputs = with self; [ pytest ]; 77 66 doCheck = stdenv.isLinux; 78 67 # ignore tests that does network call, or assume powershell ··· 118 107 ''; 119 108 }; 120 109 110 + antlr4-python3-runtime = super.antlr4-python3-runtime.override(_: { 111 + antlr4 = super.pkgs.antlr4_9; 112 + }); 113 + 121 114 azure-batch = overrideAzureMgmtPackage super.azure-batch "12.0.0" "zip" 122 115 "sha256-GpseF4mEp79JWvZ7zOUfDbHkqKlXr7KeM1VKFKlnTes="; 123 116 124 117 azure-mgmt-apimanagement = overrideAzureMgmtPackage super.azure-mgmt-apimanagement "3.0.0" "zip" 125 118 "9262f54ed387eb083d8dae66d32a8df35647319b902bd498cdc376f50a12d154"; 126 119 127 - azure-mgmt-batch = overrideAzureMgmtPackage super.azure-mgmt-batch "16.0.0" "zip" 128 - "1b3cecd6f16813879c6ac1a1bb01f9a6f2752cd1f9157eb04d5e41e4a89f3c34"; 120 + azure-mgmt-batch = overrideAzureMgmtPackage super.azure-mgmt-batch "16.1.0" "zip" 121 + "sha256-9J0VQ3uAsi4kuEe9UG4xpcEV1Sc+nkjECgVfzG7j5jk="; 129 122 130 123 azure-mgmt-batchai = overrideAzureMgmtPackage super.azure-mgmt-batchai "7.0.0b1" "zip" 131 124 "sha256-mT6vvjWbq0RWQidugR229E8JeVEiobPD3XA/nDM3I6Y="; ··· 136 129 azure-mgmt-botservice = overrideAzureMgmtPackage super.azure-mgmt-botservice "0.3.0" "zip" 137 130 "f8318878a66a0685a01bf27b7d1409c44eb90eb72b0a616c1a2455c72330f2f1"; 138 131 139 - azure-mgmt-policyinsights = overrideAzureMgmtPackage super.azure-mgmt-policyinsights "1.0.0" "zip" 140 - "75103fb4541aeae30bb687dee1fedd9ca65530e6b97b2d9ea87f74816905202a"; 132 + azure-mgmt-extendedlocation = overrideAzureMgmtPackage super.azure-mgmt-extendedlocation "1.0.0b2" "zip" 133 + "sha256-mjfH35T81JQ97jVgElWmZ8P5MwXVxZQv/QJKNLS3T8A="; 134 + 135 + azure-mgmt-policyinsights = overrideAzureMgmtPackage super.azure-mgmt-policyinsights "1.1.0b2" "zip" 136 + "sha256-e+I5MdbbX7WhxHCj1Ery3z2WUrJtpWGD1bhLbqReb58="; 141 137 142 138 azure-mgmt-rdbms = overrideAzureMgmtPackage super.azure-mgmt-rdbms "10.0.0" "zip" 143 139 "bdc479b3bbcac423943d63e746a81dd5fc80b46a4dbb4393e760016e3fa4f74a"; ··· 145 141 azure-mgmt-recoveryservices = overrideAzureMgmtPackage super.azure-mgmt-recoveryservices "2.0.0" "zip" 146 142 "sha256-p9MTfVxGD1CsLUQGHWCnC08nedTKhEt3QZtXJeZeCb4="; 147 143 148 - azure-mgmt-recoveryservicesbackup = overrideAzureMgmtPackage super.azure-mgmt-recoveryservicesbackup "4.0.0" "zip" 149 - "a848ac1d99c935e61dfb91ca3e1577904a3eff5820fce179eb6937df8e1019ec"; 144 + azure-mgmt-recoveryservicesbackup = overrideAzureMgmtPackage super.azure-mgmt-recoveryservicesbackup "5.0.0" "zip" 145 + "sha256-BciA3sFyja5xo9yS3WVglC73y8gTfw8UejdEzbD4HYE="; 150 146 151 - azure-mgmt-resource = overrideAzureMgmtPackage super.azure-mgmt-resource "20.0.0" "zip" 152 - "622dca4484be64f9f5ce335d327dffabf3e71e14e8a3f4a1051dc85a5c3ebbca"; 147 + azure-mgmt-resource = overrideAzureMgmtPackage super.azure-mgmt-resource "21.1.0b1" "zip" 148 + "sha256-oiC5k+Mg9KJn940jMxG4AB9Pom+t/DWRA5KRv8HO0HI="; 153 149 154 - azure-mgmt-appconfiguration = overrideAzureMgmtPackage super.azure-mgmt-appconfiguration "2.0.0" "zip" 155 - "b58bbe82a7429ba589292024896b58d96fe9fa732c578569cac349928dc2ca5f"; 150 + azure-mgmt-appconfiguration = overrideAzureMgmtPackage super.azure-mgmt-appconfiguration "2.1.0b2" "zip" 151 + "sha256-/w+kI/tSNo0vW5ZFcMjRGPPrmNwZbFLKbKVkblZQ6FY="; 156 152 157 - azure-mgmt-cognitiveservices = overrideAzureMgmtPackage super.azure-mgmt-cognitiveservices "13.0.0" "zip" 158 - "dc6116e8394d45312c7ad5a9098ce0dd2370bd92d43afd33d8b3bfab724fa498"; 153 + azure-mgmt-cognitiveservices = overrideAzureMgmtPackage super.azure-mgmt-cognitiveservices "13.1.0" "zip" 154 + "sha256-FXS834v5uDGiEGcQMIv9iaHxhfcW9uY3VmX7l91Tfj4="; 159 155 160 - azure-mgmt-compute = overrideAzureMgmtPackage super.azure-mgmt-compute "25.0.0" "zip" 161 - "sha256-Y0WNBtQ9v0yhTVFfTvfcudWHOjzGagGB+/b++3Ie5Kk="; 156 + azure-mgmt-compute = overrideAzureMgmtPackage super.azure-mgmt-compute "27.0.0" "zip" 157 + "sha256-n+MQJ0ZeQ/hyS2G8CrNCtoxbvcfrIXmn4LXB/V6JXT0="; 162 158 163 159 azure-mgmt-consumption = overrideAzureMgmtPackage super.azure-mgmt-consumption "2.0.0" "zip" 164 160 "12ai4qps73ivawh0yzvgb148ksx02r30pqlvfihx497j62gsi1cs"; 165 161 166 162 azure-mgmt-containerinstance = overrideAzureMgmtPackage super.azure-mgmt-containerinstance "9.1.0" "zip" 167 - "sha256-N+zUTEnOyn18lDHlkUj+vRXX/sJhZR7XLd1YdV50ULA="; 163 + "sha256-IhZLDFkTize8SLptR2v2NRUrxCjctCC1IaFLjCXHl60="; 168 164 169 - azure-mgmt-containerservice = overrideAzureMgmtPackage super.azure-mgmt-containerservice "17.0.0" "zip" 170 - "sha256-oUbWdZryabCCg/gTujchT7p1nS7IDoU5W9MQ4ekJYH8="; 165 + azure-mgmt-containerservice = overrideAzureMgmtPackage super.azure-mgmt-containerservice "19.1.0" "zip" 166 + "sha256-t06Cesxvjk31aDxkX2Yj0VzFubWbiAc26LzNTIgVEqs="; 171 167 172 168 azure-mgmt-cosmosdb = overrideAzureMgmtPackage super.azure-mgmt-cosmosdb "7.0.0b2" "zip" 173 169 "sha256-hVvYW9gkfTVMwis3IdD0JXYDxdKcyyzIFx3hNk7VMLI="; ··· 190 186 azure-mgmt-iothubprovisioningservices = overrideAzureMgmtPackage super.azure-mgmt-iothubprovisioningservices "1.1.0" "zip" 191 187 "sha256-04OoJuff93L62G6IozpmHpEaUbHHHD6nKlkMHVoJvJ4="; 192 188 193 - azure-mgmt-iotcentral = overrideAzureMgmtPackage super.azure-mgmt-iotcentral "9.0.0" "zip" 194 - "64df73df449a6f3717f3d0963e5869224ed3e6216c79de571493bea7c1b52cb6"; 189 + azure-mgmt-iotcentral = overrideAzureMgmtPackage super.azure-mgmt-iotcentral "10.0.0b1" "zip" 190 + "sha256-1CiZuTXYhIb74eGQZUJHHzovYNnnVd3Ydu1UCy2Bu00="; 195 191 196 192 azure-mgmt-kusto = overrideAzureMgmtPackage super.azure-mgmt-kusto "0.3.0" "zip" 197 193 "1pmcdgimd66h964a3d5m2j2fbydshcwhrk87wblhwhfl3xwbgf4y"; ··· 199 195 azure-mgmt-devtestlabs = overrideAzureMgmtPackage super.azure-mgmt-devtestlabs "4.0.0" "zip" 200 196 "1397ksrd61jv7400mgn8sqngp6ahir55fyq9n5k69wk88169qm2r"; 201 197 202 - azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "6.0.1" "zip" 203 - "6ce683587be1638d8d77620b7af118060b8b7dfc4fd23d46a623a66edcb388e1"; 198 + azure-mgmt-netapp = overrideAzureMgmtPackage super.azure-mgmt-netapp "7.0.0" "zip" 199 + "sha256-ziaddG+6MoPG18OYZyQ9HRx8nfGsz2UbWPC1pWacKto="; 204 200 205 201 azure-mgmt-dns = overrideAzureMgmtPackage super.azure-mgmt-dns "8.0.0" "zip" 206 202 "407c2dacb33513ffbe9ca4be5addb5e9d4bae0cb7efa613c3f7d531ef7bf8de8"; 207 203 208 - azure-mgmt-loganalytics = overrideAzureMgmtPackage super.azure-mgmt-loganalytics "13.0.0b2" "zip" 209 - "sha256-j8CyWZGF7Z/5szJ+CD96E0EbNsceJ1SScrlPqWVLjnk="; 204 + azure-mgmt-loganalytics = overrideAzureMgmtPackage super.azure-mgmt-loganalytics "13.0.0b4" "zip" 205 + "sha256-Jm1t7v5vyFjNNM/evVaEI9sXJKNwJk6XAXuJSRSnKHk="; 210 206 211 - azure-mgmt-network = overrideAzureMgmtPackage super.azure-mgmt-network "19.3.0" "zip" 212 - "0b6a1ccdffd76e057ab16a6c319740a0ca68d59fedf7e9c02f2437396e72aa11"; 207 + azure-mgmt-network = overrideAzureMgmtPackage super.azure-mgmt-network "20.0.0" "zip" 208 + "sha256-mnjPyCAJ+rlNgZ4umSYjfVVVg83EobZYY/zupyDjdoY="; 213 209 214 210 azure-mgmt-maps = overrideAzureMgmtPackage super.azure-mgmt-maps "2.0.0" "zip" 215 211 "384e17f76a68b700a4f988478945c3a9721711c0400725afdfcb63cf84e85f0e"; ··· 223 219 azure-mgmt-marketplaceordering = overrideAzureMgmtPackage super.azure-mgmt-marketplaceordering "1.1.0" "zip" 224 220 "68b381f52a4df4435dacad5a97e1c59ac4c981f667dcca8f9d04453417d60ad8"; 225 221 226 - azure-mgmt-media = overrideAzureMgmtPackage super.azure-mgmt-media "7.0.0" "zip" 227 - "sha256-tF6CpZTtkc1ap6XNXQHwOLesPPEiM+e6K+qqNHeQDo4="; 222 + azure-mgmt-media = overrideAzureMgmtPackage super.azure-mgmt-media "9.0.0" "zip" 223 + "sha256-TI7l8sSQ2QUgPqiE3Cu/F67Wna+KHbQS3fuIjOb95ZM="; 228 224 229 225 azure-mgmt-msi = super.azure-mgmt-msi.overridePythonAttrs (old: rec { 230 - version = "0.2.0"; 226 + version = "6.0.1"; 231 227 src = old.src.override { 232 228 inherit version; 233 - sha256 = "0rvik03njz940x2hvqg6iiq8k0d88gyygsr86w8s0sa12sdbq8l6"; 229 + sha256 = "sha256-PPkQmUoBkJ8Su7h9G2/t8dVy/PT3uCYZjlf70fnY2vU="; 234 230 }; 235 - propagatedBuildInputs = with self; [ 236 - msrest 237 - msrestazure 238 - azure-common 239 - azure-mgmt-nspkg 240 - ]; 241 231 }); 242 232 243 233 azure-mgmt-privatedns = overrideAzureMgmtPackage super.azure-mgmt-privatedns "1.0.0" "zip" ··· 246 236 azure-mgmt-web = overrideAzureMgmtPackage super.azure-mgmt-web "6.1.0" "zip" 247 237 "c26635089276515b0488fcf014aab50a0446f54800c6e0e5583cc493ac8d738f"; 248 238 249 - azure-mgmt-redhatopenshift = overrideAzureMgmtPackage super.azure-mgmt-redhatopenshift "1.0.0" "zip" 250 - "94cd41f1ebd82e40620fd3e6d88f666b5c19ac7cf8b4e8edadb9721bd7c80980"; 239 + azure-mgmt-redhatopenshift = overrideAzureMgmtPackage super.azure-mgmt-redhatopenshift "1.1.0" "zip" 240 + "sha256-Tq8h3fvajxIG2QjtCyHCQDE2deBDioxLLaQQek/O24U="; 251 241 252 242 azure-mgmt-redis = overrideAzureMgmtPackage super.azure-mgmt-redis "13.1.0" "zip" 253 243 "ece913e5fc7f157e945809e557443f79ff7691cabca4bbc5ecb266352f843179"; 254 244 255 - azure-mgmt-reservations = overrideAzureMgmtPackage super.azure-mgmt-reservations "0.6.0" "zip" 256 - "16ycni3cjl9c0mv419gy5rgbrlg8zp0vnr6aj8z8p2ypdw6sgac3"; 245 + azure-mgmt-reservations = overrideAzureMgmtPackage super.azure-mgmt-reservations "2.0.0" "zip" 246 + "sha256-5vXdXiRubnzPk4uTFeNHR6rwiHSGbeUREX9eW1pqC3E="; 257 247 258 248 azure-mgmt-search = overrideAzureMgmtPackage super.azure-mgmt-search "8.0.0" "zip" 259 249 "a96d50c88507233a293e757202deead980c67808f432b8e897c4df1ca088da7e"; ··· 264 254 azure-mgmt-signalr = overrideAzureMgmtPackage super.azure-mgmt-signalr "1.0.0b2" "zip" 265 255 "sha256-FTxY8qoihHG4OZuKT3sRRlKfORbIoqDqug9Ko+6S9dw="; 266 256 267 - azure-mgmt-sql = overrideAzureMgmtPackage super.azure-mgmt-sql "3.0.1" "zip" 268 - "129042cc011225e27aee6ef2697d585fa5722e5d1aeb0038af6ad2451a285457"; 257 + azure-mgmt-sql = overrideAzureMgmtPackage super.azure-mgmt-sql "4.0.0b1" "zip" 258 + "sha256-dYk3stvQHN/VEZS8OBCp0IbG8g6iIHpMrLxCWWg7Id8="; 269 259 270 - azure-mgmt-sqlvirtualmachine = overrideAzureMgmtPackage super.azure-mgmt-sqlvirtualmachine "1.0.0b1" "zip" 271 - "sha256-SrFTvU+67U3CpMLPZMawXuRdSIbTsfav2jFZIsZWPmw="; 260 + azure-mgmt-sqlvirtualmachine = overrideAzureMgmtPackage super.azure-mgmt-sqlvirtualmachine "1.0.0b2" "zip" 261 + "sha256-zqsLufjUmOl1Zxu8QhYzsEKYgoS+m8GTpRydl7jvXMk="; 272 262 273 263 azure-mgmt-synapse = overrideAzureMgmtPackage super.azure-mgmt-synapse "2.1.0b2" "zip" 274 264 "sha256-/BAxKDttp/tS/X45y8X4KBm5qxtNuVXhrc5qB3A+wRE="; ··· 279 269 azure-mgmt-relay = overrideAzureMgmtPackage super.azure-mgmt-relay "0.1.0" "zip" 280 270 "1jss6qhvif8l5s0lblqw3qzijjf0h88agciiydaa7f4q577qgyfr"; 281 271 282 - azure-mgmt-eventhub = overrideAzureMgmtPackage super.azure-mgmt-eventhub "9.1.0" "zip" 283 - "0ba9f10e1e8d03247a316e777d6f27fabf268d596dda2af56ac079fcdf5e7afe"; 272 + azure-mgmt-eventhub = overrideAzureMgmtPackage super.azure-mgmt-eventhub "10.0.0" "zip" 273 + "0856574ef4b73bbbc62834051061e2081400aba7e3715e10ef5181d639e86a0b"; 284 274 285 275 azure-mgmt-keyvault = overrideAzureMgmtPackage super.azure-mgmt-keyvault "9.3.0" "zip" 286 276 "54156422e618b686d52232a7989594b240bd18afd0fa381e12e4772ed4ab5ea8"; 287 277 288 - azure-mgmt-cdn = overrideAzureMgmtPackage super.azure-mgmt-cdn "11.0.0" "zip" 289 - "28e7070001e7208cdb6c2ad253ec78851abdd73be482230d2c0874eed5bc0907"; 278 + azure-mgmt-cdn = overrideAzureMgmtPackage super.azure-mgmt-cdn "12.0.0" "zip" 279 + "sha256-t8PuIYkjS0r1Gs4pJJJ8X9cz8950imQtbVBABnyMnd0="; 290 280 291 281 azure-mgmt-containerregistry = overrideAzureMgmtPackage super.azure-mgmt-containerregistry "8.2.0" "zip" 292 282 "f2bcdbcf0b9fdc2df0df9eccb77cb489091d3c670ed53cba77e5ffd734e9539b"; ··· 303 293 azure-mgmt-authorization = overrideAzureMgmtPackage super.azure-mgmt-authorization "0.61.0" "zip" 304 294 "0xfvx2dvfj3fbz4ngn860ipi4v6gxqajyjc8x92r8knhmniyxk7m"; 305 295 306 - azure-mgmt-storage = overrideAzureMgmtPackage super.azure-mgmt-storage "19.1.0" "zip" 307 - "sha256-Seoi8A4JZaNVCvNKQcGh06SBaQ9lAMeOhUCIAvVtdBY="; 296 + azure-mgmt-storage = overrideAzureMgmtPackage super.azure-mgmt-storage "20.0.0" "zip" 297 + "sha256-buR2tWIv9vWVTt7m6w2N1CezIXAihVrfHshjPKBM3uI="; 308 298 309 299 azure-mgmt-servicebus = overrideAzureMgmtPackage super.azure-mgmt-servicebus "7.1.0" "zip" 310 300 "d8ae7905fb7d3e24822daa20aa7bc5014f41aa18b48ea2d0161e997fc11a3d36"; ··· 312 302 azure-mgmt-servicefabric = overrideAzureMgmtPackage super.azure-mgmt-servicefabric "1.0.0" "zip" 313 303 "de35e117912832c1a9e93109a8d24cab94f55703a9087b2eb1c5b0655b3b1913"; 314 304 315 - azure-mgmt-servicelinker = overrideAzureMgmtPackage super.azure-mgmt-servicelinker "1.0.0b1" "zip" 316 - "sha256-T3DTvNmLpTm/74cOPEl+vcXv7TIAwmJ6YXGLqpqyGmE="; 305 + azure-mgmt-servicelinker = overrideAzureMgmtPackage super.azure-mgmt-servicelinker "1.0.0" "zip" 306 + "sha256-lAjgwEa2TJDEUU8pwfwkU8EyA1bhLkcAv++I6WHb7Xs="; 317 307 318 308 azure-mgmt-hdinsight = overrideAzureMgmtPackage super.azure-mgmt-hdinsight "9.0.0" "zip" 319 309 "41ebdc69c0d1f81d25dd30438c14fff4331f66639f55805b918b9649eaffe78a"; 320 310 321 - azure-multiapi-storage = overrideAzureMgmtPackage super.azure-multiapi-storage "0.7.0" "tar.gz" 322 - "cd4f184be8c9ca8aca969f93ed50dc7fe556d28ca11520440fc182cf876abdf9"; 311 + azure-multiapi-storage = overrideAzureMgmtPackage super.azure-multiapi-storage "0.9.0" "tar.gz" 312 + "sha256-7uq8uRZ3MXI1Gy+DmMkRVNV7uZPw6j8r9KfhS8d+tCY="; 323 313 324 314 azure-appconfiguration = super.azure-appconfiguration.overrideAttrs(oldAttrs: rec { 325 315 version = "1.1.1"; ··· 362 352 }); 363 353 364 354 azure-synapse-artifacts = super.azure-synapse-artifacts.overrideAttrs(oldAttrs: rec { 365 - version = "0.10.0"; 355 + version = "0.12.0"; 366 356 src = super.fetchPypi { 367 357 inherit (oldAttrs) pname; 368 358 inherit version; 369 - sha256 = "sha256-P3gsm1kLiuQ2eMbgA9+MqMymdYMgOdJwsLdDf/AVV/0="; 359 + sha256 = "sha256-IfQWsITuThzh+TRgv99JTtcDFY3gMq5PjALkN4mJEZo="; 370 360 extension = "zip"; 371 361 }; 372 362 }); ··· 428 418 }); 429 419 430 420 azure-keyvault-keys = super.azure-keyvault-keys.overridePythonAttrs(oldAttrs: rec { 431 - version = "4.5.0b6"; 421 + version = "4.5.1"; 432 422 src = super.fetchPypi { 433 423 inherit (oldAttrs) pname; 434 424 inherit version; 435 425 extension = "zip"; 436 - sha256 = "sha256-WFSRJaia0+WnvGxoMYZIvf81ue51VPYXzTp8huUh1fc="; 426 + sha256 = "sha256-2ojnH+ySoU+1jOyIaKv366BAGI3Nzjac4QUK3RllhvY="; 437 427 }; 438 428 }); 439 429 ··· 486 476 doCheck = false; 487 477 }); 488 478 479 + msal = super.msal.overridePythonAttrs(oldAttrs: rec { 480 + version = "1.18.0b1"; 481 + 482 + src = super.fetchPypi { 483 + inherit (oldAttrs) pname; 484 + inherit version; 485 + sha256 = "sha256-kiYDjzX756uulLFr4gCuLnXgmAi+s2WDCGmvkQFC8Ow="; 486 + }; 487 + }); 488 + 489 489 semver = super.semver.overridePythonAttrs(oldAttrs: rec { 490 490 version = "2.13.0"; 491 491 ··· 493 493 inherit (oldAttrs) pname; 494 494 inherit version; 495 495 sha256 = "sha256-+g/ici7hw/V+rEeIIMOlri9iSvgmTL35AAyYD/f3Xj8="; 496 + }; 497 + }); 498 + 499 + jsondiff = super.jsondiff.overridePythonAttrs(oldAttrs: rec { 500 + version = "2.0.0"; 501 + 502 + src = oldAttrs.src.override { 503 + inherit version; 504 + sha256 = "sha256-J5WETvB17IorjThcTVn16kiwjnGA/OPLJ4e+DbALH7Q="; 496 505 }; 497 506 }); 498 507 ··· 528 537 }); 529 538 530 539 websocket-client = super.websocket-client.overridePythonAttrs(oldAttrs: rec { 531 - version = "0.56.0"; 540 + version = "1.3.1"; 532 541 533 542 src = oldAttrs.src.override { 534 543 inherit version; 535 - sha256 = "0fpxjyr74klnyis3yf6m54askl0h5dchxcwbfjsq92xng0455m8z"; 544 + sha256 = "sha256-YninUGU5VBgoP4h958O+r7OqaNraXKy+SyFOjSbaSZs="; 536 545 }; 537 546 }); 538 547
+2 -2
pkgs/tools/filesystems/sftpman/default.nix
··· 2 2 3 3 python3Packages.buildPythonApplication rec { 4 4 pname = "sftpman"; 5 - version = "1.1.3"; 5 + version = "1.2.2"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "spantaleev"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "04awwwfw51fi1q18xdysp54jyhr0rhb4kfyrgv0vhhrlpwwyhnqy"; 11 + hash = "sha256-YxqN4+u0nYUWehbyRhjddIo2sythH3E0fiPSyrUlWhM="; 12 12 }; 13 13 14 14 checkPhase = ''
+5 -2
pkgs/tools/misc/diffoscope/default.nix
··· 11 11 # Note: when upgrading this package, please run the list-missing-tools.sh script as described below! 12 12 python3Packages.buildPythonApplication rec { 13 13 pname = "diffoscope"; 14 - version = "214"; 14 + version = "215"; 15 15 16 16 src = fetchurl { 17 17 url = "https://diffoscope.org/archive/diffoscope-${version}.tar.bz2"; 18 - sha256 = "sha256-ap+U9b+pCfQ2UwqQDTx0mQ0nvXJsl4D89Q/Ecl7w+8c="; 18 + sha256 = "sha256-OiAuR4uY9m6322d93JMFFQrXMLv6XD3D24j7K7BRl10="; 19 19 }; 20 20 21 21 outputs = [ "out" "man" ]; ··· 76 76 77 77 # fails because it fails to determine llvm version 78 78 "test_item3_deflate_llvm_bitcode" 79 + 80 + # OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'/build/pytest-of-nixbld/pytest-0/\xf0(\x8c(' 81 + "test_non_unicode_filename" 79 82 80 83 # disable formatting tests because they can break on black updates 81 84 "test_code_is_black_clean"
+8 -3
pkgs/tools/misc/ntfy-webpush/default.nix pkgs/tools/misc/ntfy/webpush.nix
··· 1 - { lib, python3Packages, fetchFromGitHub }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pywebpush 5 + , py-vapid 6 + }: 2 7 3 - python3Packages.buildPythonPackage rec { 8 + buildPythonPackage rec { 4 9 pname = "ntfy-webpush"; 5 10 version = "0.1.3"; 6 11 ··· 17 22 --replace "'ntfy', " "" 18 23 ''; 19 24 20 - propagatedBuildInputs = with python3Packages; [ 25 + propagatedBuildInputs = [ 21 26 pywebpush 22 27 py-vapid 23 28 ];
+17 -5
pkgs/tools/misc/ntfy/default.nix
··· 1 - { lib, python3Packages, fetchFromGitHub, fetchpatch }: 1 + { lib 2 + , python39 3 + , fetchFromGitHub 4 + , fetchpatch 5 + }: 2 6 3 - python3Packages.buildPythonApplication rec { 7 + let 8 + python = python39.override { 9 + packageOverrides = self: super: { 10 + ntfy-webpush = self.callPackage ./webpush.nix { }; 11 + }; 12 + }; 13 + in python.pkgs.buildPythonApplication rec { 4 14 pname = "ntfy"; 5 15 version = "2.7.0"; 16 + 17 + format = "setuptools"; 6 18 7 19 src = fetchFromGitHub { 8 20 owner = "dschep"; ··· 11 23 sha256 = "09f02cn4i1l2aksb3azwfb70axqhn7d0d0vl2r6640hqr74nc1cv"; 12 24 }; 13 25 14 - checkInputs = with python3Packages; [ 26 + checkInputs = with python.pkgs; [ 15 27 mock 16 28 ]; 17 29 18 - propagatedBuildInputs = with python3Packages; [ 30 + propagatedBuildInputs = with python.pkgs; [ 19 31 requests ruamel-yaml appdirs 20 32 sleekxmpp dnspython 21 33 emoji ··· 37 49 ]; 38 50 39 51 checkPhase = '' 40 - HOME=$(mktemp -d) ${python3Packages.python.interpreter} setup.py test 52 + HOME=$(mktemp -d) ${python.interpreter} setup.py test 41 53 ''; 42 54 43 55 meta = with lib; {
+5
pkgs/tools/networking/cantoolz/default.nix
··· 17 17 18 18 patches = [ 19 19 (fetchpatch { 20 + # Import Iterable from collections.abc 21 + url = "https://github.com/CANToolz/CANToolz/commit/9e818946716a744b3c7356f248e24ea650791d1f.patch"; 22 + hash = "sha256-BTQ0Io2RF8WpWlLoYfBj8IhL92FRR8ustGClt28/R8c="; 23 + }) 24 + (fetchpatch { 20 25 # Replace time.clock() which was removed, https://github.com/CANToolz/CANToolz/pull/30 21 26 url = "https://github.com/CANToolz/CANToolz/pull/30/commits/d75574523d3b273c40fb714532c4de27f9e6dd3e.patch"; 22 27 sha256 = "0g91hywg5q6f2qk1awgklywigclrbhh6a6mwd0kpbkk1wawiiwbc";
+9 -3
pkgs/top-level/all-packages.nix
··· 14425 14425 # available as `pythonPackages.tkinter` and can be used as any other Python package. 14426 14426 # When switching these sets, please update docs at ../../doc/languages-frameworks/python.md 14427 14427 python2 = python27; 14428 - python3 = python39; 14428 + python3 = python310; 14429 14429 14430 14430 # pythonPackages further below, but assigned here because they need to be in sync 14431 14431 python2Packages = dontRecurseIntoAttrs python27Packages; 14432 - python3Packages = dontRecurseIntoAttrs python39Packages; 14432 + python3Packages = dontRecurseIntoAttrs python310Packages; 14433 14433 14434 14434 pypy = pypy2; 14435 14435 pypy2 = pypy27; ··· 14468 14468 python39Full = python39.override { 14469 14469 self = python39Full; 14470 14470 pythonAttr = "python39Full"; 14471 + bluezSupport = true; 14472 + x11Support = true; 14473 + }; 14474 + python310Full = python310.override { 14475 + self = python310Full; 14476 + pythonAttr = "python310Full"; 14471 14477 bluezSupport = true; 14472 14478 x11Support = true; 14473 14479 }; ··· 26058 26064 26059 26065 eq10q = callPackage ../applications/audio/eq10q { }; 26060 26066 26061 - errbot = python3Packages.callPackage ../applications/networking/errbot { }; 26067 + errbot = callPackage ../applications/networking/errbot { }; 26062 26068 26063 26069 espeak-classic = callPackage ../applications/audio/espeak { }; 26064 26070
+1
pkgs/top-level/python-aliases.nix
··· 97 97 mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29 98 98 net2grid = gridnet; # add 2022-04-22 99 99 nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16 100 + ordereddict = throw "ordereddict has been removed because it is only useful on unsupported python versions."; # added 2022-05-28 100 101 pam = python-pam; # added 2020-09-07. 101 102 PasteDeploy = pastedeploy; # added 2021-10-07 102 103 pathpy = path; # added 2022-04-12
+4 -4
pkgs/top-level/python-packages.nix
··· 885 885 886 886 azure-cosmosdb-table = callPackage ../development/python-modules/azure-cosmosdb-table { }; 887 887 888 + azure-data-tables = callPackage ../development/python-modules/azure-data-tables { }; 889 + 888 890 azure-datalake-store = callPackage ../development/python-modules/azure-datalake-store { }; 889 891 890 892 azure-eventgrid = callPackage ../development/python-modules/azure-eventgrid { }; ··· 5914 5916 5915 5917 nsapi = callPackage ../development/python-modules/nsapi { }; 5916 5918 5917 - ntfy-webpush = callPackage ../tools/misc/ntfy-webpush { }; 5918 - 5919 5919 ntc-templates = callPackage ../development/python-modules/ntc-templates { }; 5920 5920 5921 5921 ntlm-auth = callPackage ../development/python-modules/ntlm-auth { }; ··· 6121 6121 optuna = callPackage ../development/python-modules/optuna { }; 6122 6122 6123 6123 opuslib = callPackage ../development/python-modules/opuslib { }; 6124 - 6125 - ordereddict = callPackage ../development/python-modules/ordereddict { }; 6126 6124 6127 6125 orderedmultidict = callPackage ../development/python-modules/orderedmultidict { }; 6128 6126 ··· 10602 10600 }; 10603 10601 10604 10602 trio-asyncio = callPackage ../development/python-modules/trio-asyncio { }; 10603 + 10604 + trio-websocket = callPackage ../development/python-modules/trio-websocket { }; 10605 10605 10606 10606 trueskill = callPackage ../development/python-modules/trueskill { }; 10607 10607