3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #175805 from NixOS/python-updates

Python Updates 2022-06-01 (was: python3: 3.9 -> 3.10)
This commit is contained in:
Martin Weinelt 2022-06-08 20:28:39 +02:00 committed by GitHub
commit 351556ffac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
173 changed files with 1815 additions and 1119 deletions

View file

@ -8,9 +8,9 @@
Several versions of the Python interpreter are available on Nix, as well as a
high amount of packages. The attribute `python3` refers to the default
interpreter, which is currently CPython 3.9. The attribute `python` refers to
interpreter, which is currently CPython 3.10. The attribute `python` refers to
CPython 2.7 for backwards-compatibility. It is also possible to refer to
specific versions, e.g. `python38` refers to CPython 3.8, and `pypy` refers to
specific versions, e.g. `python39` refers to CPython 3.9, and `pypy` refers to
the default PyPy interpreter.
Python is used a lot, and in different ways. This affects also how it is
@ -26,10 +26,10 @@ however, are in separate sets, with one set per interpreter version.
The interpreters have several common attributes. One of these attributes is
`pkgs`, which is a package set of Python libraries for this specific
interpreter. E.g., the `toolz` package corresponding to the default interpreter
is `python.pkgs.toolz`, and the CPython 3.8 version is `python38.pkgs.toolz`.
is `python.pkgs.toolz`, and the CPython 3.9 version is `python39.pkgs.toolz`.
The main package set contains aliases to these package sets, e.g.
`pythonPackages` refers to `python.pkgs` and `python38Packages` to
`python38.pkgs`.
`pythonPackages` refers to `python.pkgs` and `python39Packages` to
`python39.pkgs`.
#### Installing Python and packages {#installing-python-and-packages}
@ -54,7 +54,7 @@ with `python.buildEnv` or `python.withPackages` where the interpreter and other
executables are wrapped to be able to find each other and all of the modules.
In the following examples we will start by creating a simple, ad-hoc environment
with a nix-shell that has `numpy` and `toolz` in Python 3.8; then we will create
with a nix-shell that has `numpy` and `toolz` in Python 3.9; then we will create
a re-usable environment in a single-file Python script; then we will create a
full Python environment for development with this same environment.
@ -70,10 +70,10 @@ temporary shell session with a Python and a *precise* list of packages (plus
their runtime dependencies), with no other Python packages in the Python
interpreter's scope.
To create a Python 3.8 session with `numpy` and `toolz` available, run:
To create a Python 3.9 session with `numpy` and `toolz` available, run:
```sh
$ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy toolz ])'
$ nix-shell -p 'python39.withPackages(ps: with ps; [ numpy toolz ])'
```
By default `nix-shell` will start a `bash` session with this interpreter in our
@ -81,8 +81,8 @@ By default `nix-shell` will start a `bash` session with this interpreter in our
```Python console
[nix-shell:~/src/nixpkgs]$ python3
Python 3.8.1 (default, Dec 18 2019, 19:06:26)
[GCC 9.2.0] on linux
Python 3.9.12 (main, Mar 23 2022, 21:36:19)
[GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy; import toolz
```
@ -102,13 +102,16 @@ will still get 1 wrapped Python interpreter. We can start the interpreter
directly like so:
```sh
$ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy toolz requests ])' --run python3
these derivations will be built:
/nix/store/xbdsrqrsfa1yva5s7pzsra8k08gxlbz1-python3-3.8.1-env.drv
building '/nix/store/xbdsrqrsfa1yva5s7pzsra8k08gxlbz1-python3-3.8.1-env.drv'...
created 277 symlinks in user environment
Python 3.8.1 (default, Dec 18 2019, 19:06:26)
[GCC 9.2.0] on linux
$ nix-shell -p "python39.withPackages (ps: with ps; [ numpy toolz requests ])" --run python3
this derivation will be built:
/nix/store/mpn7k6bkjl41fm51342rafaqfsl10qs4-python3-3.9.12-env.drv
this path will be fetched (0.09 MiB download, 0.41 MiB unpacked):
/nix/store/5gaiacnzi096b6prc6aa1pwrhncmhc8b-python3.9-toolz-0.11.2
copying path '/nix/store/5gaiacnzi096b6prc6aa1pwrhncmhc8b-python3.9-toolz-0.11.2' from 'https://cache.nixos.org'...
building '/nix/store/mpn7k6bkjl41fm51342rafaqfsl10qs4-python3-3.9.12-env.drv'...
created 279 symlinks in user environment
Python 3.9.12 (main, Mar 23 2022, 21:36:19)
[GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>
@ -147,7 +150,7 @@ Executing this script requires a `python3` that has `numpy`. Using what we learn
in the previous section, we could startup a shell and just run it like so:
```ShellSession
$ nix-shell -p 'python38.withPackages(ps: with ps; [ numpy ])' --run 'python3 foo.py'
$ nix-shell -p 'python39.withPackages(ps: with ps; [ numpy ])' --run 'python3 foo.py'
The dot product of [1 2] and [3 4] is: 11
```
@ -210,12 +213,12 @@ create a single script with Python dependencies, but in the course of normal
development we're usually working in an entire package repository.
As explained in the Nix manual, `nix-shell` can also load an expression from a
`.nix` file. Say we want to have Python 3.8, `numpy` and `toolz`, like before,
`.nix` file. Say we want to have Python 3.9, `numpy` and `toolz`, like before,
in an environment. We can add a `shell.nix` file describing our dependencies:
```nix
with import <nixpkgs> {};
(python38.withPackages (ps: [ps.numpy ps.toolz])).env
(python39.withPackages (ps: [ps.numpy ps.toolz])).env
```
And then at the command line, just typing `nix-shell` produces the same
@ -229,7 +232,7 @@ What's happening here?
imports the `<nixpkgs>` function, `{}` calls it and the `with` statement
brings all attributes of `nixpkgs` in the local scope. These attributes form
the main package set.
2. Then we create a Python 3.8 environment with the `withPackages` function, as before.
2. Then we create a Python 3.9 environment with the `withPackages` function, as before.
3. The `withPackages` function expects us to provide a function as an argument
that takes the set of all Python packages and returns a list of packages to
include in the environment. Here, we select the packages `numpy` and `toolz`
@ -240,7 +243,7 @@ To combine this with `mkShell` you can:
```nix
with import <nixpkgs> {};
let
pythonEnv = python38.withPackages (ps: [
pythonEnv = python39.withPackages (ps: [
ps.numpy
ps.toolz
]);
@ -378,8 +381,8 @@ information. The output of the function is a derivation.
An expression for `toolz` can be found in the Nixpkgs repository. As explained
in the introduction of this Python section, a derivation of `toolz` is available
for each interpreter version, e.g. `python38.pkgs.toolz` refers to the `toolz`
derivation corresponding to the CPython 3.8 interpreter.
for each interpreter version, e.g. `python39.pkgs.toolz` refers to the `toolz`
derivation corresponding to the CPython 3.9 interpreter.
The above example works when you're directly working on
`pkgs/top-level/python-packages.nix` in the Nixpkgs repository. Often though,
@ -392,11 +395,11 @@ and adds it along with a `numpy` package to a Python environment.
with import <nixpkgs> {};
( let
my_toolz = python38.pkgs.buildPythonPackage rec {
my_toolz = python39.pkgs.buildPythonPackage rec {
pname = "toolz";
version = "0.10.0";
src = python38.pkgs.fetchPypi {
src = python39.pkgs.fetchPypi {
inherit pname version;
sha256 = "08fdd5ef7c96480ad11c12d472de21acd32359996f69a5259299b540feba4560";
};
@ -414,7 +417,7 @@ with import <nixpkgs> {};
```
Executing `nix-shell` will result in an environment in which you can use
Python 3.8 and the `toolz` package. As you can see we had to explicitly mention
Python 3.9 and the `toolz` package. As you can see we had to explicitly mention
for which Python version we want to build a package.
So, what did we do here? Well, we took the Nix expression that we used earlier
@ -742,7 +745,7 @@ If we create a `shell.nix` file which calls `buildPythonPackage`, and if `src`
is a local source, and if the local source has a `setup.py`, then development
mode is activated.
In the following example we create a simple environment that has a Python 3.8
In the following example we create a simple environment that has a Python 3.9
version of our package in it, as well as its dependencies and other packages we
like to have in the environment, all specified with `propagatedBuildInputs`.
Indeed, we can just add any package we like to have in our environment to
@ -750,7 +753,7 @@ Indeed, we can just add any package we like to have in our environment to
```nix
with import <nixpkgs> {};
with python38Packages;
with python39Packages;
buildPythonPackage rec {
name = "mypackage";
@ -828,9 +831,9 @@ and in this case the `python38` interpreter is automatically used.
### Interpreters {#interpreters}
Versions 2.7, 3.7, 3.8 and 3.9 of the CPython interpreter are available as
respectively `python27`, `python37`, `python38` and `python39`. The
aliases `python2` and `python3` correspond to respectively `python27` and
Versions 2.7, 3.7, 3.8, 3.9 and 3.10 of the CPython interpreter are available
as respectively `python27`, `python37`, `python38`, `python39` and `python310`.
The aliases `python2` and `python3` correspond to respectively `python27` and
`python39`. The attribute `python` maps to `python2`. The PyPy interpreters
compatible with Python 2.7 and 3 are available as `pypy27` and `pypy3`, with
aliases `pypy2` mapping to `pypy27` and `pypy` mapping to `pypy2`. The Nix

View file

@ -9,11 +9,11 @@
let optionals = lib.optionals; in
python3.pkgs.buildPythonApplication rec {
pname = "quodlibet${tag}";
version = "4.4.0";
version = "4.5.0";
src = fetchurl {
url = "https://github.com/quodlibet/quodlibet/releases/download/release-${version}/quodlibet-${version}.tar.gz";
sha256 = "sha256-oDMY0nZ+SVlVF2PQqH+tl3OHr3EmCP5XJxQXaiS782c=";
sha256 = "sha256-MBYVgp9lLLr+2zVTkjcWKli8HucaVn0kn3eJ2SaCRbw=";
};
nativeBuildInputs = [ wrapGAppsHook gettext ];

View file

@ -1,14 +1,14 @@
{ stdenv
, lib
, fetchurl
, python3
, python39
, nodePackages
, wkhtmltopdf
, nixosTests
}:
let
python = python3.override {
python = python39.override {
packageOverrides = self: super: {
click = super.click.overridePythonAttrs (old: rec {
version = "7.1.2";

View file

@ -1,9 +1,9 @@
{ lib, fetchFromGitHub, cacert, openssl, nixosTests
, python3
, python39
}:
let
python3' = python3.override {
python3' = python39.override {
packageOverrides = self: super: {
sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec {
version = "1.3.24";
@ -19,7 +19,7 @@ let
});
flask_migrate = super.flask_migrate.overridePythonAttrs (oldAttrs: rec {
version = "2.7.0";
src = python3.pkgs.fetchPypi {
src = self.fetchPypi {
pname = "Flask-Migrate";
inherit version;
sha256 = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38";

View file

@ -1,32 +1,12 @@
{ lib
, ansi
, buildPythonApplication
, colorlog
, daemonize
, deepmerge
, dulwich
, fetchFromGitHub
, flask
, glibcLocales
, hypchat
, irc
, jinja2
, markdown
, mock
, pyasn1
, pyasn1-modules
, pygments
, pygments-markdown-lexer
, pyopenssl
, pytestCheckHook
, requests
, slackclient
, sleekxmpp
, telegram
, webtest
, python39
}:
buildPythonApplication rec {
let
python3 = python39;
in python3.pkgs.buildPythonApplication rec {
pname = "errbot";
version = "6.1.7";
@ -41,7 +21,7 @@ buildPythonApplication rec {
buildInputs = [ glibcLocales ];
propagatedBuildInputs = [
propagatedBuildInputs = with python3.pkgs; [
ansi
colorlog
daemonize
@ -64,7 +44,7 @@ buildPythonApplication rec {
webtest
];
checkInputs = [
checkInputs = with python3.pkgs; [
mock
pytestCheckHook
];

View file

@ -19,6 +19,10 @@ let
rev = "v${version}";
sha256 = "0k4bdlwjna6f1k19jki4xqgckrinkkw8b9wihzymr1l04rwd05nw";
};
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [
super.six
super.requests.optional-dependencies.socks
];
doCheck = false;
});
};

View file

@ -9,6 +9,12 @@ python3.pkgs.buildPythonPackage rec {
sha256 = "1rcxj943kgzs746f5jrb72x1cp4v50rk3qmad0m99a02vndscb5d";
};
postPatch = ''
# remove version check which breaks on 3.10
substituteInPlace setup.py \
--replace 'if float(sys.version[:3])<3.6:' 'if False:'
'';
propagatedBuildInputs = with python3.pkgs; [ numpy ];
# To prevent ERROR: diffpeak_cmd (unittest.loader._FailedTest) for obsolete
@ -21,5 +27,7 @@ python3.pkgs.buildPythonPackage rec {
license = licenses.bsd3;
maintainers = with maintainers; [ gschwartz ];
platforms = platforms.linux;
# error: PyThreadState {aka struct _ts} has no member named use_tracing; did you mean tracing?
broken = true;
};
}

View file

@ -1,5 +1,15 @@
{ stdenv, lib, fetchgit, flex, bison, pkg-config, which
, pythonSupport ? false, python ? null, swig, libyaml
{ stdenv
, lib
, fetchgit
, fetchpatch
, flex
, bison
, pkg-config
, which
, pythonSupport ? false
, python ? null
, swig
, libyaml
}:
stdenv.mkDerivation rec {
@ -12,8 +22,17 @@ stdenv.mkDerivation rec {
sha256 = "sha256-gx9LG3U9etWhPxm7Ox7rOu9X5272qGeHqZtOe68zFs4=";
};
patches = [
# fix python 3.10 compatibility
# based on without requiring the setup.py rework
# https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/?id=383e148b70a47ab15f97a19bb999d54f9c3e810f
./python-3.10.patch
];
nativeBuildInputs = [ flex bison pkg-config which ]
++ lib.optionals pythonSupport [ python swig ];
buildInputs = [ libyaml ];
nativeBuildInputs = [ flex bison pkg-config which ] ++ lib.optionals pythonSupport [ python swig ];
postPatch = ''
patchShebangs pylibfdt/

View file

@ -0,0 +1,28 @@
diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i
index 51ee801..075ef70 100644
--- a/pylibfdt/libfdt.i
+++ b/pylibfdt/libfdt.i
@@ -1044,9 +1044,9 @@ typedef uint32_t fdt32_t;
$result = Py_None;
else
%#if PY_VERSION_HEX >= 0x03000000
- $result = Py_BuildValue("y#", $1, *arg4);
+ $result = Py_BuildValue("y#", $1, (Py_ssize_t)*arg4);
%#else
- $result = Py_BuildValue("s#", $1, *arg4);
+ $result = Py_BuildValue("s#", $1, (Py_ssize_t)*arg4);
%#endif
}
diff --git a/pylibfdt/setup.py b/pylibfdt/setup.py
index ef40f15..81e161a 100755
--- a/pylibfdt/setup.py
+++ b/pylibfdt/setup.py
@@ -42,6 +42,7 @@ def get_version():
libfdt_module = Extension(
'_libfdt',
sources=[os.path.join(srcdir, 'libfdt.i')],
+ define_macros=[('PY_SSIZE_T_CLEAN', None)],
include_dirs=[os.path.join(srcdir, '../libfdt')],
libraries=['fdt'],
library_dirs=[os.path.join(top_builddir, 'libfdt')],

View file

@ -230,7 +230,7 @@ in {
enableOptimizations = false;
enableLTO = false;
mimetypesSupport = false;
} // sources.python39)).overrideAttrs(old: {
} // sources.python310)).overrideAttrs(old: {
# TODO(@Artturin): Add this to the main cpython expr
strictDeps = true;
pname = "python3-minimal";

View file

@ -4,7 +4,7 @@
, autoconf213
, pkg-config
, perl
, python3
, python39
, zip
, buildPackages
, which
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
rustc.llvmPackages.llvm # for llvm-objdump
perl
pkg-config
python3
python39
rust-cbindgen
rustc
which

View file

@ -1,12 +1,15 @@
{ lib, stdenv, fetchzip
, boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
, libwebp, libxml2, proj, python3, python ? python3, sqlite, zlib
, sconsPackages
# supply a postgresql package to enable the PostGIS input plugin
, postgresql ? null
}:
stdenv.mkDerivation rec {
let
scons = sconsPackages.scons_3_0_1;
in stdenv.mkDerivation rec {
pname = "mapnik";
version = "3.1.0";
@ -16,10 +19,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-qqPqN4vs3ZsqKgnx21yQhX8OzHca/0O+3mvQ/vnC5EY=";
};
postPatch = ''
substituteInPlace configure \
--replace '$PYTHON scons/scons.py' ${scons}/bin/scons
rm -r scons
'';
# a distinct dev output makes python-mapnik fail
outputs = [ "out" ];
nativeBuildInputs = [ python3 ];
nativeBuildInputs = [ scons ];
buildInputs = [
boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff

View file

@ -1,5 +1,15 @@
{ lib, stdenv, fetchurl, boost, zlib, libevent, openssl, python3, cmake, pkg-config
, bison, flex
{ lib
, stdenv
, fetchurl
, boost
, zlib
, libevent
, openssl
, python3
, cmake
, pkg-config
, bison
, flex
, static ? stdenv.hostPlatform.isStatic
}:
@ -12,15 +22,39 @@ stdenv.mkDerivation rec {
sha256 = "sha256-9GC1wcow2JGP+V6j62KRs5Uc9RhVNWYIjz8r6JgfYgk=";
};
# Workaround to make the python wrapper not drop this package:
# Workaround to make the Python wrapper not drop this package:
# pythonFull.buildEnv.override { extraLibs = [ thrift ]; }
pythonPath = [];
nativeBuildInputs = [ cmake pkg-config bison flex ];
buildInputs = [ boost zlib libevent openssl ]
++ lib.optionals (!static) [ (python3.withPackages (ps: [ps.twisted])) ];
nativeBuildInputs = [
bison
cmake
flex
pkg-config
];
preConfigure = "export PY_PREFIX=$out";
buildInputs = [
boost
libevent
openssl
zlib
] ++ lib.optionals (!static) [
(python3.withPackages (ps: [ps.twisted]))
];
postPatch = ''
# Python 3.10 related failures:
# SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
# AttributeError: module 'collections' has no attribute 'Hashable'
substituteInPlace test/py/RunClientServer.py \
--replace "'FastbinaryTest.py'," "" \
--replace "'TestEof.py'," "" \
--replace "'TestFrozen.py'," ""
'';
preConfigure = ''
export PY_PREFIX=$out
'';
patches = [
# ToStringTest.cpp is failing from some reason due to locale issue, this
@ -43,12 +77,12 @@ stdenv.mkDerivation rec {
disabledTests = [
"PythonTestSSLSocket"
] ++ lib.optionals stdenv.isDarwin [
# tests that hang up in the darwin sandbox
# Tests that hang up in the Darwin sandbox
"SecurityTest"
"SecurityFromBufferTest"
"python_test"
# tests that fail in the darwin sandbox when trying to use network
# Tests that fail in the Darwin sandbox when trying to use network
"UnitTests"
"TInterruptTest"
"TServerIntegrationTest"
@ -62,6 +96,7 @@ stdenv.mkDerivation rec {
];
doCheck = !static;
checkPhase = ''
runHook preCheck
@ -69,6 +104,7 @@ stdenv.mkDerivation rec {
runHook postCheck
'';
enableParallelChecking = false;
meta = with lib; {
@ -76,6 +112,6 @@ stdenv.mkDerivation rec {
homepage = "https://thrift.apache.org/";
license = licenses.asl20;
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ maintainers.bjornfor ];
maintainers = with maintainers; [ bjornfor ];
};
}

View file

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, cmake
@ -7,17 +8,23 @@
stdenv.mkDerivation rec {
pname = "unicorn";
version = "2.0.0-rc5";
version = "2.0.0-rc7";
src = fetchFromGitHub {
owner = "unicorn-engine";
repo = pname;
rev = version;
sha256 = "1q9k8swnq4qsi54zdfaap69z56w3yj4n4ggm9pscmmmr69nply5f";
hash = "sha256-qlxtFCJBmouPuUEu8RduZM+rbOr52sGjdb8ZRHWmJ/w=";
};
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = lib.optionals stdenv.isDarwin [
IOKit
];
meta = with lib; {
description = "Lightweight multi-platform CPU emulator library";

View file

@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "gitpython";
version = "3.1.25";
version = "3.1.27";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "gitpython-developers";
repo = "GitPython";
rev = version;
sha256 = "sha256-ienc7zvLe6t8rkMtC6wVIewUqQBFdFbLc8iPT6aPVrE=";
sha256 = "sha256-RA+6JFXHUQoXGErV8+aYuJPsfXzNSZK3kTm6eMbQIss=";
};
patches = [

View file

@ -1,32 +1,36 @@
{ lib,
stdenv,
buildPythonPackage,
fetchPypi,
libspatialindex,
numpy,
pytestCheckHook
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, libspatialindex
, numpy
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "Rtree";
version = "0.9.7";
pname = "rtree";
version = "1.0.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "be8772ca34699a9ad3fb4cfe2cfb6629854e453c10b3328039301bbfc128ca3e";
pname = "Rtree";
inherit version;
sha256 = "sha256-0Eg0ghITRrCTuaQlGNQPkhrfRFkVt66jB+smdoyDloI=";
};
buildInputs = [ libspatialindex ];
patchPhase = ''
postPatch = ''
substituteInPlace rtree/finder.py --replace \
"find_library('spatialindex_c')" "'${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}'"
'find_library("spatialindex_c")' '"${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}"'
'';
buildInputs = [ libspatialindex ];
checkInputs = [
numpy
pytestCheckHook
];
pythonImportsCheck = [ "rtree" ];
meta = with lib; {

View file

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "aiomysql";
version = "0.1.0";
version = "0.1.1";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "aio-libs";
repo = pname;
rev = "v${version}";
hash = "sha256-TNaQ4EKiHwSmPpUco0pA5SBP3fljWQ/Kd5RLs649fu0=";
hash = "sha256-rYEos2RuE2xI59httYlN21smBH4/fU4uT48FWwrI6Qg=";
};
nativeBuildInputs = [

View file

@ -32,7 +32,8 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=aiosteamist" ""
--replace "--cov=aiosteamist" "" \
--replace 'xmltodict = "^0.12.0"' 'xmltodict = "*"'
'';
pythonImportsCheck = [

View file

@ -21,7 +21,7 @@
buildPythonPackage rec {
pname = "ansible-later";
version = "2.0.13";
version = "2.0.14";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "thegeeklab";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9xVFvXCHjgF+7asO1ialGIofJwsRRRiydo/Ui2C+Wig=";
hash = "sha256-iY+5p6LNrlCTGi61cm2DJdyt8SmAwYqKmXNXescjAVQ=";
};
nativeBuildInputs = [
@ -63,7 +63,7 @@ buildPythonPackage rec {
--replace " --cov=ansiblelater --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail" "" \
--replace 'PyYAML = "6.0"' 'PyYAML = "*"' \
--replace 'unidiff = "0.7.3"' 'unidiff = "*"' \
--replace 'jsonschema = "4.4.0"' 'jsonschema = "*"'
--replace 'jsonschema = "' 'jsonschema = "^'
'';
postInstall = ''

View file

@ -9,8 +9,9 @@ buildPythonPackage rec {
sourceRoot = "source/runtime/Python3";
# in 4.9, test was renamed to tests
checkPhase = ''
cd test
cd test*
${python.interpreter} ctest.py
'';

View file

@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "apipkg";
version = "2.1.0";
version = "2.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "a4be31cf8081e660d2cdea6edfb8a0f39f385866abdcfcfa45e5a0887345cb70";
sha256 = "sha256-zKNAIkFKE5duM6HjjWoJBWfve2jQNy+SPGmaj4wIivw=";
};
nativeBuildInputs = [ setuptools-scm ];

View file

@ -6,11 +6,10 @@
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, fetchpatch
}:
buildPythonPackage rec {
version = "3.5.0";
version = "3.5.2";
pname = "asgiref";
format = "setuptools";
@ -20,17 +19,9 @@ buildPythonPackage rec {
owner = "django";
repo = pname;
rev = version;
sha256 = "sha256-eWDsd8iWK1C/X3t/fKAM1i4hyTM/daGTd8CDSgDTL/U=";
sha256 = "sha256-56suF63ePRDprqODhVIPCEGiO8UGgWrpwg2wYEs6OOE=";
};
patches = [
(fetchpatch {
name = "remove-sock-nonblock-in-tests.patch";
url = "https://github.com/django/asgiref/commit/d451a724c93043b623e83e7f86743bbcd9a05c45.patch";
sha256 = "0whdsn5isln4dqbqqngvsy4yxgaqgpnziz0cndj1zdxim8cdicj7";
})
];
propagatedBuildInputs = [
async-timeout
];

View file

@ -5,17 +5,18 @@
, pythonOlder
, isPyPy
, lazy-object-proxy
, wrapt
, setuptools
, setuptools-scm
, typing-extensions
, typed-ast
, pytestCheckHook
, setuptools-scm
, pylint
, pytestCheckHook
, wrapt
}:
buildPythonPackage rec {
pname = "astroid";
version = "2.11.2"; # Check whether the version is compatible with pylint
version = "2.11.5"; # Check whether the version is compatible with pylint
disabled = pythonOlder "3.6.2";
@ -23,7 +24,7 @@ buildPythonPackage rec {
owner = "PyCQA";
repo = pname;
rev = "v${version}";
sha256 = "sha256-adnvJCchsMWQxsIlenndUb6Mw1MgCNAanZcTmssmsEc=";
sha256 = "sha256-GKda3hNdOrsd11pi+6NpYodW4TAgSvqbv2hF4GaIvtM=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -34,19 +35,19 @@ buildPythonPackage rec {
propagatedBuildInputs = [
lazy-object-proxy
setuptools
wrapt
] ++ lib.optionals (pythonOlder "3.10") [
typing-extensions
] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast;
] ++ lib.optionals (!isPyPy && pythonOlder "3.8") [
typed-ast
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# assert (1, 1) == (1, 16)
"test_end_lineno_string"
] ++ lib.optionals (pythonAtLeast "3.10") [
# AssertionError: Lists differ: ['ABC[16 chars]yBase', 'Final', 'Generic', 'MyProtocol', 'Protocol', 'object'] != ['ABC[16 chars]yBase', 'Final', 'Generic', 'MyProtocol', 'object']
"test_mro_typing_extensions"
];
@ -59,7 +60,6 @@ buildPythonPackage rec {
description = "An abstract syntax tree for Python with inference support";
homepage = "https://github.com/PyCQA/astroid";
license = licenses.lgpl21Plus;
platforms = platforms.all;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -14,10 +14,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ];
postPatch = ''
substituteInPlace setup.py \
--replace 'httpx>=0.20.*,<=0.22.*' 'httpx'
sed -i "s/httpx.*/httpx',/" setup.py
'';
# has no tests
doCheck = false;
pythonImportsCheck = [ "audible"];
meta = with lib; {

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, azure-core
, msrest
}:
buildPythonPackage rec {
pname = "azure-data-tables";
version = "12.4.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-3V/I3pHi+JCO+kxkyn9jz4OzBoqbpCYpjeO1QTnpZlw=";
};
propagatedBuildInputs = [
azure-core
msrest
];
# has no tests
doCheck = false;
pythonImportsCheck = [ "azure.data.tables" ];
meta = with lib; {
description = "NoSQL data storage service that can be accessed from anywhere";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}

View file

@ -24,6 +24,12 @@ buildPythonPackage rec {
azure-mgmt-nspkg
];
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
pythonNamespaces = [ "azure.mgmt" ];
# has no tests

View file

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-mgmt-containerinstance";
version = "9.1.0";
version = "9.2.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "22164b0c59138b37bc48ba6d476bf635152bc428dcb420b521a14b8c25c797ad";
sha256 = "sha256-3rElVUvbGqF99ppZanUUrwFGtCAXak2zhMVOd6n9bkY=";
};
propagatedBuildInputs = [

View file

@ -6,13 +6,13 @@
}:
buildPythonPackage rec {
version = "9.1.0";
version = "10.0.0";
pname = "azure-mgmt-containerregistry";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-jkzGLDqrJgwCnz27lGzFk4d2q+j0P+PU8uUVGQg7MkA=";
sha256 = "sha256-HjejK28Em5AeoQ20o4fucnXTlAwADF/SEpVfHn9anZk=";
extension = "zip";
};

View file

@ -24,6 +24,12 @@ buildPythonPackage rec {
azure-mgmt-nspkg
];
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
pythonNamespaces = [ "azure.mgmt" ];
# has no tests

View file

@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "azure-storage-blob";
version = "12.11.0";
version = "12.12.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-SVNbMZC7adDZ/3o4MkaxTaTSsb3/YMrl+Rc5IMZ8p+4=";
sha256 = "sha256-9trwfRyobRia4VybGFnf9bcSe/JKB6S75B4LgeAdYvc=";
};
propagatedBuildInputs = [

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, chardet
, html5lib
, lxml
, pytestCheckHook
@ -22,7 +23,12 @@ buildPythonPackage rec {
hash = "sha256-rZqlW2XvKAjrQF9Gz3Tff8twRNXLwmSH+W6y7y5DZpM=";
};
nativeBuildInputs = [
sphinxHook
];
propagatedBuildInputs = [
chardet
html5lib
lxml
soupsieve
@ -31,7 +37,6 @@ buildPythonPackage rec {
checkInputs = [
pytestCheckHook
];
nativeBuildInputs = [ sphinxHook ];
pythonImportsCheck = [
"bs4"

View file

@ -25,6 +25,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# psutil.NoSuchProcess: process no longer exists (pid=168)
"test_set_pdeathsig"
];
pythonImportsCheck = [
"billiard"
];

View file

@ -4,7 +4,6 @@
, python-dateutil
, jmespath
, docutils
, ordereddict
, simplejson
, mock
, nose
@ -24,7 +23,6 @@ buildPythonPackage rec {
python-dateutil
jmespath
docutils
ordereddict
simplejson
urllib3
];

View file

@ -7,12 +7,13 @@
, msgpack
, pytestCheckHook
, pythonOlder
, redis
, requests
}:
buildPythonPackage rec {
pname = "cachecontrol";
version = "0.12.10";
version = "0.12.11";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -21,11 +22,10 @@ buildPythonPackage rec {
owner = "ionrock";
repo = pname;
rev = "v${version}";
hash = "sha256-mgvL0q10UbPHY1H3tJprke5p8qNl3HNYoeLAERZTcTs=";
hash = "sha256-uUPIQz/n347Q9G7NDOGuB760B/KxOglUxiS/rYjt5Po=";
};
propagatedBuildInputs = [
lockfile
msgpack
requests
];
@ -34,12 +34,17 @@ buildPythonPackage rec {
cherrypy
mock
pytestCheckHook
];
] ++ passthru.optional-dependencies.filecache;
pythonImportsCheck = [
"cachecontrol"
];
passthru.optional-dependencies = {
filecache = [ lockfile ];
redis = [ redis ];
};
meta = with lib; {
description = "Httplib2 caching for requests";
homepage = "https://github.com/ionrock/cachecontrol";

View file

@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "cachetools";
version = "5.0.0";
version = "5.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "tkem";
repo = pname;
rev = "v${version}";
hash = "sha256-urTkls1S83m7Eo7chPaQc5gxz0omZBToNYa8upQEiOo=";
hash = "sha256-DheHTD62f1ZxoiS0y0/CzDMHvKGmEiEUAX6oaqTpB78=";
};
checkInputs = [

View file

@ -9,13 +9,13 @@
buildPythonPackage rec {
pname = "certbot";
version = "1.24.0";
version = "1.27.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-XIKFEPQKIV5s6sZ7LRnlTvsb3cF4KIaiVZ36cAN1AwA=";
sha256 = "sha256-3IKRVR1rLpOH22Mp2m0InqcPt85+jQgBSyrRL9/nMxY=";
};
sourceRoot = "source/${pname}";

View file

@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "certifi";
version = "2021.10.08";
version = "2022.05.18.1";
disabled = pythonOlder "3.5";
@ -15,7 +15,7 @@ buildPythonPackage rec {
owner = pname;
repo = "python-certifi";
rev = version;
sha256 = "sha256-SFb/spVHK15b53ZG1P147DcTjs1dqR0+MBXzpE+CWpo=";
sha256 = "sha256-uDNVzKcT45mz0zXBwPkttKV21fEcgbRamE3+QutNLjA=";
};
checkInputs = [

View file

@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "awslabs";
repo = "aws-cfn-template-flip";
rev = version;
hash = "sha256-1cV0mHc6+P0CbnLIMSSwNEzDB+1QzNjioH/EoIo40xU=";
hash = "sha256-lfhTR3+D1FvblhQGF83AB8+I8WDPBTmo+q22ksgDgt4=";
};
propagatedBuildInputs = [

View file

@ -8,9 +8,11 @@
, objgraph
, path
, portend
, pyopenssl
, pytest-forked
, pytest-services
, pytestCheckHook
, python-memcached
, pythonAtLeast
, pythonOlder
, requests-toolbelt
@ -38,15 +40,11 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
# required
cheroot
portend
more-itertools
zc_lockfile
jaraco_collections
# optional
routes
simplejson
];
checkInputs = [
@ -90,6 +88,15 @@ buildPythonPackage rec {
"cherrypy"
];
passthru.optional-dependencies = {
json = [ simplejson ];
memcached_session = [ python-memcached ];
routes_dispatcher = [ routes ];
ssl = [ pyopenssl ];
# not packaged yet
xcgi = [ /* flup */ ];
};
meta = with lib; {
description = "Object-oriented HTTP framework";
homepage = "https://www.cherrypy.org";

View file

@ -1,28 +1,46 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, pytest, mock }:
{ lib
, buildPythonPackage
, fetchPypi
, psutil
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cloudpickle";
version = "2.0.0";
disabled = isPy27; # abandoned upstream
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "5cd02f3b417a783ba84a4ec3e290ff7929009fe51f6405423cfccfadd43ba4a4";
hash = "sha256-uyM+h2pYSR2VkKZ2+Tx6VHOgj3R9Wrnff5zlZLPnk44=";
};
buildInputs = [ pytest mock ];
checkInputs = [
psutil
pytestCheckHook
];
# See README for tests invocation
checkPhase = ''
PYTHONPATH=$PYTHONPATH:'.:tests' py.test
'';
pythonImportsCheck = [
"cloudpickle"
];
# TypeError: cannot serialize '_io.FileIO' object
doCheck = false;
disabledTestPaths = [
# ModuleNotFoundError: No module named '_cloudpickle_testpkg'
"tests/cloudpickle_test.py"
];
disabledTests = [
# TypeError: cannot pickle 'EncodedFile' object
"test_pickling_special_file_handles"
];
meta = with lib; {
description = "Extended pickling support for Python objects";
homepage = "https://github.com/cloudpipe/cloudpickle";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ ];
};
}

View file

@ -1,29 +1,38 @@
{ lib, buildPythonPackage
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
, six
, mock, pytest
}:
buildPythonPackage rec {
pname = "configobj";
version = "5.0.6";
format = "setuptools";
disabled = pythonOlder "3.7";
# Pypi archives don't contain the tests
src = fetchFromGitHub {
owner = "DiffSK";
repo = pname;
rev = "v${version}";
sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw";
hash = "sha256-HMLYzVMnxvMpb3ORsbKy18oU/NkuRT0isK6NaUk6J3U=";
};
propagatedBuildInputs = [
six
];
propagatedBuildInputs = [ six ];
checkInputs = [
mock
pytestCheckHook
];
checkPhase = ''
pytest --deselect=tests/test_configobj.py::test_options_deprecation
'';
checkInputs = [ mock pytest ];
pythonImportsCheck = [
"configobj"
];
meta = with lib; {
description = "Config file reading, writing and validation";

View file

@ -12,7 +12,9 @@
, isPyPy
, cffi
, pytestCheckHook
, pytest-benchmark
, pytest-subtests
, pythonOlder
, pretend
, libiconv
, iso8601
@ -25,18 +27,19 @@ let
in
buildPythonPackage rec {
pname = "cryptography";
version = "36.0.2"; # Also update the hash in vectors.nix
version = "37.0.2"; # Also update the hash in vectors.nix
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-cPj097sqyfNAZVy6yJ1oxSevW7Q4dSKoQT6EHj5mKMk=";
sha256 = "sha256-8iStJTzJzqdWj0kHcAfSJj76VzlqLy94EUBm/VS1xo4=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sourceRoot = "${pname}-${version}/${cargoRoot}";
name = "${pname}-${version}";
sha256 = "sha256-6C4N445h4Xf2nCc9rJWpSZaNPilR9GfgbmKvNlSIFqg=";
sha256 = "sha256-qvrxvneoBXjP96AnUPyrtfmCnZo+IriHR5HbtWQ5Gk8=";
};
cargoRoot = "src/rust";
@ -63,6 +66,7 @@ buildPythonPackage rec {
iso8601
pretend
pytestCheckHook
pytest-benchmark
pytest-subtests
pytz
];

View file

@ -8,7 +8,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "cryptography_vectors";
inherit version;
sha256 = "sha256-KnkkRJoDAl+vf4dUpvQgAAHKshBzSmzmrB9r2s06aOQ=";
sha256 = "sha256-fGXT3lF1b0GBQt9gVBfsLG6WHDZPcMyKEDAwiJ1aMhk=";
};
# No tests included

View file

@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "cssutils";
version = "2.4.0";
version = "2.4.1";
disabled = pythonOlder "3.7";
@ -25,7 +25,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
hash = "sha256-LZchCoOwo/4eRGn1/5pkILB4VyA1GIsbq3EDw6NtyJs=";
hash = "sha256-+Gicb66TTLanB3xwZvLGAmwOkN560wqBaz9tWaE41jg=";
};
nativeBuildInputs = [

View file

@ -1,25 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, buildPythonPackage
, colorlog
, cryptography
, traitlets
, fetchFromGitHub
, go
, isPy27
, pythonOlder
, traitlets
}:
buildPythonPackage rec {
pname = "dask-gateway-server";
# update dask-gateway-server lock step with dask-gateway
version = "0.9.0";
disabled = isPy27;
version = "2022.4.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "82bca8a98fc1dbda9f67c8eceac59cb92abe07db6227c120a1eb1d040ea40fda";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dask";
repo = "dask-gateway";
rev = version;
hash = "sha256-Grjp7gt3Pos4cQSGV/Rynz6W/zebRI0OqDiWT4cTh8I=";
};
sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [
go
];
@ -36,15 +42,17 @@ buildPythonPackage rec {
export GO111MODULE=off
'';
# tests requires cluster for testing
# Tests requires cluster for testing
doCheck = false;
pythonImportsCheck = [ "dask_gateway_server" ];
pythonImportsCheck = [
"dask_gateway_server"
];
meta = with lib; {
description = "A multi-tenant server for securely deploying and managing multiple Dask clusters";
homepage = "https://gateway.dask.org/";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}

View file

@ -1,33 +1,63 @@
{ lib
, buildPythonPackage
, fetchPypi
, cloudpickle
, dask
, numpy, toolz # dask[array]
, distributed
, fetchPypi
, multipledispatch
, setuptools-scm
, scipy
, scikit-learn
, pytestCheckHook
, pythonOlder
, scikit-learn
, scipy
, setuptools-scm
, sparse
}:
buildPythonPackage rec {
version = "0.2.0";
pname = "dask-glm";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "58b86cebf04fe5b9e58092e1c467e32e60d01e11b71fdc628baaa9fc6d1adee5";
hash = "sha256-WLhs6/BP5bnlgJLhxGfjLmDQHhG3H9xii6qp/G0a3uU=";
};
nativeBuildInputs = [ setuptools-scm ];
checkInputs = [ pytestCheckHook ];
propagatedBuildInputs = [ cloudpickle dask numpy toolz multipledispatch scipy scikit-learn ];
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
cloudpickle
distributed
multipledispatch
scikit-learn
scipy
sparse
] ++ dask.optional-dependencies.array;
checkInputs = [
sparse
pytestCheckHook
];
pythonImportsCheck = [
"dask_glm"
];
disabledTestPaths = [
# Circular dependency with dask-ml
"dask_glm/tests/test_estimators.py"
# Test tries to imort an obsolete method
"dask_glm/tests/test_utils.py"
];
meta = with lib; {
homepage = "https://github.com/dask/dask-glm/";
description = "Generalized Linear Models with Dask";
homepage = "https://github.com/dask/dask-glm/";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}

View file

@ -13,7 +13,6 @@
, scikit-learn
, scipy
, setuptools-scm
, toolz
}:
buildPythonPackage rec {
@ -33,7 +32,6 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
dask
dask-glm
distributed
multipledispatch
@ -43,8 +41,8 @@ buildPythonPackage rec {
pandas
scikit-learn
scipy
toolz
];
] ++ dask.optional-dependencies.array
++ dask.optional-dependencies.dataframe;
# has non-standard build from source, and pypi doesn't include tests
doCheck = false;

View file

@ -4,6 +4,7 @@
, buildPythonPackage
, cloudpickle
, distributed
, fastparquet
, fetchFromGitHub
, fetchpatch
, fsspec
@ -12,17 +13,20 @@
, packaging
, pandas
, partd
, pyarrow
, pytest-rerunfailures
, pytest-xdist
, pytestCheckHook
, pythonOlder
, pyyaml
, scipy
, toolz
, zarr
}:
buildPythonPackage rec {
pname = "dask";
version = "2022.02.1";
version = "2022.05.2";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -31,7 +35,7 @@ buildPythonPackage rec {
owner = "dask";
repo = pname;
rev = version;
hash = "sha256-A8ktvfpow/QKAEEt9SUnkTqYFJCrV1mgnuDIP3gdyrE=";
hash = "sha256-8M70Pf31PhYnBPRhSG55eWg6gK0lxsIFKF+cRCsf0/U=";
};
propagatedBuildInputs = [
@ -41,48 +45,71 @@ buildPythonPackage rec {
partd
pyyaml
toolz
pandas
jinja2
bokeh
numpy
];
doCheck = true;
passthru.optional-dependencies = {
array = [
numpy
];
complete = [
distributed
];
dataframe = [
numpy
pandas
];
distributed = [
distributed
];
diagnostics = [
bokeh
jinja2
];
};
checkInputs = [
fastparquet
pyarrow
pytestCheckHook
pytest-rerunfailures
pytest-xdist
scipy
zarr
];
dontUseSetuptoolsCheck = true;
postPatch = ''
# versioneer hack to set version of github package
# versioneer hack to set version of GitHub package
echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py
substituteInPlace setup.py \
--replace "version=versioneer.get_version()," "version='${version}'," \
--replace "cmdclass=versioneer.get_cmdclass()," ""
substituteInPlace setup.cfg \
--replace " --durations=10" "" \
--replace " -v" ""
'';
pytestFlagsArray = [
# rerun failed tests up to three times
# Rerun failed tests up to three times
"--reruns 3"
# don't run tests that require network access
# Don't run tests that require network access
"-m 'not network'"
# Ignore warning about pyarrow 5.0.0 feautres
"-W"
"ignore::FutureWarning"
];
disabledTests = lib.optionals stdenv.isDarwin [
# this test requires features of python3Packages.psutil that are
# Test requires features of python3Packages.psutil that are
# blocked in sandboxed-builds
"test_auto_blocksize_csv"
# AttributeError: 'str' object has no attribute 'decode'
"test_read_dir_nometa"
] ++ [
# A deprecation warning from newer sqlalchemy versions makes these tests
# to fail https://github.com/dask/dask/issues/7406
"test_sql"
# Test interrupt fails intermittently https://github.com/dask/dask/issues/2192
"test_interrupt"
"test_chunksize_files"
];
__darwinAllowLocalNetworking = true;
@ -98,10 +125,6 @@ buildPythonPackage rec {
"dask.diagnostics"
];
passthru.optional-dependencies = {
complete = [ distributed ];
};
meta = with lib; {
description = "Minimal task scheduling abstraction";
homepage = "https://dask.org/";

View file

@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "databases";
version = "0.5.5";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "encode";
repo = pname;
rev = version;
hash = "sha256-NOXK1UCQzqvJRfzsgIfpihuD9oF52sMD+BxqUHWF8Rk=";
hash = "sha256-5+x735EFX9B25HgXiqzUJm0nbF7tDF5FOQVnbYQyomE=";
};
propagatedBuildInputs = [

View file

@ -1,57 +1,55 @@
{ lib
, buildPythonPackage
, fetchPypi
, click
, cloudpickle
, dask
, fetchPypi
, jinja2
, locket
, msgpack
, packaging
, psutil
, pythonOlder
, pyyaml
, sortedcontainers
, tblib
, toolz
, tornado
, urllib3
, zict
, pyyaml
, mpi4py
, bokeh
, pythonOlder
}:
buildPythonPackage rec {
pname = "distributed";
version = "2022.2.1";
version = "2022.5.2";
format = "setuptools";
disabled = pythonOlder "3.7";
# get full repository need conftest.py to run tests
src = fetchPypi {
inherit pname version;
hash = "sha256-+2KnWvjvM7vhqoCmjAGjOpPBzVozLdAXq0SVW/fs9ls=";
hash = "sha256-BEqsUfpk/Z4WsaLEMVIg0oHw5cwbBfTT03hSQm8efLY=";
};
propagatedBuildInputs = [
bokeh
click
cloudpickle
dask
mpi4py
jinja2
locket
msgpack
packaging
psutil
pyyaml
sortedcontainers
tblib
toolz
tornado
urllib3
zict
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "dask == 2022.02.0" "dask"
'';
# when tested random tests would fail and not repeatably
# When tested random tests would fail and not repeatably
doCheck = false;
pythonImportsCheck = [

View file

@ -31,6 +31,12 @@ buildPythonPackage rec {
hash = "sha256-PkA7qkdDUd7mrtvb6IbCzFRq6X0M3iKY+FKuNConJ5A=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'fastapi = "^0.75.0"' 'fastapi = "*"' \
--replace 'httpx = "^0.22.0"' 'httpx = "*"'
'';
nativeBuildInputs = [
poetry-core
];

View file

@ -7,7 +7,6 @@
, pytest-asyncio
, aiosqlite
, databases
, fetchpatch
, flask
, httpx
, passlib
@ -20,7 +19,7 @@
buildPythonPackage rec {
pname = "fastapi";
version = "0.75.2";
version = "0.78.0";
format = "flit";
disabled = pythonOlder "3.6";
@ -29,9 +28,14 @@ buildPythonPackage rec {
owner = "tiangolo";
repo = pname;
rev = version;
hash = "sha256-B4q3Q256Sj4jTQt1TDm3fiEaQKdVxddCF9+KsxkkTWo=";
hash = "sha256-4JS0VLVg67O7VdcDw2k2u+98kiCdCHvCAEGHYGWEIOA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "starlette==" "starlette>="
'';
propagatedBuildInputs = [
starlette
pydantic
@ -51,21 +55,6 @@ buildPythonPackage rec {
trio
] ++ passlib.optional-dependencies.bcrypt;
patches = [
# Bump starlette, https://github.com/tiangolo/fastapi/pull/4483
(fetchpatch {
name = "support-later-starlette.patch";
# PR contains multiple commits
url = "https://patch-diff.githubusercontent.com/raw/tiangolo/fastapi/pull/4483.patch";
sha256 = "sha256-ZWaqAd/QYEYRL1hSQdXdFPgWgdmOill2GtmEn33vz2U=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "starlette ==" "starlette >="
'';
pytestFlagsArray = [
# ignoring deprecation warnings to avoid test failure from
# tests/test_tutorial/test_testing/test_tutorial001.py

View file

@ -8,28 +8,50 @@
, cramjam
, fsspec
, thrift
, python-lzo
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "fastparquet";
version = "0.8.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
sha256 = "05qb4nz87p9vnrdsyl25hdp5sj35lki64gjza5dahc89fwfdnsmd";
hash = "sha256-rWrbHHcJMahaUV8+YuKkZUhdboNFUK9btjvdg74lCxc=";
};
propagatedBuildInputs = [
cramjam
fsspec
numba
numpy
pandas
thrift
];
passthru.optional-dependencies = {
lzo = [
python-lzo
];
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'," "" \
--replace "oldest-supported-numpy" "numpy"
'';
propagatedBuildInputs = [ cramjam fsspec numba numpy pandas thrift ];
checkInputs = [ pytestCheckHook ];
# Workaround https://github.com/NixOS/nixpkgs/issues/123561
preCheck = ''
@ -43,7 +65,9 @@ buildPythonPackage rec {
rm "$fastparquet_test"
'';
pythonImportsCheck = [ "fastparquet" ];
pythonImportsCheck = [
"fastparquet"
];
meta = with lib; {
description = "A python implementation of the parquet format";

View file

@ -1,20 +1,21 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools-scm
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "filelock";
version = "3.6.0";
version = "3.7.1";
format = "pyproject";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-nNVAqTUuQyxyRqSP5OhxKxCssd8q0fMOjAcLgq4f7YU=";
hash = "sha256-Og/YUWatnbq1TJrslnN7dEEG3F8VwLCaZ0SkRSmfzwQ=";
};
nativeBuildInputs = [
@ -26,8 +27,8 @@ buildPythonPackage rec {
];
meta = with lib; {
homepage = "https://github.com/benediktschmitt/py-filelock";
description = "A platform independent file lock for Python";
homepage = "https://github.com/benediktschmitt/py-filelock";
license = licenses.unlicense;
maintainers = with maintainers; [ hyphon81 ];
};

View file

@ -6,7 +6,6 @@
, hiro
, limits
, mock
, ordereddict
, pymemcache
, pytestCheckHook
, redis
@ -32,7 +31,6 @@ buildPythonPackage rec {
redis
flask-restful
pymemcache
ordereddict
];
postPatch = ''

View file

@ -4,6 +4,7 @@
, requests
, requests-toolbelt
, requests-oauthlib
, six
, pytestCheckHook
, responses
, pythonOlder
@ -27,6 +28,7 @@ buildPythonPackage rec {
requests
requests-toolbelt
requests-oauthlib
six
];
checkInputs = [

View file

@ -1,19 +1,25 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, brotlipy
, zopfli
, isPyPy
, fetchFromGitHub
, setuptools-scm
, fs
, lxml
, brotli
, brotlicffi
, zopfli
, unicodedata2
, lz4
, scipy
, munkres
, unicodedata2
, matplotlib
, sympy
, reportlab
, sphinx
, xattr
, skia-pathops
, uharfbuzz
, pytestCheckHook
, glibcLocales
, setuptools-scm
}:
buildPythonPackage rec {
@ -31,28 +37,32 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools-scm ];
# all dependencies are optional, but
# we run the checks with them
passthru.optional-dependencies = let
extras = {
ufo = [ fs ];
lxml = [ lxml ];
woff = [ (if isPyPy then brotlicffi else brotli) zopfli ];
unicode = lib.optional (pythonOlder "3.11") unicodedata2;
graphite = [ lz4 ];
interpolatable = [ (if isPyPy then munkres else scipy) ];
plot = [ matplotlib ];
symfont = [ sympy ];
type1 = lib.optional stdenv.isDarwin xattr;
pathops = [ skia-pathops ];
repacker = [ uharfbuzz ];
};
in extras // {
all = lib.concatLists (lib.attrValues extras);
};
checkInputs = [
pytestCheckHook
# etree extra
lxml
# woff extra
brotlipy
zopfli
# interpolatable extra
scipy
munkres
# symfont
sympy
# pens
reportlab
sphinx
] ++ lib.optionals (pythonOlder "3.9") [
# unicode extra
unicodedata2
];
] ++ lib.concatLists (lib.attrVals [
"woff"
"interpolatable"
"pathops"
"repacker"
] passthru.optional-dependencies);
pythonImportsCheck = [ "fontTools" ];

View file

@ -1,29 +1,32 @@
{ lib
, stdenv
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, numpy
, aiohttp
, pytest-vcr
, pytest-mock
, pytest-asyncio
, requests
, paramiko
, pytest-asyncio
, pytest-mock
, pytest-vcr
, pytestCheckHook
, pythonOlder
, requests
, smbprotocol
, tqdm
}:
buildPythonPackage rec {
pname = "fsspec";
version = "2022.3.0";
disabled = pythonOlder "3.6";
version = "2022.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "intake";
repo = "filesystem_spec";
rev = version;
sha256 = "sha256-jTF8R0kaHMsCYg+7YFi21Homn63K+ulp9NDZC/jkIXM=";
hash = "sha256-WOzw9UPF8LZuOhp5p/CJUUJcYpAfixV6GiI8tfnoklc=";
};
propagatedBuildInputs = [
@ -31,13 +34,14 @@ buildPythonPackage rec {
paramiko
requests
smbprotocol
tqdm
];
checkInputs = [
numpy
pytest-vcr
pytest-mock
pytest-asyncio
pytest-mock
pytest-vcr
pytestCheckHook
];
@ -58,13 +62,15 @@ buildPythonPackage rec {
"test_touch"
];
pythonImportsCheck = [ "fsspec" ];
pythonImportsCheck = [
"fsspec"
];
meta = with lib; {
homepage = "https://github.com/intake/filesystem_spec";
description = "A specification that Python filesystems should adhere to";
homepage = "https://github.com/intake/filesystem_spec";
changelog = "https://github.com/fsspec/filesystem_spec/raw/${version}/docs/source/changelog.rst";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}

View file

@ -18,7 +18,7 @@
buildPythonPackage rec {
pname = "gcsfs";
version = "2022.3.0";
version = "2022.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "fsspec";
repo = pname;
rev = version;
hash = "sha256-+Bchwsa8Jj7WBWbzyH+GQuqZki4EltMryumKt4Pm1es=";
hash = "sha256-gIkK1VSg1h04+MQBoxFtXIdn80faJlgQ9ayqV5p0RMU=";
};
propagatedBuildInputs = [
@ -55,7 +55,9 @@ buildPythonPackage rec {
"gcsfs/tests/test_retry.py"
];
pytestFlagsArray = [ "-x" ];
pytestFlagsArray = [
"-x"
];
pythonImportsCheck = [
"gcsfs"

View file

@ -26,7 +26,8 @@ buildPythonApplication rec {
tqdm
setuptools
six
];
]
++ requests.optional-dependencies.socks;
checkPhase = ''
$out/bin/gdown --help > /dev/null

View file

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "glances-api";
version = "0.3.5";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "home-assistant-ecosystem";
repo = "python-glances-api";
rev = version;
sha256 = "sha256-8NWrsiiKevIMeD++C2weRdG0FPm5T4fHMUSJM4J+AOo=";
sha256 = "sha256-2H8S08tntCNKwMw553/wuWLXmri7b2tLxFlgCDJWQNQ=";
};
nativeBuildInputs = [

View file

@ -8,6 +8,7 @@
, pythonOlder
, requests
, responses
, six
, typing-extensions
}:
@ -37,6 +38,7 @@ buildPythonPackage rec {
mypy
pytestCheckHook
responses
six
];
postPatch = ''

View file

@ -1,18 +1,34 @@
{ fetchurl, python, cairomm, sparsehash, pycairo, autoreconfHook
, pkg-config, boost, expat, scipy, cgal, gmp, mpfr
, gobject-introspection, pygobject3, gtk3, matplotlib, ncurses
, buildPythonPackage
{ buildPythonPackage
, lib
, fetchurl
, autoreconfHook
, boost
, cairomm
, cgal
, expat
, gmp
, gobject-introspection
, gtk3
, matplotlib
, mpfr
, numpy
, pkg-config
, pycairo
, pygobject3
, python
, scipy
, sparsehash
}:
buildPythonPackage rec {
pname = "graph-tool";
format = "other";
version = "2.43";
version = "2.45";
src = fetchurl {
url = "https://downloads.skewed.de/graph-tool/graph-tool-${version}.tar.bz2";
hash = "sha256-XxvuCUIgz7JIaNsPr0f44v/Sb3fdcJmVhC5NnomNqGw=";
hash = "sha256-+S2nrM/aArKXke/k8LPtkzKfJyMq9NOvwHySQh7Ghmg=";
};
configureFlags = [
@ -23,34 +39,35 @@ buildPythonPackage rec {
"--enable-openmp"
];
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ ncurses ];
enableParallelBuilding = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
];
# https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#manual-compilation
propagatedBuildInputs = [
boost
cairomm
cgal
expat
gmp
mpfr
python
scipy
# optional
sparsehash
# drawing
cairomm
gobject-introspection
gtk3
pycairo
matplotlib
mpfr
numpy
pycairo
pygobject3
scipy
sparsehash
];
enableParallelBuilding = false;
meta = with lib; {
description = "Python module for manipulation and statistical analysis of graphs";
homepage = "https://graph-tool.skewed.de/";
license = licenses.gpl3;
maintainers = [ maintainers.joelmo ];
homepage = "https://graph-tool.skewed.de";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ ];
};
}

View file

@ -1,71 +1,73 @@
{ stdenv
, lib
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, django
, python-memcached
, txamqp
, django_tagging
, gunicorn
, pytz
, pyparsing
, cairocffi
, django
, django_tagging
, fetchPypi
, gunicorn
, pyparsing
, python-memcached
, pythonOlder
, pytz
, six
, txamqp
, urllib3
, whisper
, whitenoise
, urllib3
, six
}:
buildPythonPackage rec {
pname = "graphite-web";
version = "1.1.8";
version = "1.1.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "54240b0f1e069b53e2ce92d4e534e21b195fb0ebd64b6ad8a49c44284e3eb0b1";
hash = "sha256-Pxho1QWo2jJZYAMJx999bbELDVMr7Wp7wsssYPkc01o=";
};
patches = [
./update-django-tagging.patch
propagatedBuildInputs = [
cairocffi
django
django_tagging
gunicorn
pyparsing
python-memcached
pytz
six
txamqp
urllib3
whisper
whitenoise
];
postPatch = ''
# https://github.com/graphite-project/graphite-web/pull/2701
substituteInPlace setup.py \
--replace "'scandir'" "'scandir; python_version < \"3.5\"'"
--replace "Django>=1.8,<3.1" "Django" \
--replace "django-tagging==0.4.3" "django-tagging"
'';
propagatedBuildInputs = [
django
python-memcached
txamqp
django_tagging
gunicorn
pytz
pyparsing
cairocffi
whisper
whitenoise
urllib3
six
];
# Carbon-s default installation is /opt/graphite. This env variable ensures
# carbon is installed as a regular python module.
GRAPHITE_NO_PREFIX="True";
# carbon is installed as a regular Python module.
GRAPHITE_NO_PREFIX = "True";
preConfigure = ''
substituteInPlace webapp/graphite/settings.py \
--replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
'';
pythonImportsCheck = [ "graphite" ];
pythonImportsCheck = [
"graphite"
];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
homepage = "http://graphiteapp.org/";
description = "Enterprise scalable realtime graphing";
maintainers = with maintainers; [ offline basvandijk ];
homepage = "http://graphiteapp.org/";
license = licenses.asl20;
maintainers = with maintainers; [ offline basvandijk ];
};
}

View file

@ -1,13 +0,0 @@
diff --git a/setup.py b/setup.py
index a1a21f1..f0d1051 100644
--- a/setup.py
+++ b/setup.py
@@ -117,7 +117,7 @@ try:
['templates/*', 'local_settings.py.example']},
scripts=glob('bin/*'),
data_files=list(webapp_content.items()) + storage_dirs + conf_files + examples,
- install_requires=['Django>=1.8,<3.1', 'django-tagging==0.4.3', 'pytz',
+ install_requires=['Django>=1.8,<3.1', 'django-tagging==0.5.0', 'pytz',
'pyparsing', 'cairocffi', 'urllib3', 'scandir', 'six'],
classifiers=[
'Intended Audience :: Developers',

View file

@ -1,16 +1,19 @@
{ lib, stdenv
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitiles
, six
, python
}:
buildPythonPackage {
pname = "gyp";
version = "2020-05-12";
version = "unstable-2022-04-01";
src = fetchFromGitiles {
url = "https://chromium.googlesource.com/external/gyp";
rev = "caa60026e223fc501e8b337fd5086ece4028b1c6";
sha256 = "0r9phq5yrmj968vdvy9vivli35wn1j9a6iwshp69wl7q4p0x8q2b";
rev = "9ecf45e37677743503342ee4c6a76eaee80e4a7f";
hash = "sha256-LUlF2VhRnuDwJLdITgmXIQV/IuKdx1KXQkiPVHKrl4Q=";
};
patches = lib.optionals stdenv.isDarwin [
@ -18,11 +21,16 @@ buildPythonPackage {
./no-xcode.patch
];
propagatedBuildInputs = [
six
];
pythonImportsCheck = [ "gyp" "gyp.generator" ];
meta = with lib; {
description = "A tool to generate native build files";
homepage = "https://chromium.googlesource.com/external/gyp/+/master/README.md";
homepage = "https://gyp.gsrc.io";
license = licenses.bsd3;
maintainers = with maintainers; [ codyopel ];
};
}

View file

@ -25,11 +25,11 @@ buildPythonPackage rec {
};
postPatch = ''
sed -i 's/"acme.*"/"acme"/' setup.py
substituteInPlace setup.py \
--replace "cryptography>=2.8,<4.0" "cryptography" \
--replace "acme==" "acme>=" \
--replace "cryptography>=2.8,<37.0" "cryptography" \
--replace "pycognito==" "pycognito>=" \
--replace "snitun==" "snitun>=" \
--replace "pycognito==2022.01.0" "pycognito"
'';
propagatedBuildInputs = [

View file

@ -4,6 +4,7 @@
, requests
, requests-oauthlib
, pythonOlder
, six
}:
buildPythonPackage rec {
@ -21,6 +22,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
requests
requests-oauthlib
six
];
# Project has no tests

View file

@ -11,6 +11,7 @@
, raven
, six
, pytestCheckHook
, werkzeug
}:
buildPythonPackage rec {
@ -34,14 +35,15 @@ buildPythonPackage rec {
propagatedBuildInputs = [
brotlipy
decorator
flask
flask-limiter
markupsafe
decorator
itsdangerous
markupsafe
raven
six
];
werkzeug
] ++ raven.optional-dependencies.flask;
checkInputs = [
pytestCheckHook

View file

@ -1,33 +1,32 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, anyio
, buildPythonPackage
, certifi
, fetchFromGitHub
, h11
, h2
, pproxy
, pytest-asyncio
, pytestCheckHook
, pytest-cov
, pytest-httpbin
, pytest-trio
, pytestCheckHook
, pythonOlder
, sniffio
, socksio
, trio
, trustme
, uvicorn
}:
buildPythonPackage rec {
pname = "httpcore";
version = "0.14.7";
disabled = pythonOlder "3.6";
version = "0.15.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "sha256-h+3MfP1p/ifN0mF/xxrOKPTjD4Q7WzRh94YO4DYSuXE=";
hash = "sha256-FF3Yzac9nkVcA5bHVOz2ymvOelSfJ0K6oU8UWpBDcmo=";
};
postPatch = ''
@ -43,23 +42,30 @@ buildPythonPackage rec {
];
passthru.optional-dependencies = {
http2 = [ h2 ];
socks = [ socksio ];
http2 = [
h2
];
socks = [
socksio
];
};
checkInputs = [
pproxy
pytest-asyncio
pytestCheckHook
pytest-cov
pytest-httpbin
trio
trustme
uvicorn
pytest-trio
pytestCheckHook
] ++ passthru.optional-dependencies.http2
++ passthru.optional-dependencies.socks;
pythonImportsCheck = [ "httpcore" ];
pythonImportsCheck = [
"httpcore"
];
pytestFlagsArray = [
"--asyncio-mode=strict"
];
meta = with lib; {
description = "A minimal low-level HTTP client";

View file

@ -1,67 +1,74 @@
{ lib
, async_generator
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, certifi
, charset-normalizer
, httpcore
, rfc3986
, sniffio
, h2
, socksio
, isPyPy
, brotli
, brotlicffi
, buildPythonPackage
, certifi
, chardet
, click
, rich
, fetchFromGitHub
, h2
, httpcore
, isPyPy
, pygments
, python
, pythonOlder
, rfc3986
, rich
, sniffio
, socksio
, pytestCheckHook
, pytest-asyncio
, pytest-trio
, typing-extensions
, trustme
, uvicorn
}:
buildPythonPackage rec {
pname = "httpx";
version = "0.22.0";
version = "0.23.0";
format = "setuptools";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "sha256-hQmQodGpVG23IZSsWV7rB1iB6QAudDao/8YshIgpmas=";
hash = "sha256-s11Yeizm3y3w5D6ACQ2wp/KJ0+1ALY/R71IlTP2pMC4=";
};
propagatedBuildInputs = [
certifi
charset-normalizer
httpcore
rfc3986
sniffio
] ++ lib.optionals (pythonOlder "3.7") [
async_generator
];
passthru.optional-dependencies = {
http2 = [ h2 ];
socks = [ socksio ];
brotli = if isPyPy then [ brotlicffi ] else [ brotli ];
cli = [ click rich pygments ];
http2 = [
h2
];
socks = [
socksio
];
brotli = if isPyPy then [
brotlicffi
] else [
brotli
];
cli = [
click
rich
pygments
];
};
checkInputs = [
chardet
pytestCheckHook
pytest-asyncio
pytest-trio
trustme
typing-extensions
uvicorn
] ++ passthru.optional-dependencies.http2
++ passthru.optional-dependencies.brotli
@ -88,9 +95,6 @@ buildPythonPackage rec {
# httpcore.ConnectError: [Errno -2] Name or service not known
"test_async_proxy_close"
"test_sync_proxy_close"
# sensitive to charset_normalizer output
"iso-8859-1"
"test_response_no_charset_with_iso_8859_1_content"
];
disabledTestPaths = [

View file

@ -2,6 +2,7 @@
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
, pythonAtLeast
@ -13,7 +14,7 @@
buildPythonPackage rec {
pname = "hyperion-py";
version = "0.7.5";
disabled = pythonOlder "3.8" || pythonAtLeast "3.10";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchFromGitHub {
@ -23,6 +24,14 @@ buildPythonPackage rec {
sha256 = "sha256-arcnpCQsRuiWCrAz/t4TCjTe8DRDtRuzYp8k7nnjGDk=";
};
patches = [
(fetchpatch {
# python3.10 compat: Drop loop kwarg in asyncio.sleep call
url = "https://github.com/dermotduffy/hyperion-py/commit/f02af52fcce17888984c99bfc03935e372011394.patch";
hash = "sha256-4nfsQVxd77VV9INwNxTyFRDlAjwdTYqfSGuF487hFCs=";
})
];
nativeBuildInputs = [
poetry-core
];

View file

@ -8,27 +8,21 @@
, pytestCheckHook
, pytest-xdist
, sortedcontainers
, tzdata
, pythonOlder
}:
buildPythonPackage rec {
# https://hypothesis.readthedocs.org/en/latest/packaging.html
# Hypothesis has optional dependencies on the following libraries
# pytz fake_factory django numpy pytest
# If you need these, you can just add them to your environment.
pname = "hypothesis";
version = "6.40.0";
version = "6.46.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "HypothesisWorks";
repo = "hypothesis-python";
repo = "hypothesis";
rev = "hypothesis-python-${version}";
hash = "sha256-6BC3CTotkMhguueH4NJM8VjbrYhofHqtZEUytcllMwQ=";
hash = "sha256-eQ7Ns0k1hOVw8/xiINMei6GbQqDHXrBl+1v8YQeFO9Q=";
};
postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
@ -42,8 +36,6 @@ buildPythonPackage rec {
pexpect
pytest-xdist
pytestCheckHook
] ++ lib.optional (pythonAtLeast "3.9") [
tzdata
];
inherit doCheck;

View file

@ -16,11 +16,11 @@
buildPythonPackage rec {
pname = "imageio";
version = "2.16.1";
version = "2.19.2";
disabled = isPy27;
src = fetchPypi {
sha256 = "sha256-fxI8sjp3rFq+jtTnrWpggxqC3ixdEjRj3PHUJ4xHedI=";
sha256 = "sha256-RuHnQSiDfSoevIdHa39zl4tpoSj6I4vJibYlqYGb2bM=";
inherit pname version;
};

View file

@ -9,17 +9,19 @@
buildPythonPackage rec {
pname = "immutables";
version = "0.17";
version = "0.18";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "MagicStack";
repo = pname;
rev = "v${version}";
sha256 = "sha256-4VuB8eTWHD4hEDj11u/talfv38h2BhogSZmEVyUtnko=";
hash = "sha256-lXCoPTcpTOv9K0xCVjbrP3qlzP9tfk/e3Rk3oOmbS/Y=";
};
propagatedBuildInputs = [
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
];
@ -33,10 +35,12 @@ buildPythonPackage rec {
"testMypyImmu"
];
pythonImportsCheck = [ "immutables" ];
pythonImportsCheck = [
"immutables"
];
meta = with lib; {
description = "An immutable mapping type for Python";
description = "An immutable mapping type";
homepage = "https://github.com/MagicStack/immutables";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ catern ];

View file

@ -6,7 +6,6 @@
, entrypoints
, fetchFromGitHub
, fsspec
, holoviews
, hvplot
, intake-parquet
, jinja2
@ -27,7 +26,8 @@
buildPythonPackage rec {
pname = "intake";
version = "0.6.4";
version = "0.6.5";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -35,57 +35,75 @@ buildPythonPackage rec {
owner = pname;
repo = pname;
rev = version;
sha256 = "194cdd6lx92zcpkn3wgm490kxvw0c58ziix8hcihsr5ayfr1wdsl";
hash = "sha256-ABMXWUVptpOSPB1jQ57iXk/UG92puNCICzXo3ZMG2Pk=";
};
propagatedBuildInputs = [
appdirs
bokeh
dask
entrypoints
fsspec
holoviews
hvplot
jinja2
msgpack
msgpack-numpy
numpy
jinja2
pandas
panel
pyarrow
python-snappy
pyyaml
requests
tornado
];
checkInputs = [
intake-parquet
pytestCheckHook
];
] ++ passthru.optional-dependencies.server;
passthru.optional-dependencies = {
server = [
msgpack
python-snappy
tornado
];
dataframe = [
msgpack-numpy
pyarrow
];
plot = [
hvplot
bokeh
panel
];
remote = [
requests
];
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
'';
# test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
# test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
preCheck = ''
HOME=$TMPDIR
PATH=$out/bin:$PATH
export HOME=$(mktemp -d);
export PATH="$PATH:$out/bin";
'';
disabledTests = [
# Disable tests which touch network and are broken
# Disable tests which touch network
"http"
"test_dir"
"test_discover"
"test_filtered_compressed_cache"
"test_flatten_flag"
"test_get_dir"
"test_remote_cat"
"http"
"test_pagination"
"test_read_part_compressed"
"test_read_partition"
"test_read_pattern"
"test_remote_arr"
"test_flatten_flag"
"test_remote_cat"
# ValueError
"test_mlist_parameter"
# ImportError
"test_dataframe"
"test_ndarray"
"test_python"
# Timing-based, flaky on darwin and possibly others
"TestServerV1Source.test_idle_timer"
] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [

View file

@ -1,25 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, jsonpointer
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "jsonpatch";
version = "1.32";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "b6ddfe6c3db30d81a96aaeceb6baf916094ffa23d7dd5fa2c13e13f8b6e600c2";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stefankoegl";
repo = "python-json-patch";
rev = "v${version}";
hash = "sha256-JMGBgYjnjHQ5JpzDwJcR2nVZfzmQ8ZZtcB0GsJ9Q4Jc=";
};
# test files are missing
doCheck = false;
propagatedBuildInputs = [ jsonpointer ];
propagatedBuildInputs = [
jsonpointer
];
meta = {
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"jsonpatch"
];
pytestFlagsArray = [
"tests.py"
];
meta = with lib; {
description = "Library to apply JSON Patches according to RFC 6902";
homepage = "https://github.com/stefankoegl/python-json-patch";
license = lib.licenses.bsd2; # "Modified BSD license, says pypi"
license = licenses.bsd2; # "Modified BSD license, says pypi"
maintainers = with maintainers; [ ];
};
}

View file

@ -2,35 +2,35 @@
, attrs
, buildPythonPackage
, fetchPypi
, hatch-vcs
, hatchling
, importlib-metadata
, importlib-resources
, pyrsistent
, pythonOlder
, setuptools-scm
, twisted
, typing-extensions
}:
buildPythonPackage rec {
pname = "jsonschema";
version = "4.5.1";
version = "4.6.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-fG2IJhk0DDNHob9zFeFH5tPa5DkDOuY4PWrLkIwQHfw=";
sha256 = "sha256-nWOXukpsC/AwBzYFf2SePhLsvAfT6BoNrLct5OmAGVc=";
};
postPatch = ''
patchShebangs json/bin/jsonschema_suite
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
hatch-vcs
hatchling
];
propagatedBuildInputs = [

View file

@ -1,7 +1,6 @@
{ lib
, stdenv
, buildPythonPackage
, dataclasses
, fetchFromGitHub
, hypothesis
, libiconv
@ -18,23 +17,23 @@
buildPythonPackage rec {
pname = "libcst";
version = "0.4.1";
version = "0.4.3";
format = "pyproject";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "instagram";
repo = pname;
rev = "v${version}";
sha256 = "sha256-soAlt1KBpCn5JxM1b2LZ3vOpBn9HPGdbm+BBYbyEkfE=";
sha256 = "sha256-Lm62rVL5f+fu4KzOQMroM0Eu27l5v2dkGtRiIVPFNhg=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sourceRoot = "source/${cargoRoot}";
name = "${pname}-${version}";
hash = "sha256:1rz1c0dv3f1h2m5hwdisl3rbqnmifbva4f0c4vygk7rh1q27l515";
hash = "sha256-i5BYYiILadKEPIJOaWdG1lZNSHfNQnwmc5j0D1jg/kc=";
};
cargoRoot = "native";
@ -56,15 +55,13 @@ buildPythonPackage rec {
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
propagatedBuildInputs = [
hypothesis
typing-extensions
typing-inspect
pyyaml
] ++ lib.optional (pythonOlder "3.7") [
dataclasses
];
checkInputs = [
hypothesis
pytestCheckHook
];
@ -88,6 +85,6 @@ buildPythonPackage rec {
description = "Concrete Syntax Tree (CST) parser and serializer library for Python";
homepage = "https://github.com/Instagram/libcst";
license = with licenses; [ mit asl20 psfl ];
maintainers = with maintainers; [ ruuda SuperSandro2000 ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "limits";
version = "2.6.2";
version = "2.6.3";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -32,7 +32,7 @@ buildPythonPackage rec {
postFetch = ''
rm "$out/limits/_version.py"
'';
hash = "sha256-1TfwGxEgf6LFYSaNLyVRtJVOnTVNxvswoKMFNWrNOv0=";
hash = "sha256-YAuq8QycQ55emU2S0rQHxdHCD+jSRmzUKeYFdrV9NzM=";
};
propagatedBuildInputs = [
@ -56,9 +56,6 @@ buildPythonPackage rec {
substituteInPlace pytest.ini \
--replace "--cov=limits" "" \
--replace "-K" ""
# redis-py-cluster doesn't support redis > 4
substituteInPlace tests/conftest.py \
--replace "import rediscluster" ""
# Recreate _version.py, deleted at fetch time due to non-reproducibility.
echo 'def get_versions(): return {"version": "${version}"}' > limits/_version.py

View file

@ -1,21 +1,30 @@
{ lib, buildPythonPackage, fetchPypi, pytest }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "locket";
version = "0.2.1";
version = "1.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "3e1faba403619fe201552f083f1ecbf23f550941bc51985ac6ed4d02d25056dd";
hash = "sha256-XA1MBSqLu/dQ4Fao5lzNMJCG9PDxii6sMGqN+kESpjI=";
};
buildInputs = [ pytest ];
# weird test requirements (spur.local>=0.3.7,<0.4)
doCheck = false;
pythonImportsCheck = [
"locket"
];
meta = with lib; {
description = "Locket implements a lock that can be used by multiple processes provided they use the same path.";
description = "Library which provides a lock that can be used by multiple processes";
homepage = "https://github.com/mwilliamson/locket.py";
license = licenses.bsd2;
maintainers = with maintainers; [ teh ];

View file

@ -8,13 +8,13 @@
buildPythonPackage rec {
pname = "lxml";
version = "4.8.0";
version = "4.9.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "lxml-${version}";
sha256 = "sha256-ppyLn8B0YFQivRCOE8TjKGdDDQHbb7UdTUkevznoVC8=";
sha256 = "sha256-3bPyfsiJGDNB0MPw4OhATRnsM3I8ThZwvPWI+easgNo=";
};
# setuptoolsBuildPhase needs dependencies to be passed through nativeBuildInputs

View file

@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, docutils
, mistune
@ -15,6 +16,14 @@ buildPythonPackage rec {
sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99";
};
patches = [
# fix tests in python 3.10
(fetchpatch {
url = "https://github.com/miyakogi/m2r/commit/58ee9cabdadf5e3deb13037f3052238f0f2bffcd.patch";
sha256 = "sha256-CN3PWmnk7xsn1wngRHuEWmDTP3HtVNxkFv0xzD2Zjlo=";
})
];
postPatch = ''
substituteInPlace tests/test_cli.py \
--replace "optional" "positional"

View file

@ -16,6 +16,7 @@
, idna
, jinja2
, jsondiff
, openapi-spec-validator
, python-dateutil
, python-jose
, pytz
@ -35,14 +36,14 @@
buildPythonPackage rec {
pname = "moto";
version = "3.1.3";
version = "3.1.11";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-+kgVlfVhHZ/r2vCg0Skwe1433mh2w30DXO7+Rs59isA=";
sha256 = "sha256-GwxHL0t0AXdakuY/vPomESoA4Ie59u3aEiAqOcYsYYE=";
};
propagatedBuildInputs = [
@ -58,6 +59,7 @@ buildPythonPackage rec {
idna
jinja2
jsondiff
openapi-spec-validator
python-dateutil
python-jose
pytz
@ -95,6 +97,10 @@ buildPythonPackage rec {
"--deselect=tests/test_iotdata/test_iotdata.py::test_publish"
"--deselect=tests/test_s3/test_server.py::test_s3_server_bucket_versioning"
# Disalbe test that require docker daemon
"--deselect=tests/test_events/test_events_lambdatriggers_integration.py::test_creating_bucket__invokes_lambda"
"--deselect=tests/test_s3/test_s3_lambda_integration.py::test_objectcreated_put__invokes_lambda"
# json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
"--deselect=tests/test_cloudformation/test_cloudformation_stack_integration.py::test_lambda_function"

View file

@ -2,27 +2,37 @@
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "msgpack";
version = "1.0.3";
version = "1.0.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "51fdc7fb93615286428ee7758cecc2f374d5ff363bdd884c7ea622a7a327a81e";
hash = "sha256-9dhpwY8DAgLrQS8Iso0q/upVPWYTruieIA16yn7wH18=";
};
nativeBuildInputs = [
setuptools
];
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"msgpack"
];
meta = with lib; {
description = "MessagePack serializer implementation";
homepage = "https://github.com/msgpack/msgpack-python";
description = "MessagePack serializer implementation for Python";
changelog = "https://github.com/msgpack/msgpack-python/blob/master/ChangeLog.rst";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];

View file

@ -1,25 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
version = "0.11.0";
pname = "netifaces";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "043a79146eb2907edf439899f262b3dfe41717d34124298ed281139a8b93ca32";
hash = "sha256-BDp5FG6ykH7fQ5iZ8mKz3+QXF9NBJCmO0oETmouTyjI=";
};
doCheck = false; # no tests implemented
# No tests implemented
doCheck = false;
pythonImportsCheck = [ "netifaces" ];
pythonImportsCheck = [
"netifaces"
];
meta = with lib; {
homepage = "https://alastairs-place.net/projects/netifaces/";
description = "Portable access to network interfaces from Python";
homepage = "https://github.com/al45tair/netifaces";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View file

@ -2,26 +2,25 @@
, buildPythonPackage
, fetchPypi
, nose
, pytest
, pytestCheckHook
, decorator
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "networkx";
# upgrade may break sage, please test the sage build or ping @timokau on upgrade
version = "2.7.1";
version = "2.8.2";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-0RlLp1Pl7tB83s0dI8XNejx3IJm9jb0v6jZniM9N57o=";
sha256 = "sha256-rpnJsNNeW0pizxz+oB5bNjPY0C9KDq1paFtufeW4Xqs=";
};
propagatedBuildInputs = [ decorator setuptools ];
checkInputs = [ nose pytest];
checkPhase = ''
pytest
'';
checkInputs = [ nose pytestCheckHook ];
meta = {
homepage = "https://networkx.github.io/";

View file

@ -24,11 +24,11 @@ buildPythonPackage rec {
doCheck = !isPy3k;
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
homepage = "https://github.com/erikrose/nose-progressive";
description = "A testrunner with a progress bar and smarter tracebacks";
license = licenses.mit;
maintainers = with maintainers; [ domenkozar ];
broken = true; # relies on 2to3 conversion, which was removed from setuptools>=58.0
};
}

View file

@ -44,7 +44,7 @@ in buildPythonPackage rec {
# Attention! v1.22.0 breaks scipy and by extension scikit-learn, so
# build both to verify they don't break.
# https://github.com/scipy/scipy/issues/15414
version = "1.21.5";
version = "1.21.6";
format = "pyproject.toml";
disabled = pythonOlder "3.7";
@ -52,7 +52,7 @@ in buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-alkovGJBJk3OXtUJ5m8zZ2/Jf0ZOepGe3GcvtVMiIe4=";
sha256 = "sha256-7LVSUROXBmaf3sL/BzyY746ahEc+UecWIRtBqg8Y5lY=";
};
patches = lib.optionals python.hasDistutilsCxxPatch [

View file

@ -1,21 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "ordereddict";
version = "1.1";
src = fetchPypi {
inherit pname version;
sha256 = "07qvy11nvgxpzarrni3wrww3vpc9yafgi2bch4j2vvvc42nb8d8w";
};
meta = with lib; {
description = "A drop-in substitute for Py2.7's new collections.OrderedDict that works in Python 2.4-2.6";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}

View file

@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "osmnx";
version = "1.1.2";
disabled = pythonOlder "3.6";
version = "1.2.0";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "gboeing";
repo = pname;
rev = "v${version}";
sha256 = "sha256-qrTAXZFm88elMrVjvGwfdNwTA/PRdCOHFqpcgoKVGNk=";
sha256 = "sha256-HfgMmPEiKstMXV0rtul8QLxB1FY32Ws7IEonBB+qZOc=";
};
propagatedBuildInputs = [ geopandas matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy gdal rasterio ];

View file

@ -7,13 +7,14 @@
buildPythonPackage rec {
pname = "pbr";
version = "5.8.1";
version = "5.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ZrxaNJEvQIuzklvyEjHLb1kgYme39j81A++GXBopLiU=";
sha256 = "sha256-6Nyi9LQ1YO3vWIE5afUqVs7wIxRsu4kxYm24DmwcQwg=";
};
# importlib-metadata could be added here if it wouldn't cause an infinite recursion
propagatedBuildInputs = [ setuptools ];
# check in passthru.tests.pytest to escape infinite recursion with fixtures

View file

@ -8,14 +8,16 @@
buildPythonPackage rec {
pname = "pefile";
version = "2021.9.3";
version = "2022.5.30";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "erocarrera";
repo = pname;
rev = "v${version}";
sha256 = "0sr17rmqpr874m8rpkp8xdz8kjshhimbfgq13qy4lscaiznmlf0d";
hash = "sha256-Cv20hJsErHFSuS5Q1kqLNp4DAsPXv/eFhaU9oYECSeI=";
};
nativeBuildInputs = [
@ -29,12 +31,14 @@ buildPythonPackage rec {
# Test data encrypted
doCheck = false;
pythonImportsCheck = [ "pefile" ];
pythonImportsCheck = [
"pefile"
];
meta = with lib; {
description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files";
homepage = "https://github.com/erocarrera/pefile";
license = licenses.mit;
maintainers = [ maintainers.pamplemousse ];
maintainers = with maintainers; [ pamplemousse ];
};
}

View file

@ -25,6 +25,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# assertions contains extra: IDEA has been deprecated
"test_encrypt_bad_cipher"
];
meta = with lib; {
homepage = "https://github.com/SecurityInnovation/PGPy";
description = "Pretty Good Privacy for Python 2 and 3";

View file

@ -12,14 +12,14 @@
import ./generic.nix (rec {
pname = "pillow";
version = "9.1.0";
version = "9.1.1";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Pillow";
inherit version;
sha256 = "f401ed2bbb155e1ade150ccc63db1a4f6c1909d3d378f7d1235a44e90d75fb97";
sha256 = "sha256-dQJTmTm1PXVl89Edh8eOfskA08cpRdTuDi8lDVmDCaA=";
};
passthru.tests = {

View file

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, isPy3k
, pythonOlder
, fetchFromGitHub
, setuptools-scm
, toml
@ -9,15 +9,16 @@
buildPythonPackage rec {
pname = "pure_eval";
version = "0.2.1";
version = "0.2.2";
format = "setuptools";
disabled = !isPy3k;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+Vucu16NFPtQ23AbBH/cQU+klxp6DMicSScbnKegLZI=";
hash = "sha256-9N+UcgAv30s4ctgsBrOHiix4BoXhKPgxH/GOz/NIFdU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -34,7 +35,9 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "pure_eval" ];
pythonImportsCheck = [
"pure_eval"
];
meta = with lib; {
description = "Safely evaluate AST nodes without side effects";

View file

@ -1,34 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, mypy-extensions
, pytestCheckHook
, pythonOlder
, six
, mypy-extensions
, typing
, pytest
}:
buildPythonPackage rec {
version = "1.2.0";
pname = "pyannotate";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "16bm0mf7wxvy0lgmcs1p8n1ji8pnvj1jvj8zk3am70dkp825iv84";
hash = "sha256-BO1YBLqzgVPVmB/JLYPc9qIog0U3aFYfBX53flwFdZk=";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ six mypy-extensions ]
++ lib.optionals (pythonOlder "3.5") [ typing ];
propagatedBuildInputs = [
six
mypy-extensions
];
checkPhase = ''
py.test
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyannotate_runtime"
"pyannotate_tools"
];
meta = with lib; {
homepage = "https://github.com/dropbox/pyannotate";
description = "Auto-generate PEP-484 annotations";
homepage = "https://github.com/dropbox/pyannotate";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}

View file

@ -2,7 +2,7 @@
, stdenv
, buildPythonPackage
, python
, isPy3k
, pythonOlder
, arrow-cpp
, cffi
, cloudpickle
@ -28,14 +28,28 @@ in
buildPythonPackage rec {
pname = "pyarrow";
disabled = !isPy3k;
inherit (_arrow-cpp) version src;
disabled = pythonOlder "3.7";
sourceRoot = "apache-arrow-${version}/python";
nativeBuildInputs = [ cmake cython pkg-config setuptools-scm ];
propagatedBuildInputs = [ numpy six cloudpickle scipy fsspec cffi ];
nativeBuildInputs = [
cmake
cython
pkg-config
setuptools-scm
];
propagatedBuildInputs = [
cffi
cloudpickle
fsspec
numpy
scipy
six
];
checkInputs = [
hypothesis
pandas
@ -62,6 +76,7 @@ buildPythonPackage rec {
ARROW_TEST_DATA = lib.optionalString doCheck _arrow-cpp.ARROW_TEST_DATA;
doCheck = true;
dontUseCmakeConfigure = true;
preBuild = ''
@ -80,6 +95,9 @@ buildPythonPackage rec {
"--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws"
"--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws_region_selection"
"--deselect=pyarrow/tests/test_fs.py::test_s3_options"
# Flaky test
"--deselect=pyarrow/tests/test_flight.py::test_roundtrip_errors"
"--deselect=pyarrow/tests/test_pandas.py::test_threaded_pandas_import"
] ++ lib.optionals stdenv.isDarwin [
# Requires loopback networking
"--deselect=pyarrow/tests/test_ipc.py::test_socket_"
@ -90,6 +108,7 @@ buildPythonPackage rec {
];
dontUseSetuptoolsCheck = true;
preCheck = ''
shopt -s extglob
rm -r pyarrow/!(tests)
@ -98,7 +117,9 @@ buildPythonPackage rec {
ulimit -n 1024
'';
pythonImportsCheck = [ "pyarrow" ] ++ map (module: "pyarrow.${module}") ([
pythonImportsCheck = [
"pyarrow"
] ++ map (module: "pyarrow.${module}") ([
"compute"
"csv"
"dataset"
@ -108,7 +129,9 @@ buildPythonPackage rec {
"hdfs"
"json"
"parquet"
] ++ lib.optionals (!stdenv.isDarwin) [ "plasma" ]);
] ++ lib.optionals (!stdenv.isDarwin) [
"plasma"
]);
meta = with lib; {
description = "A cross-language development platform for in-memory data";

View file

@ -1,16 +1,16 @@
{ lib
, buildPythonPackage
, fetchPypi
, boto3
, botocore
, buildPythonPackage
, fetchPypi
, pandas
, tenacity
, pythonOlder
, tenacity
}:
buildPythonPackage rec {
pname = "pyathena";
version = "2.5.2";
version = "2.9.1";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "PyAthena";
inherit version;
sha256 = "sha256-vjoK6lEitvd5vqSEE/ael8q00O05lquKIviFK/bPlVQ=";
hash = "sha256-b1JdJhSe4ezKN4afZexwc/YT7OM9nIXHK7ca6nYRGnY=";
};
propagatedBuildInputs = [
@ -38,9 +38,9 @@ buildPythonPackage rec {
];
meta = with lib; {
description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
homepage = "https://github.com/laughingman7743/PyAthena/";
license = licenses.mit;
description = "Python DB API 2.0 (PEP 249) client for Amazon Athena";
maintainers = with maintainers; [ turion ];
};
}

View file

@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "pybase64";
version = "1.2.1";
version = "1.2.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "d2016a3a487d3d4501d8281f61ee54c25efd65e37a4c7dce8011e0de7183c956";
sha256 = "sha256-vv2YOlp7ZVE1W2q+VnI/f58SxYDgLxJreIOwdb6/8lw=";
};
checkInputs = [ pytestCheckHook ];

Some files were not shown because too many files have changed in this diff Show more