let
buildFromTarball = stdenv.isDarwin;
- # libvirt hardcodes the binary name 'ebtables', but in nixpkgs the ebtables
- # binary we want to use is named 'ebtables-legacy'.
- # Create a derivation to alias the binary name so that libvirt can find the right one, and use that below.
- ebtables-compat = stdenv.mkDerivation {
- pname = "ebtables-compat";
- version = ebtables.version;
- src = null;
- buildInputs = [ ebtables ];
- buildCommand = ''
- mkdir -p $out/bin
- ln -sf ${ebtables}/bin/ebtables-legacy $out/bin/ebtables
- '';
- };
in
stdenv.mkDerivation rec {
pname = "libvirt";
@@ -179,7 +165,7 @@ stdenv.mkDerivation rec {
'';
in
''
- PATH=${lib.makeBinPath ([ dnsmasq ] ++ optionals stdenv.isLinux [ iproute2 iptables ebtables-compat lvm2 systemd numad ] ++ optionals enableIscsi [ openiscsi ])}:$PATH
+ PATH=${lib.makeBinPath ([ dnsmasq ] ++ optionals stdenv.isLinux [ iproute2 iptables lvm2 systemd numad ] ++ optionals enableIscsi [ openiscsi ])}:$PATH
# the path to qemu-kvm will be stored in VM's .xml and .save files
# do not use "''${qemu_kvm}/bin/qemu-kvm" to avoid bound VMs to particular qemu derivations
substituteInPlace src/lxc/lxc_conf.c \
@@ -227,8 +213,7 @@ stdenv.mkDerivation rec {
postInstall =
let
- # Keep the legacy iptables binary for now for backwards compatibility (comment on #109332)
- binPath = [ iptables ebtables-compat iproute2 pmutils numad numactl bridge-utils dmidecode dnsmasq ] ++ optionals enableIscsi [ openiscsi ];
+ binPath = [ iptables iproute2 pmutils numad numactl bridge-utils dmidecode dnsmasq ] ++ optionals enableIscsi [ openiscsi ];
in
''
substituteInPlace $out/libexec/libvirt-guests.sh \
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix
index c98a1cbce0e9..bc11c9cfea1f 100644
--- a/pkgs/development/libraries/libxml2/default.nix
+++ b/pkgs/development/libraries/libxml2/default.nix
@@ -1,5 +1,6 @@
{ stdenv, lib, fetchurl, fetchpatch
, zlib, xz, libintl, python, gettext, ncurses, findXMLCatalogs
+, libiconv
, pythonSupport ? enableShared && stdenv.buildPlatform == stdenv.hostPlatform
, icuSupport ? false, icu ? null
, enableShared ? stdenv.hostPlatform.libc != "msvcrt" && !stdenv.hostPlatform.isStatic
@@ -52,7 +53,9 @@ stdenv.mkDerivation rec {
# RUNPATH for that, leading to undefined references for its users.
++ lib.optional stdenv.isFreeBSD xz;
- propagatedBuildInputs = [ zlib findXMLCatalogs ] ++ lib.optional icuSupport icu;
+ propagatedBuildInputs = [ zlib findXMLCatalogs ]
+ ++ lib.optional stdenv.isDarwin libiconv
+ ++ lib.optional icuSupport icu;
configureFlags = [
"--exec_prefix=$dev"
diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix
index 1d7b73a54196..c4ff6bb46936 100644
--- a/pkgs/development/libraries/mesa/default.nix
+++ b/pkgs/development/libraries/mesa/default.nix
@@ -33,7 +33,7 @@ with lib;
let
# Release calendar: https://www.mesa3d.org/release-calendar.html
# Release frequency: https://www.mesa3d.org/releasing.html#schedule
- version = "21.2.3";
+ version = "21.2.5";
branch = versions.major version;
self = stdenv.mkDerivation {
@@ -47,7 +47,7 @@ self = stdenv.mkDerivation {
"ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz"
"ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
];
- sha256 = "0x3ivd34j938js2iffzlvnlj4hwywxrscd8q1rvq894x2m52hibj";
+ sha256 = "1fxcdf4qs4vmyjcns7jv62w4jy3gr383ar5b7mr77nb0nxgmhjcf";
};
# TODO:
@@ -93,6 +93,10 @@ self = stdenv.mkDerivation {
++ lib.optional stdenv.isLinux "driversdev"
++ lib.optional enableOpenCL "opencl";
+ preConfigure = ''
+ PATH=${llvmPackages.libllvm.dev}/bin:$PATH
+ '';
+
# TODO: Figure out how to enable opencl without having a runtime dependency on clang
mesonFlags = [
"--sysconfdir=/etc"
diff --git a/pkgs/development/libraries/nss/default.nix b/pkgs/development/libraries/nss/default.nix
index c1b90a8da873..9d85515e2faf 100644
--- a/pkgs/development/libraries/nss/default.nix
+++ b/pkgs/development/libraries/nss/default.nix
@@ -27,7 +27,7 @@ let
# It will rebuild itself using the version of this package (NSS) and if
# an update is required do the required changes to the expression.
# Example: nix-shell ./maintainers/scripts/update.nix --argstr package cacert
- version = "3.70";
+ version = "3.71";
in
stdenv.mkDerivation rec {
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "mirror://mozilla/security/nss/releases/NSS_${lib.replaceStrings [ "." ] [ "_" ] version}_RTM/src/${pname}-${version}.tar.gz";
- sha256 = "sha256-K4mruGAe5AW+isW1cD1x8fs4pRw6ZKPYNDh/eLMlURs=";
+ sha256 = "0ly2l3dv6z5hlxs72h5x6796ni3x1bq60saavaf42ddgv4ax7b4r";
};
depsBuildBuild = [ buildPackages.stdenv.cc ];
diff --git a/pkgs/development/libraries/p11-kit/default.nix b/pkgs/development/libraries/p11-kit/default.nix
index 681b60e16de4..4ddc01ee6b2b 100644
--- a/pkgs/development/libraries/p11-kit/default.nix
+++ b/pkgs/development/libraries/p11-kit/default.nix
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
- "--with-trust-paths=/etc/ssl/certs/ca-certificates.crt"
+ "--with-trust-paths=/etc/ssl/trust-source:/etc/ssl/certs/ca-certificates.crt"
];
enableParallelBuilding = true;
diff --git a/pkgs/development/libraries/qt-5/5.15/default.nix b/pkgs/development/libraries/qt-5/5.15/default.nix
index 10d0d49236aa..a1d5be70c012 100644
--- a/pkgs/development/libraries/qt-5/5.15/default.nix
+++ b/pkgs/development/libraries/qt-5/5.15/default.nix
@@ -112,6 +112,11 @@ let
url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=049e14870c13235cd066758f29c42dc96c1ccdf8";
sha256 = "1cb2hwi859hds0fa2cbap014qaa7mah9p0rcxcm2cvj2ybl33qfc";
})
+ (fetchpatch { # This can be removed when https://codereview.qt-project.org/c/qt/qtbase/+/363880/3 is included in an release.
+ name = "qtbase-mysql-version-vs-functionality-check.patch";
+ url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=211369133cf40b2f522caaff259c19069ed23ca4";
+ sha256 = "19kq9h10qm344fpdqa9basrbzh1y5kr48c6jzz3nvk61pk4ja1k4";
+ })
];
qtdeclarative = [ ./qtdeclarative.patch ];
qtscript = [ ./qtscript.patch ];
diff --git a/pkgs/development/libraries/qt-5/hooks/wrap-qt-apps-hook.sh b/pkgs/development/libraries/qt-5/hooks/wrap-qt-apps-hook.sh
index ce4d78fbb50f..c085cdaca52e 100644
--- a/pkgs/development/libraries/qt-5/hooks/wrap-qt-apps-hook.sh
+++ b/pkgs/development/libraries/qt-5/hooks/wrap-qt-apps-hook.sh
@@ -76,7 +76,7 @@ wrapQtAppsHook() {
[ -z "$wrapQtAppsHookHasRun" ] || return 0
wrapQtAppsHookHasRun=1
- local targetDirs=( "$prefix/bin" "$prefix/sbin" "$prefix/libexec" )
+ local targetDirs=( "$prefix/bin" "$prefix/sbin" "$prefix/libexec" "$prefix/Applications" "$prefix/"*.app )
echo "wrapping Qt applications in ${targetDirs[@]}"
for targetDir in "${targetDirs[@]}"
@@ -85,7 +85,7 @@ wrapQtAppsHook() {
find "$targetDir" ! -type d -executable -print0 | while IFS= read -r -d '' file
do
- patchelf --print-interpreter "$file" >/dev/null 2>&1 || continue
+ isELF "$file" || isMachO "$file" || continue
if [ -f "$file" ]
then
diff --git a/pkgs/development/libraries/science/math/suitesparse/default.nix b/pkgs/development/libraries/science/math/suitesparse/default.nix
index e053d5bcf342..5a6de9f64e83 100644
--- a/pkgs/development/libraries/science/math/suitesparse/default.nix
+++ b/pkgs/development/libraries/science/math/suitesparse/default.nix
@@ -12,7 +12,7 @@
stdenv.mkDerivation rec {
pname = "suitesparse";
- version = "5.9.0";
+ version = "5.10.1";
outputs = [ "out" "dev" "doc" ];
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
owner = "DrTimothyAldenDavis";
repo = "SuiteSparse";
rev = "v${version}";
- sha256 = "sha256-tvwpSVgZrfYZHXHN8OQF0Y/aJM03JHGPFok7hUqPE/4=";
+ sha256 = "sha256-ifuoXgVQp2vHR/reC/Hjbt3vqaKpql3Nfxdb/Cgv/aU=";
};
nativeBuildInputs = [
@@ -53,7 +53,7 @@ stdenv.mkDerivation rec {
"CUBLAS_LIB=${cudatoolkit}/lib/libcublas.so"
] ++ lib.optionals stdenv.isDarwin [
# Unless these are set, the build will attempt to use `Accelerate` on darwin, see:
- # https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/v5.9.0/SuiteSparse_config/SuiteSparse_config.mk#L368
+ # https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/v5.10.1/SuiteSparse_config/SuiteSparse_config.mk#L368
"BLAS=-lblas"
"LAPACK=-llapack"
]
diff --git a/pkgs/development/libraries/uthash/default.nix b/pkgs/development/libraries/uthash/default.nix
index 97c6d10191f3..f6c6e378421b 100644
--- a/pkgs/development/libraries/uthash/default.nix
+++ b/pkgs/development/libraries/uthash/default.nix
@@ -1,23 +1,23 @@
-{ lib, stdenv, fetchurl, perl }:
+{ lib, stdenv, fetchFromGitHub, perl }:
stdenv.mkDerivation rec {
pname = "uthash";
- version = "2.1.0";
+ version = "2.3.0";
- src = fetchurl {
- url = "https://github.com/troydhanson/uthash/archive/v${version}.tar.gz";
- sha256 = "17k6k97n20jpi9zj3lzvqfw8pv670r6rdqrjf8vrbx6hcj7csb0m";
+ src = fetchFromGitHub {
+ owner = "troydhanson";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "sha256-F0M5ENT3bMn3dD16Oaq9mBFYOWzVliVWupAIrLc2nkQ=";
};
- dontBuild = false;
-
doCheck = true;
checkInputs = [ perl ];
- checkTarget = "-C tests/";
+ checkTarget = "all";
+ preCheck = "cd tests";
installPhase = ''
- mkdir -p "$out/include"
- cp ./src/* "$out/include/"
+ install -Dm644 $src/include/*.h -t $out/include
'';
meta = with lib; {
diff --git a/pkgs/development/python-modules/FormEncode/default.nix b/pkgs/development/python-modules/FormEncode/default.nix
index 7a3967404c94..08bcbaa6516a 100644
--- a/pkgs/development/python-modules/FormEncode/default.nix
+++ b/pkgs/development/python-modules/FormEncode/default.nix
@@ -1,34 +1,50 @@
-{ lib, buildPythonPackage, fetchPypi, dnspython, pycountry, nose, setuptools-scm, six, isPy27 }:
+{ lib
+, buildPythonPackage
+, isPy27
+, fetchPypi
+, nose
+, setuptools-scm
+, six
+, dnspython
+, pycountry
+, pytestCheckHook
+}:
buildPythonPackage rec {
pname = "FormEncode";
- version = "2.0.0";
+ version = "2.0.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "049pm276140h30xgzwylhpii24xcln1qfdlfmbj69sqpfhlr5szj";
+ sha256 = "8f2974112c2557839d5bae8b76490104c03830785d923abbdef148bf3f710035";
};
postPatch = ''
- sed -i 's/setuptools_scm_git_archive//' setup.py
- sed -i 's/use_scm_version=.*,/version="${version}",/' setup.py
+ sed -i '/setuptools_scm_git_archive/d' setup.py
'';
nativeBuildInputs = [ setuptools-scm ];
+
propagatedBuildInputs = [ six ];
- checkInputs = [ dnspython pycountry nose ];
+ checkInputs = [
+ dnspython
+ pycountry
+ pytestCheckHook
+ ];
- preCheck = ''
- # requires dns resolving
- sed -i 's/test_unicode_ascii_subgroup/noop/' formencode/tests/test_email.py
- '';
+ disabledTests = [
+ # requires network for DNS resolution
+ "test_doctests"
+ "test_unicode_ascii_subgroup"
+ ];
meta = with lib; {
description = "FormEncode validates and converts nested structures";
homepage = "http://formencode.org";
license = licenses.mit;
+ maintainers = with maintainers; [ ];
};
}
diff --git a/pkgs/development/python-modules/absl-py/default.nix b/pkgs/development/python-modules/absl-py/default.nix
index 8ad21f54bbd1..611686e5c0af 100644
--- a/pkgs/development/python-modules/absl-py/default.nix
+++ b/pkgs/development/python-modules/absl-py/default.nix
@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "absl-py";
- version = "0.13.0";
+ version = "0.14.1";
src = fetchPypi {
inherit pname version;
- sha256 = "6953272383486044699fd0e9f00aad167a27e08ce19aae66c6c4b10e7e767793";
+ sha256 = "eb0383bd431c0d7b2320179904cab00120a10977e3c9671d99efbbed17efb55a";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/accupy/default.nix b/pkgs/development/python-modules/accupy/default.nix
index 67aba7342148..fff517c84fbe 100644
--- a/pkgs/development/python-modules/accupy/default.nix
+++ b/pkgs/development/python-modules/accupy/default.nix
@@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
, pythonOlder
, mpmath
, numpy
@@ -11,17 +11,19 @@
, pytestCheckHook
, matplotlib
, dufte
-, isPy27
+, perfplot
}:
buildPythonPackage rec {
pname = "accupy";
- version = "0.3.4";
- disabled = isPy27;
+ version = "0.3.6";
+ disabled = pythonOlder "3.7";
- src = fetchPypi {
- inherit pname version;
- sha256 = "36506aca53154528997ac22aee6292c83da0f4850bb375c149512b5284bd4948";
+ src = fetchFromGitHub {
+ owner = "nschloe";
+ repo = pname;
+ rev = version;
+ sha256 = "0sxkwpp2xy2jgakhdxr4nh1cspqv8l89kz6s832h05pbpyc0n767";
};
nativeBuildInputs = [
@@ -39,6 +41,7 @@ buildPythonPackage rec {
] ++ lib.optional (pythonOlder "3.8") importlib-metadata;
checkInputs = [
+ perfplot
pytestCheckHook
matplotlib
dufte
diff --git a/pkgs/development/python-modules/afdko/default.nix b/pkgs/development/python-modules/afdko/default.nix
index 9a4dbbab3745..802da2c68562 100644
--- a/pkgs/development/python-modules/afdko/default.nix
+++ b/pkgs/development/python-modules/afdko/default.nix
@@ -58,7 +58,13 @@ buildPythonPackage rec {
# https://github.com/adobe-type-tools/afdko/issues/1216
doCheck = stdenv.isx86_64;
checkInputs = [ pytestCheckHook ];
- preCheck = "export PATH=$PATH:$out/bin";
+ preCheck = ''
+ export PATH=$PATH:$out/bin
+
+ # Update tests to match ufinormalizer-0.6.1 expectations:
+ # https://github.com/adobe-type-tools/afdko/issues/1418
+ find tests -name layerinfo.plist -delete
+ '';
disabledTests = [
# Disable slow tests, reduces test time ~25 %
"test_report"
diff --git a/pkgs/development/python-modules/aioambient/default.nix b/pkgs/development/python-modules/aioambient/default.nix
index 3e5c0c8dfe89..d60a62496cd9 100644
--- a/pkgs/development/python-modules/aioambient/default.nix
+++ b/pkgs/development/python-modules/aioambient/default.nix
@@ -27,6 +27,11 @@ buildPythonPackage rec {
sha256 = "sha256-blejTXyLe3B2kNytBh+zJz0Q0xDP+Vo2SV9gc7OX6S0=";
};
+ postPatch = ''
+ substituteInPlace pyproject.toml \
+ --replace 'websockets = ">=8.1,<10.0"' 'websockets = ">=8.1,<11.0"'
+ '';
+
nativeBuildInputs = [
poetry-core
];
diff --git a/pkgs/development/python-modules/aiobotocore/default.nix b/pkgs/development/python-modules/aiobotocore/default.nix
index f6024c953fda..9fbbbac43ef8 100644
--- a/pkgs/development/python-modules/aiobotocore/default.nix
+++ b/pkgs/development/python-modules/aiobotocore/default.nix
@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "aiobotocore";
- version = "1.4.1";
+ version = "1.4.2";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "09f06723d1d69c6d407d9a356ca65ab42a5b7b73a45be4b1ed0ed1a6b6057a9f";
+ sha256 = "c2f4ef325aaa839e9e2a53346b4c1c203656783a4985ab36fd4c2a9ef2dc1d2b";
};
# relax version constraints: aiobotocore works with newer botocore versions
diff --git a/pkgs/development/python-modules/alembic/default.nix b/pkgs/development/python-modules/alembic/default.nix
index af8b1fc37215..957b82e14467 100644
--- a/pkgs/development/python-modules/alembic/default.nix
+++ b/pkgs/development/python-modules/alembic/default.nix
@@ -14,14 +14,14 @@
buildPythonPackage rec {
pname = "alembic";
- version = "1.7.1";
+ version = "1.7.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "aea964d3dcc9c205b8759e4e9c1c3935ea3afeee259bffd7ed8414f8085140fb";
+ sha256 = "9d33f3ff1488c4bfab1e1a6dfebbf085e8a8e1a3e047a43ad29ad1f67f012a1d";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/amqtt/default.nix b/pkgs/development/python-modules/amqtt/default.nix
index 1f5fee4d71bb..d61140081ef1 100644
--- a/pkgs/development/python-modules/amqtt/default.nix
+++ b/pkgs/development/python-modules/amqtt/default.nix
@@ -26,6 +26,11 @@ buildPythonPackage rec {
sha256 = "sha256-27LmNR1KC8w3zRJ7YBlBolQ4Q70ScTPqypMCpU6fO+I=";
};
+ postPatch = ''
+ substituteInPlace pyproject.toml \
+ --replace 'websockets = "^9.0"' 'websockets = "^10.0"'
+ '';
+
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/arrow/default.nix b/pkgs/development/python-modules/arrow/default.nix
index 956dd5f40f2d..72bbdb7b977c 100644
--- a/pkgs/development/python-modules/arrow/default.nix
+++ b/pkgs/development/python-modules/arrow/default.nix
@@ -12,13 +12,13 @@
buildPythonPackage rec {
pname = "arrow";
- version = "1.1.1";
+ version = "1.2.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "dee7602f6c60e3ec510095b5e301441bc56288cb8f51def14dcb3079f623823a";
+ sha256 = "16fc29bbd9e425e3eb0fef3018297910a0f4568f21116fc31771e2760a50e074";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/arviz/default.nix b/pkgs/development/python-modules/arviz/default.nix
index 39a0d38a0e94..5aa10201917d 100644
--- a/pkgs/development/python-modules/arviz/default.nix
+++ b/pkgs/development/python-modules/arviz/default.nix
@@ -22,13 +22,13 @@
buildPythonPackage rec {
pname = "arviz";
- version = "0.11.2";
+ version = "0.11.4";
src = fetchFromGitHub {
owner = "arviz-devs";
repo = "arviz";
rev = "v${version}";
- sha256 = "0npwrpy262y6zqd0znz4w7ikfdyz4kc4gikmkpj6h1j6vxggrfaa";
+ sha256 = "0vindadyxhxhrhbalys6kzrda2d4qpqbqbsbwfprp8pxkldgk548";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/astroid/default.nix b/pkgs/development/python-modules/astroid/default.nix
index a4694663bb6b..b6ba53055d36 100644
--- a/pkgs/development/python-modules/astroid/default.nix
+++ b/pkgs/development/python-modules/astroid/default.nix
@@ -1,10 +1,12 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
+, fetchpatch
, pythonOlder
, isPyPy
, lazy-object-proxy
, wrapt
+, typing-extensions
, typed-ast
, pytestCheckHook
, setuptools-scm
@@ -13,7 +15,7 @@
buildPythonPackage rec {
pname = "astroid";
- version = "2.7.3"; # Check whether the version is compatible with pylint
+ version = "2.8.2"; # Check whether the version is compatible with pylint
disabled = pythonOlder "3.6";
@@ -21,11 +23,19 @@ buildPythonPackage rec {
owner = "PyCQA";
repo = pname;
rev = "v${version}";
- sha256 = "08qxw58cdyglkni6ahyil4cmnb48zz0wr4v05gzqk4r5ifs4gl2m";
+ sha256 = "0140h4l7licwdw0scnfzsbi5b2ncxi7fxhdab7c1i3sk01r4asp6";
};
SETUPTOOLS_SCM_PRETEND_VERSION=version;
+ patches = [
+ (fetchpatch {
+ # Allow wrapt 1.13 (https://github.com/PyCQA/astroid/pull/1203)
+ url = "https://github.com/PyCQA/astroid/commit/fd510e08c2ee862cd284861e02b9bcc9a7fd9809.patch";
+ sha256 = "1s10whslcqnyz251fb76qkc9p41gagxljpljsmw89id1wywmjib4";
+ })
+ ];
+
nativeBuildInputs = [
setuptools-scm
];
@@ -34,6 +44,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [
lazy-object-proxy
wrapt
+ ] ++ lib.optionals (pythonOlder "3.10") [
+ typing-extensions
] ++ lib.optional (!isPyPy && pythonOlder "3.8") typed-ast;
checkInputs = [
diff --git a/pkgs/development/python-modules/asyncssh/default.nix b/pkgs/development/python-modules/asyncssh/default.nix
index 4c2fd7e6c64b..8cf73ba5df64 100644
--- a/pkgs/development/python-modules/asyncssh/default.nix
+++ b/pkgs/development/python-modules/asyncssh/default.nix
@@ -18,12 +18,12 @@
buildPythonPackage rec {
pname = "asyncssh";
- version = "2.7.1";
+ version = "2.7.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "8c8852eb00a09e45c403086e10965cb6d13e5cd203a1688d91e9c81aa080d052";
+ sha256 = "96b09239c3cc134cfb66ae1138313fdb48cc390806f21f831dd44f8a1d8252a1";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/aws-lambda-builders/default.nix b/pkgs/development/python-modules/aws-lambda-builders/default.nix
index c967e6b7b468..b93ba47c72a4 100644
--- a/pkgs/development/python-modules/aws-lambda-builders/default.nix
+++ b/pkgs/development/python-modules/aws-lambda-builders/default.nix
@@ -12,14 +12,14 @@
buildPythonPackage rec {
pname = "aws-lambda-builders";
- version = "1.6.0";
+ version = "1.8.1";
# No tests available in PyPI tarball
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-lambda-builders";
rev = "v${version}";
- sha256 = "sha256-H25Y1gusV+sSX0f6ii49bE36CgM1E3oWsX8AiVH85Y4=";
+ sha256 = "1avq04hmps2cd33dd5n4bc3lclqg0hv6khn804fbv0hmy7lywp8b";
};
# Package is not compatible with Python 3.5
diff --git a/pkgs/development/python-modules/aws-sam-translator/default.nix b/pkgs/development/python-modules/aws-sam-translator/default.nix
index 8bf823e83f0a..9807c6581c55 100644
--- a/pkgs/development/python-modules/aws-sam-translator/default.nix
+++ b/pkgs/development/python-modules/aws-sam-translator/default.nix
@@ -14,13 +14,13 @@
buildPythonPackage rec {
pname = "aws-sam-translator";
- version = "1.38.0";
+ version = "1.39.0";
src = fetchFromGitHub {
owner = "aws";
repo = "serverless-application-model";
rev = "v${version}";
- sha256 = "0nn9jfqz13kzmxm0r9vy24p8sqxv3mrm5d3lx7ah6rc581q8nv1k";
+ sha256 = "1a9m7zyqc414adw1i0sr2n9nlnmry0gi1ah1qna3yv9dx4ql9v9c";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/awscrt/default.nix b/pkgs/development/python-modules/awscrt/default.nix
index 4b48d74c43f7..fbdd15522e6a 100644
--- a/pkgs/development/python-modules/awscrt/default.nix
+++ b/pkgs/development/python-modules/awscrt/default.nix
@@ -2,7 +2,7 @@
buildPythonPackage rec {
pname = "awscrt";
- version = "0.12.4";
+ version = "0.12.5";
buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation Security ];
@@ -22,7 +22,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
- sha256 = "6ad69336bc5277f501bd7e33f82e11db2665370c7d279496ee39fe2f369baeb2";
+ sha256 = "8bb80b37ebfd01f6078c60bb3231118380ac06842de692f6e37b6f8643e15a1d";
};
meta = with lib; {
diff --git a/pkgs/development/python-modules/azure-core/default.nix b/pkgs/development/python-modules/azure-core/default.nix
index cd0a816815cd..773696c03958 100644
--- a/pkgs/development/python-modules/azure-core/default.nix
+++ b/pkgs/development/python-modules/azure-core/default.nix
@@ -44,6 +44,11 @@ buildPythonPackage rec {
typing-extensions
];
+ # test server needs to be available
+ preCheck = ''
+ export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH
+ '';
+
pytestFlagsArray = [ "tests/" ];
# disable tests which touch network
disabledTests = [ "aiohttp" "multipart_send" "response" "request" "timeout" ];
diff --git a/pkgs/development/python-modules/binwalk/default.nix b/pkgs/development/python-modules/binwalk/default.nix
index f7e6e86a0a16..112f12e5f25b 100644
--- a/pkgs/development/python-modules/binwalk/default.nix
+++ b/pkgs/development/python-modules/binwalk/default.nix
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
+, fetchpatch
, stdenv
, zlib
, xz
@@ -21,15 +22,28 @@
buildPythonPackage rec {
pname = "binwalk";
- version = "2.3.2";
+ version = "2.3.3";
src = fetchFromGitHub {
owner = "ReFirmLabs";
repo = "binwalk";
rev = "v${version}";
- sha256 = "sha256-lfHXutAp06Xr/TSBpDwBUBC/mWI9XuyImoKwA3inqgU=";
+ sha256 = "0phqyqv34vhh80dgipiggs4n3iq2vfjk9ywx2c5d8g61vzgbd2g8";
};
+ patches = [
+ # test_firmware_zip fails with 2.3.3 upgrade
+ # https://github.com/ReFirmLabs/binwalk/issues/566
+ (fetchpatch {
+ url = "https://github.com/ReFirmLabs/binwalk/commit/dd4f2efd275c9dd1001130e82e0f985110cd2754.patch";
+ sha256 = "1707n4nf1d1ay1yn4i8qlrvj2c1120g88hjwyklpsc2s2dcnqj9r";
+ includes = [
+ "testing/tests/test_firmware_zip.py"
+ ];
+ revert = true;
+ })
+ ];
+
propagatedBuildInputs = [ zlib xz gzip bzip2 gnutar p7zip cabextract squashfsTools xz pycrypto ]
++ lib.optionals visualizationSupport [ matplotlib pyqtgraph ]
++ lib.optionals (!stdenv.isDarwin) [ cramfsprogs cramfsswap sasquatch ];
diff --git a/pkgs/development/python-modules/blessed/default.nix b/pkgs/development/python-modules/blessed/default.nix
index f3a6a9dd3b45..981b5c85f96e 100644
--- a/pkgs/development/python-modules/blessed/default.nix
+++ b/pkgs/development/python-modules/blessed/default.nix
@@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "blessed";
- version = "1.18.1";
+ version = "1.19.0";
src = fetchPypi {
inherit pname version;
- sha256 = "8b09936def6bc06583db99b65636b980075733e13550cb6af262ce724a55da23";
+ sha256 = "4db0f94e5761aea330b528e84a250027ffe996b5a94bf03e502600c9a5ad7a61";
};
checkInputs = [ pytest mock glibcLocales ];
diff --git a/pkgs/development/python-modules/block-io/default.nix b/pkgs/development/python-modules/block-io/default.nix
index a76132e3e211..f634bf17ecc0 100644
--- a/pkgs/development/python-modules/block-io/default.nix
+++ b/pkgs/development/python-modules/block-io/default.nix
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "block-io";
- version = "2.0.4";
+ version = "2.0.5";
src = fetchPypi {
inherit pname version;
- sha256 = "817c9cd2ff76659caca4bb3d6758d5782a85f8c0ea13b08c4e14f0c2a8b7586d";
+ sha256 = "af70c3be444f2f2d07c0603cef547b51bbd9f4fbd4aadebd8f1e8ee73ccbc5e5";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/buildcatrust/default.nix b/pkgs/development/python-modules/buildcatrust/default.nix
new file mode 100644
index 000000000000..9fc0330ad0ba
--- /dev/null
+++ b/pkgs/development/python-modules/buildcatrust/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "buildcatrust";
+ version = "0.1.3";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "sha256:0s0m0fy943dakw9cbd40h46qmrhhgrcp292kppyb34m6y27sbagy";
+ };
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+ disabledTestPaths = [
+ # Non-hermetic, needs internet access (e.g. attempts to retrieve NSS store).
+ "buildcatrust/tests/test_nonhermetic.py"
+ ];
+
+ pythonImportsCheck = [ "buildcatrust" "buildcatrust.cli" ];
+
+ meta = with lib; {
+ description = "Build SSL/TLS trust stores";
+ homepage = "https://github.com/lukegb/buildcatrust";
+ license = licenses.mit;
+ maintainers = with maintainers; [ lukegb ];
+ };
+}
diff --git a/pkgs/development/python-modules/certifi/default.nix b/pkgs/development/python-modules/certifi/default.nix
index e21719245c8a..53fe66f01532 100644
--- a/pkgs/development/python-modules/certifi/default.nix
+++ b/pkgs/development/python-modules/certifi/default.nix
@@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "certifi";
- version = "2021.05.30";
+ version = "2021.10.08";
disabled = isPy27;
@@ -15,7 +15,7 @@ buildPythonPackage rec {
owner = pname;
repo = "python-certifi";
rev = version;
- sha256 = "1i4ljsc47iac6kl1w4w6x0qia08s9z394z9lbyzc05pm7y8a3cmj";
+ sha256 = "sha256-SFb/spVHK15b53ZG1P147DcTjs1dqR0+MBXzpE+CWpo=";
};
checkInputs = [
diff --git a/pkgs/development/python-modules/cfn-lint/default.nix b/pkgs/development/python-modules/cfn-lint/default.nix
index 6f6d55502958..f0769f57275a 100644
--- a/pkgs/development/python-modules/cfn-lint/default.nix
+++ b/pkgs/development/python-modules/cfn-lint/default.nix
@@ -21,13 +21,13 @@
buildPythonPackage rec {
pname = "cfn-lint";
- version = "0.53.1";
+ version = "0.54.2";
src = fetchFromGitHub {
owner = "aws-cloudformation";
repo = "cfn-python-lint";
rev = "v${version}";
- sha256 = "1wj2pzrrmrdf3mkhnz1qx41rshvfpgwlrxrb80d63r098pnq6df8";
+ sha256 = "04d5zyjnrl3b6cb2fxmbpii27mnq77wqsglfxfv2a1zj2p9xby0p";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/cftime/default.nix b/pkgs/development/python-modules/cftime/default.nix
index 46fad656cabe..7688851ecf11 100644
--- a/pkgs/development/python-modules/cftime/default.nix
+++ b/pkgs/development/python-modules/cftime/default.nix
@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "cftime";
- version = "1.5.0";
+ version = "1.5.1";
src = fetchPypi {
inherit pname version;
- sha256 = "b644bcb53346b6f4fe2fcc9f3b574740a2097637492dcca29632c817e0604f29";
+ sha256 = "8a398caed78389b366f1037ca62939ff01af2f1789c77bce05eb903f19ffd840";
};
checkInputs = [
diff --git a/pkgs/development/python-modules/charset-normalizer/default.nix b/pkgs/development/python-modules/charset-normalizer/default.nix
index dc0f5e1b296a..66d9e23668b4 100644
--- a/pkgs/development/python-modules/charset-normalizer/default.nix
+++ b/pkgs/development/python-modules/charset-normalizer/default.nix
@@ -6,13 +6,13 @@
buildPythonPackage rec {
pname = "charset-normalizer";
- version = "2.0.1";
+ version = "2.0.5";
src = fetchFromGitHub {
owner = "Ousret";
repo = "charset_normalizer";
rev = version;
- sha256 = "04rnyrqay11kma9pzagi1mzhc0sq37ggpv39kad2d4ynm35v2hfq";
+ sha256 = "0pv6yf5ialc82iimsjbq3gp5hh02pg4a7sdma48gd81h4h8qd627";
};
checkInputs = [
diff --git a/pkgs/development/python-modules/cli-helpers/default.nix b/pkgs/development/python-modules/cli-helpers/default.nix
index 1dc04d707882..a9e3daa8372b 100644
--- a/pkgs/development/python-modules/cli-helpers/default.nix
+++ b/pkgs/development/python-modules/cli-helpers/default.nix
@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "cli_helpers";
- version = "2.1.0";
+ version = "2.2.0";
src = fetchPypi {
inherit pname version;
- sha256 = "dd6f164310f7d86fa3da1f82043a9c784e44a02ad49be932a80624261e56979b";
+ sha256 = "733f65d8c921e0cffa8f7ae4c8735bd7ecdffec383c5246f647ddd0fddb33448";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/click-didyoumean/default.nix b/pkgs/development/python-modules/click-didyoumean/default.nix
index c4574072b4ca..565663aee0cc 100644
--- a/pkgs/development/python-modules/click-didyoumean/default.nix
+++ b/pkgs/development/python-modules/click-didyoumean/default.nix
@@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "click-didyoumean";
- version = "0.0.3";
+ version = "0.3.0";
src = fetchPypi {
inherit pname version;
- sha256 = "1svaza5lpvdbmyrx5xi0riqzq4hb9wnlpqrg6r8zy14pbi42j8hi";
+ sha256 = "f184f0d851d96b6d29297354ed981b7dd71df7ff500d82fa6d11f0856bee8035";
};
propagatedBuildInputs = [ click ];
diff --git a/pkgs/development/python-modules/click/default.nix b/pkgs/development/python-modules/click/default.nix
index d20322e3b843..a9e83804f707 100644
--- a/pkgs/development/python-modules/click/default.nix
+++ b/pkgs/development/python-modules/click/default.nix
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "click";
- version = "8.0.1";
+ version = "8.0.2";
src = fetchPypi {
inherit pname version;
- sha256 = "0ymdyf37acq4qxh038q0xx44qgj6y2kf0jd0ivvix6qij88w214c";
+ sha256 = "7027bc7bbafaab8b2c2816861d8eb372429ee3c02e193fc2f93d6c4ab9de49c5";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/cmarkgfm/default.nix b/pkgs/development/python-modules/cmarkgfm/default.nix
index 7379d6dc6c96..42fff42458b3 100644
--- a/pkgs/development/python-modules/cmarkgfm/default.nix
+++ b/pkgs/development/python-modules/cmarkgfm/default.nix
@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "cmarkgfm";
- version = "0.5.3";
+ version = "0.6.0";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-tqVJq6Mnq9mG1nSM8hyGN9dBx2hQ5/773vjSi/4TjjI=";
+ sha256 = "ec2bf8d5799c4b5bbfbae30a4a1dfcb06512f2e17e9ee60ba7e1d390318582fc";
};
propagatedBuildInputs = [ cffi ];
diff --git a/pkgs/development/python-modules/cmd2/default.nix b/pkgs/development/python-modules/cmd2/default.nix
index f74cf77c5e4a..f7308fd8ba93 100644
--- a/pkgs/development/python-modules/cmd2/default.nix
+++ b/pkgs/development/python-modules/cmd2/default.nix
@@ -18,13 +18,13 @@
buildPythonPackage rec {
pname = "cmd2";
- version = "2.1.2";
+ version = "2.2.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "25dbb2e9847aaa686a8a21e84e3d101db8b79f5cb992e044fc54210ab8c0ad41";
+ sha256 = "34cd12424d9e2835eff125146af3d9f4a4c2931c6bc5a3cea9790bd4f55756d9";
};
LC_ALL = "en_US.UTF-8";
diff --git a/pkgs/development/python-modules/curtsies/default.nix b/pkgs/development/python-modules/curtsies/default.nix
index 7b34884e26e2..549d6062c174 100644
--- a/pkgs/development/python-modules/curtsies/default.nix
+++ b/pkgs/development/python-modules/curtsies/default.nix
@@ -2,10 +2,10 @@
buildPythonPackage rec {
pname = "curtsies";
- version = "0.3.5";
+ version = "0.3.9";
src = fetchPypi {
inherit pname version;
- sha256 = "1g8dwafx4vx06isjkn28r3cwb0hw1bv67lgygaz34yk66lrzz1x5";
+ sha256 = "933b503767ce38fe32a1f77639d9a4fa3d5229d41abb31a91a6fcbdf01511a55";
};
propagatedBuildInputs = [ blessings cwcwidth ]
diff --git a/pkgs/development/python-modules/ddt/default.nix b/pkgs/development/python-modules/ddt/default.nix
index 11d32adf3bfb..bc5964c73769 100644
--- a/pkgs/development/python-modules/ddt/default.nix
+++ b/pkgs/development/python-modules/ddt/default.nix
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "ddt";
- version = "1.4.2";
+ version = "1.4.4";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-ZKZzZqJxXmNriGlMxgdcwC2ykvAQmLjjhTl8iU05U3g=";
+ sha256 = "8de39a69730442dc835e4d33f9d2e33043ff91151c8d18086959ee556febb9f8";
};
checkInputs = [ six pyyaml mock pytestCheckHook ];
diff --git a/pkgs/development/python-modules/decorator/default.nix b/pkgs/development/python-modules/decorator/default.nix
index f8d3f5c9ac61..0c1889963157 100644
--- a/pkgs/development/python-modules/decorator/default.nix
+++ b/pkgs/development/python-modules/decorator/default.nix
@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "decorator";
- version = "5.0.9";
+ version = "5.1.0";
src = fetchPypi {
inherit pname version;
- sha256 = "72ecfba4320a893c53f9706bebb2d55c270c1e51a28789361aa93e4a21319ed5";
+ sha256 = "e59913af105b9860aa2c8d3272d9de5a56a4e608db9a2f167a8480b323d529a7";
};
meta = with lib; {
diff --git a/pkgs/development/python-modules/devtools/default.nix b/pkgs/development/python-modules/devtools/default.nix
index 32050acfdf27..fdb240dde842 100644
--- a/pkgs/development/python-modules/devtools/default.nix
+++ b/pkgs/development/python-modules/devtools/default.nix
@@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "devtools";
- version = "0.6.1";
+ version = "0.8.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = "python-${pname}";
rev = "v${version}";
- sha256 = "0s1d2jwijini7y1a3318yhb98mh1mw4pzlfx2zck3a8nqw984ki3";
+ sha256 = "0yavcbxzxi1nfa1k326gsl03y8sadi5z5acamwd8b1bsiv15p757";
};
propagatedBuildInputs = [ pygments ];
diff --git a/pkgs/development/python-modules/distlib/default.nix b/pkgs/development/python-modules/distlib/default.nix
index 002c0923c26f..1c565b3f158b 100644
--- a/pkgs/development/python-modules/distlib/default.nix
+++ b/pkgs/development/python-modules/distlib/default.nix
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "distlib";
- version = "0.3.2";
+ version = "0.3.3";
src = fetchPypi {
inherit pname version;
- sha256 = "106fef6dc37dd8c0e2c0a60d3fca3e77460a48907f335fa28420463a6f799736";
+ sha256 = "d982d0751ff6eaaab5e2ec8e691d949ee80eddf01a62eaa96ddb11531fe16b05";
extension = "zip";
};
diff --git a/pkgs/development/python-modules/django-haystack/default.nix b/pkgs/development/python-modules/django-haystack/default.nix
index c207a37ebf15..0f0f4a0a1174 100644
--- a/pkgs/development/python-modules/django-haystack/default.nix
+++ b/pkgs/development/python-modules/django-haystack/default.nix
@@ -1,30 +1,60 @@
-{ lib, buildPythonPackage, fetchPypi
-, setuptools, setuptools-scm, django, python-dateutil, whoosh, pysolr
-, coverage, mock, nose, geopy, requests }:
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchPypi
+
+# build dependencies
+, setuptools-scm
+
+# dependencies
+, django
+
+# tests
+, geopy
+, nose
+, pysolr
+, python-dateutil
+, requests
+, whoosh
+}:
buildPythonPackage rec {
pname = "django-haystack";
version = "3.1.1";
+ format = "setuptools";
+ disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "6d05756b95d7d5ec1dbd4668eb999ced1504b47f588e2e54be53b1404c516a82";
};
- checkInputs = [ pysolr whoosh python-dateutil geopy coverage nose mock coverage requests ];
- propagatedBuildInputs = [ django setuptools ];
- nativeBuildInputs = [ setuptools-scm ];
-
postPatch = ''
- sed -i 's/geopy==/geopy>=/' setup.py
+ substituteInPlace setup.py \
+ --replace "geopy==" "geopy>="
'';
- # ImportError: cannot import name django.contrib.gis.geos.prototypes
- doCheck = false;
+ nativeBuildInputs = [
+ setuptools-scm
+ ];
+
+ propagatedBuildInputs = [
+ django
+ ];
+
+ checkInputs = [
+ geopy
+ nose
+ pysolr
+ python-dateutil
+ requests
+ whoosh
+ ];
meta = with lib; {
- description = "Modular search for Django";
+ description = "Pluggable search for Django";
homepage = "http://haystacksearch.org/";
license = licenses.bsd3;
+ maintainers = with maintainers; [ ];
};
}
diff --git a/pkgs/development/python-modules/django-mailman3/default.nix b/pkgs/development/python-modules/django-mailman3/default.nix
index 00eea271b493..cc04bf0d441f 100644
--- a/pkgs/development/python-modules/django-mailman3/default.nix
+++ b/pkgs/development/python-modules/django-mailman3/default.nix
@@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "django-mailman3";
- version = "1.3.6";
+ version = "1.3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "cd3cb1ac26a3658bd694b82f00eaab98903bd2edff34956e90c187c9ab5c0dae";
+ sha256 = "6ea8c24c13e7afe744f18e18e4d19d0e74223e0d9bd5d782deea85dcb865feb7";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/djangorestframework/default.nix b/pkgs/development/python-modules/djangorestframework/default.nix
index 66a57625b4a9..131be8781b36 100644
--- a/pkgs/development/python-modules/djangorestframework/default.nix
+++ b/pkgs/development/python-modules/djangorestframework/default.nix
@@ -1,7 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub, django, isPy27 }:
buildPythonPackage rec {
- version = "3.12.2";
+ version = "3.12.4";
pname = "djangorestframework";
disabled = isPy27;
@@ -9,7 +9,7 @@ buildPythonPackage rec {
owner = "encode";
repo = "django-rest-framework";
rev = version;
- sha256 = "y/dw6qIOc6NaNpBWJXDwHX9aFodgKv9rGKWQKS6STlk=";
+ sha256 = "sha256-FjMRfVyLmm5J9uOUTLZpO3Pvge3RoYnqIRvzMng7wZo=";
};
# Test settings are missing
diff --git a/pkgs/development/python-modules/docker/default.nix b/pkgs/development/python-modules/docker/default.nix
index 3c41ccd17324..f70fcebb26f3 100644
--- a/pkgs/development/python-modules/docker/default.nix
+++ b/pkgs/development/python-modules/docker/default.nix
@@ -14,11 +14,11 @@
buildPythonPackage rec {
pname = "docker";
- version = "5.0.0";
+ version = "5.0.3";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-PovEdTTgypMx1ywy8ogbsTuT3tC83qs8gz+3z2HAqaU=";
+ sha256 = "d916a26b62970e7c2f554110ed6af04c7ccff8e9f81ad17d0d40c75637e227fb";
};
nativeBuildInputs = lib.optional isPy27 mock;
diff --git a/pkgs/development/python-modules/docplex/default.nix b/pkgs/development/python-modules/docplex/default.nix
index 670ccae65422..b7b0231a806e 100644
--- a/pkgs/development/python-modules/docplex/default.nix
+++ b/pkgs/development/python-modules/docplex/default.nix
@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "docplex";
- version = "2.21.207";
+ version = "2.22.213";
# No source available from official repo
src = fetchPypi {
inherit pname version;
- sha256 = "4f1781592be2b093db939772db8c6575a0f017041fb0cfd784bedf4222ac5e58";
+ sha256 = "8a86bba42b5b65f2e0f88ed350115efeb783b444661e2cfcf3a67d5c59bcb0bd";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/dropbox/default.nix b/pkgs/development/python-modules/dropbox/default.nix
index 5b46c8183c81..849f551ac067 100644
--- a/pkgs/development/python-modules/dropbox/default.nix
+++ b/pkgs/development/python-modules/dropbox/default.nix
@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "dropbox";
- version = "11.20.0";
+ version = "11.21.0";
src = fetchPypi {
inherit pname version;
- sha256 = "1aa351ec8bbb11cf3560e731b81d25f39c7edcb5fa92c06c5d68866cb9f90d54";
+ sha256 = "6a4697acfe95bea13af9c133a41a8d774946c58ab47083b4c82a017a1b08c380";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/editdistance/default.nix b/pkgs/development/python-modules/editdistance/default.nix
index 01e59fdb040d..a831570363da 100644
--- a/pkgs/development/python-modules/editdistance/default.nix
+++ b/pkgs/development/python-modules/editdistance/default.nix
@@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "editdistance";
- version = "0.5.3";
+ version = "0.6.0";
src = fetchFromGitHub {
owner = "roy-ht";
repo = pname;
- rev = "v${version}";
- sha256 = "0vk8vz41p2cs7s7zbaw3cnw2jnvy5rhy525xral68dh14digpgsd";
+ rev = version;
+ sha256 = "1qajskfyx2ki81ybksf0lgl1pdyw7al4ci39zrj66ylsn8fssg89";
};
nativeBuildInputs = [ cython ];
diff --git a/pkgs/development/python-modules/entry-points-txt/default.nix b/pkgs/development/python-modules/entry-points-txt/default.nix
new file mode 100644
index 000000000000..d52e9ea0d3be
--- /dev/null
+++ b/pkgs/development/python-modules/entry-points-txt/default.nix
@@ -0,0 +1,22 @@
+{ lib
+, buildPythonPackage
+, fetchurl
+}:
+
+buildPythonPackage rec {
+ pname = "entry-points-txt";
+ version = "0.1.0";
+ format = "wheel";
+
+ src = fetchurl {
+ url = "https://github.com/jwodder/entry-points-txt/releases/download/v0.1.0/entry_points_txt-0.1.0-py3-none-any.whl";
+ sha256 = "29773bed3d9d337766a394e19d6f7ab0be3ed7d6f3ebb753ff0f7f48f056aa8e";
+ };
+
+ meta = with lib; {
+ homepage = "https://github.com/jwodder/entry-points-txt";
+ description = "Read & write entry_points.txt files";
+ license = with licenses; [ mit ];
+ maintainers = with lib.maintainers; [ ayazhafiz ];
+ };
+}
diff --git a/pkgs/development/python-modules/eventlet/default.nix b/pkgs/development/python-modules/eventlet/default.nix
index e8cb1971f2e5..24639b98e64b 100644
--- a/pkgs/development/python-modules/eventlet/default.nix
+++ b/pkgs/development/python-modules/eventlet/default.nix
@@ -40,7 +40,9 @@ buildPythonPackage rec {
checkPhase = ''
runHook preCheck
- nosetests --exclude test_getaddrinfo --exclude test_hosts_no_network
+ # test_fork-after_monkey_patch fails on aarch64 on hydra only
+ # AssertionError: Expected single line "pass" in stdout
+ nosetests --exclude test_getaddrinfo --exclude test_hosts_no_network --exclude test_fork_after_monkey_patch
runHook postCheck
'';
diff --git a/pkgs/development/python-modules/faker/default.nix b/pkgs/development/python-modules/faker/default.nix
index ae47989141e9..f363b6bb6f66 100644
--- a/pkgs/development/python-modules/faker/default.nix
+++ b/pkgs/development/python-modules/faker/default.nix
@@ -1,23 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
+, freezegun
+, pillow
+, pytestCheckHook
, python-dateutil
, text-unidecode
-, freezegun
-, pytestCheckHook
, ukpostcodeparser
-, pillow
, validators
}:
buildPythonPackage rec {
pname = "faker";
- version = "8.8.2";
+ version = "9.3.1";
src = fetchPypi {
pname = "Faker";
inherit version;
- sha256 = "sha256-IlNMOqbS7584QDojTcm3G1y4ePt2XHKZS+Xce06vCGU=";
+ hash = "sha256-zdnpry+6XJbuLsSshBm7pFjia1iiuYwfZGfuZglr7lI=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/falcon/default.nix b/pkgs/development/python-modules/falcon/default.nix
index eb6cbfa242e1..a42da353fc68 100644
--- a/pkgs/development/python-modules/falcon/default.nix
+++ b/pkgs/development/python-modules/falcon/default.nix
@@ -1,28 +1,53 @@
{ lib
, buildPythonPackage
, fetchPypi
-, coverage
-, ddt
-, nose
+, pythonOlder
+, aiofiles
+, cbor2
+, httpx
+, msgpack
+, pecan
+, pytest-asyncio
+, pytestCheckHook
, pyyaml
, requests
, testtools
+, websockets
}:
buildPythonPackage rec {
pname = "falcon";
- version = "2.0.0";
+ version = "3.0.1";
+ format = "pyproject";
+ disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
- sha256 = "eea593cf466b9c126ce667f6d30503624ef24459f118c75594a69353b6c3d5fc";
+ sha256 = "sha256-xB2E2zJYgahw6LcSnV7P2XL6QyPPd7cRmh0qIZZu5oE=";
};
- checkInputs = [coverage ddt nose pyyaml requests testtools];
+ checkInputs = [
+ aiofiles
+ cbor2
+ httpx
+ msgpack
+ pecan
+ pytest-asyncio
+ pytestCheckHook
+ pyyaml
+ requests
+ testtools
+ websockets
+ ];
- # The travis build fails since the migration from multiprocessing to threading for hosting the API under test.
- # OSError: [Errno 98] Address already in use
- doCheck = false;
+ disabledTestPaths = [
+ # missing optional nuts package
+ "falcon/bench/nuts/nuts/tests/test_functional.py"
+ # missing optional mujson package
+ "tests/test_media_handlers.py"
+ # tries to run uvicorn binary and doesn't find it
+ "tests/asgi/test_asgi_servers.py"
+ ];
meta = with lib; {
description = "An unladen web framework for building APIs and app backends";
diff --git a/pkgs/development/python-modules/filelock/default.nix b/pkgs/development/python-modules/filelock/default.nix
index 97073bb6b03b..d5ccc117beff 100644
--- a/pkgs/development/python-modules/filelock/default.nix
+++ b/pkgs/development/python-modules/filelock/default.nix
@@ -1,14 +1,30 @@
-{ lib, buildPythonPackage, fetchPypi }:
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchPypi
+, setuptools-scm
+, pytestCheckHook
+}:
buildPythonPackage rec {
pname = "filelock";
- version = "3.0.12";
+ version = "3.3.0";
+ format = "pyproject";
+ disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "18d82244ee114f543149c66a6e0c14e9c4f8a1044b5cdaadd0f82159d6a6ff59";
+ sha256 = "8c7eab13dc442dc249e95158bcc12dec724465919bdc9831fdbf0660f03d1785";
};
+ nativeBuildInputs = [
+ setuptools-scm
+ ];
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
meta = with lib; {
homepage = "https://github.com/benediktschmitt/py-filelock";
description = "A platform independent file lock for Python";
diff --git a/pkgs/development/python-modules/flake8/default.nix b/pkgs/development/python-modules/flake8/default.nix
index e40e7e37bbbc..e27be602d7a7 100644
--- a/pkgs/development/python-modules/flake8/default.nix
+++ b/pkgs/development/python-modules/flake8/default.nix
@@ -1,6 +1,17 @@
-{ lib, buildPythonPackage, fetchPypi, pythonOlder
-, mock, pytest, pytest-runner
-, configparser, enum34, mccabe, pycodestyle, pyflakes, functools32, typing ? null, importlib-metadata
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, configparser
+, enum34
+, mccabe
+, pycodestyle
+, pyflakes
+, functools32
+, typing
+, importlib-metadata
+, mock
+, pytestCheckHook
}:
buildPythonPackage rec {
@@ -12,24 +23,37 @@ buildPythonPackage rec {
sha256 = "07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b";
};
- checkInputs = [ pytest mock pytest-runner ];
- propagatedBuildInputs = [ pyflakes pycodestyle mccabe ]
- ++ lib.optionals (pythonOlder "3.2") [ configparser functools32 ]
- ++ lib.optionals (pythonOlder "3.4") [ enum34 ]
- ++ lib.optionals (pythonOlder "3.5") [ typing ]
- ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
+ postPatch = ''
+ substituteInPlace setup.cfg \
+ --replace "pyflakes >= 2.3.0, < 2.4.0" "pyflakes >= 2.3.0, < 2.5.0"
+ '';
+
+ propagatedBuildInputs = [
+ pyflakes
+ pycodestyle
+ mccabe
+ ] ++ lib.optionals (pythonOlder "3.2") [
+ configparser
+ functools32
+ ] ++ lib.optionals (pythonOlder "3.4") [
+ enum34
+ ] ++ lib.optionals (pythonOlder "3.5") [
+ typing
+ ] ++ lib.optionals (pythonOlder "3.8") [
+ importlib-metadata
+ ];
# Tests fail on Python 3.7 due to importlib using a deprecated interface
doCheck = !(pythonOlder "3.8");
- # fixtures fail to initialize correctly
- checkPhase = ''
- py.test tests --ignore=tests/integration/test_checker.py
- '';
+ checkInputs = [
+ mock
+ pytestCheckHook
+ ];
meta = with lib; {
- description = "Code checking using pep8 and pyflakes";
- homepage = "https://pypi.python.org/pypi/flake8";
+ description = "Flake8 is a wrapper around pyflakes, pycodestyle and mccabe.";
+ homepage = "https://github.com/pycqa/flake8";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
diff --git a/pkgs/development/python-modules/flask/default.nix b/pkgs/development/python-modules/flask/default.nix
index 166b30ac9856..2fe71c2d6db9 100644
--- a/pkgs/development/python-modules/flask/default.nix
+++ b/pkgs/development/python-modules/flask/default.nix
@@ -11,12 +11,12 @@
}:
buildPythonPackage rec {
- version = "2.0.1";
+ version = "2.0.2";
pname = "Flask";
src = fetchPypi {
inherit pname version;
- sha256 = "0mcgwq7b4qd99mf5bsvs3wphchxarf8kgil4hwww3blj31xjak0w";
+ sha256 = "7b2fb8e934ddd50731893bdcdb00fc8c0315916f9fcd50d22c7cc1a95ab634e2";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/flexmock/default.nix b/pkgs/development/python-modules/flexmock/default.nix
index 6061f04d627b..cd546b8c3b0d 100644
--- a/pkgs/development/python-modules/flexmock/default.nix
+++ b/pkgs/development/python-modules/flexmock/default.nix
@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "flexmock";
- version = "0.10.9";
+ version = "0.10.10";
src = fetchPypi {
inherit pname version;
- sha256 = "9c128b7cf31fac5340062c9c2cf1e0b12c601ee2d5c10ef39cc191036fb2e688";
+ sha256 = "8bb073f4b7b590672e8c312e73d6a14f88ae624a867b691462f9e8c24b9f19d1";
};
checkInputs = [ pytest ];
diff --git a/pkgs/development/python-modules/flufl/bounce.nix b/pkgs/development/python-modules/flufl/bounce.nix
index d44c8841f923..7687c0980c70 100644
--- a/pkgs/development/python-modules/flufl/bounce.nix
+++ b/pkgs/development/python-modules/flufl/bounce.nix
@@ -9,6 +9,6 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
- sha256 = "25504aeb976ec0fe5a19cd6c413a3410cb514fdcdbdca9f9b5d8d343a8603831";
+ sha256 = "sha256-JVBK65duwP5aGc1sQTo0EMtRT9zb3Kn5tdjTQ6hgODE=";
};
}
diff --git a/pkgs/development/python-modules/flufl/i18n.nix b/pkgs/development/python-modules/flufl/i18n.nix
index f9c5c8f1efe8..70b97a083d8f 100644
--- a/pkgs/development/python-modules/flufl/i18n.nix
+++ b/pkgs/development/python-modules/flufl/i18n.nix
@@ -12,6 +12,6 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
- sha256 = "c35c8f8eab66adb7fd64a1420860105066d2b36cb655b33ffb14afe8e223ed62";
+ sha256 = "sha256-w1yPjqtmrbf9ZKFCCGAQUGbSs2y2VbM/+xSv6OIj7WI=";
};
}
diff --git a/pkgs/development/python-modules/flufl/lock.nix b/pkgs/development/python-modules/flufl/lock.nix
index e63af005de31..c0f3ec60cf35 100644
--- a/pkgs/development/python-modules/flufl/lock.nix
+++ b/pkgs/development/python-modules/flufl/lock.nix
@@ -8,7 +8,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
- sha256 = "fc748ee609ec864b4838ef649dbd1170fa79deb0c213c2fd51151bee6a7fc242";
+ sha256 = "sha256-/HSO5gnshktIOO9knb0RcPp53rDCE8L9URUb7mp/wkI=";
};
propagatedBuildInputs = [ atpublic psutil ];
diff --git a/pkgs/development/python-modules/frozendict/default.nix b/pkgs/development/python-modules/frozendict/default.nix
index 4acf53563ded..4e486ae6016e 100644
--- a/pkgs/development/python-modules/frozendict/default.nix
+++ b/pkgs/development/python-modules/frozendict/default.nix
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "frozendict";
- version = "2.0.5"; # 2.0.6 breaks canonicaljson
+ version = "2.0.6"; # 2.0.6 breaks canonicaljson
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-wb7hwHDY2fZA4SjluHV2pEAAhgCfeGLRPAv4YA5iE9M=";
+ sha256 = "3f00de72805cf4c9e81b334f3f04809278b967d2fed84552313a0fcce511beb1";
};
pythonImportsCheck = [
diff --git a/pkgs/development/python-modules/furl/default.nix b/pkgs/development/python-modules/furl/default.nix
index c3c45e48d663..5872ab8b7824 100644
--- a/pkgs/development/python-modules/furl/default.nix
+++ b/pkgs/development/python-modules/furl/default.nix
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "furl";
- version = "2.1.2";
+ version = "2.1.3";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-99ujPq++59vIOWNTSyXnL4FsztSKxTGR7mC/zGKTORg=";
+ sha256 = "5a6188fe2666c484a12159c18be97a1977a71d632ef5bb867ef15f54af39cc4e";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/geventhttpclient/default.nix b/pkgs/development/python-modules/geventhttpclient/default.nix
index fd759a0bd723..0d5b46b4dd30 100644
--- a/pkgs/development/python-modules/geventhttpclient/default.nix
+++ b/pkgs/development/python-modules/geventhttpclient/default.nix
@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "geventhttpclient";
- version = "1.5.1";
+ version = "1.5.2";
src = fetchPypi {
inherit pname version;
- sha256 = "4aead64253d2769a6528544f7812ce8d71ae13551d079f2d9a3533d72818f2e0";
+ sha256 = "f3c5884d62be75162426728e3d86788740b13e363b197ef592f1443dba240709";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/google-cloud-datastore/default.nix b/pkgs/development/python-modules/google-cloud-datastore/default.nix
index f1449bbccd0a..84266540fd41 100644
--- a/pkgs/development/python-modules/google-cloud-datastore/default.nix
+++ b/pkgs/development/python-modules/google-cloud-datastore/default.nix
@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "google-cloud-datastore";
- version = "2.1.6";
+ version = "2.2.0";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-31PBHWnU0KbX8ymFh7+dP0uVbM6BWexdaumMVQbBO6o=";
+ sha256 = "e1349f4650ceeec92c266076104a0d9068f6374a20d7ea0f754ba89d16cbf5b1";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/gradient/default.nix b/pkgs/development/python-modules/gradient/default.nix
index a0788070a965..556688323b1e 100644
--- a/pkgs/development/python-modules/gradient/default.nix
+++ b/pkgs/development/python-modules/gradient/default.nix
@@ -22,11 +22,11 @@
buildPythonPackage rec {
pname = "gradient";
- version = "1.7.4";
+ version = "1.8.9";
src = fetchPypi {
inherit pname version;
- sha256 = "de1d33672f13d4de37a66ba9aebfd503a098d0ca26e5eb8b071e1c0dacd557ea";
+ sha256 = "c05913efe7fcc9f75c1fe84c157d2c2cf3ec0983e132d418c6e59fabc6361a1e";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/greenlet/default.nix b/pkgs/development/python-modules/greenlet/default.nix
index e997c7da3987..6f42eeefa9f4 100644
--- a/pkgs/development/python-modules/greenlet/default.nix
+++ b/pkgs/development/python-modules/greenlet/default.nix
@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "greenlet";
- version = "1.1.1";
+ version = "1.1.2";
disabled = isPyPy; # builtin for pypy
src = fetchPypi {
inherit pname version;
- sha256 = "c0f22774cd8294078bdf7392ac73cf00bfa1e5e0ed644bd064fdabc5f2a2f481";
+ sha256 = "e30f5ea4ae2346e62cedde8794a56858a67b878dd79f7df76a0767e356b1744a";
};
checkPhase = ''
diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix
index 90fd6bf50185..48788537a660 100644
--- a/pkgs/development/python-modules/hass-nabucasa/default.nix
+++ b/pkgs/development/python-modules/hass-nabucasa/default.nix
@@ -24,6 +24,13 @@ buildPythonPackage rec {
sha256 = "sha256-0E8eiHzqbxHbtAd97MbvFMRDWTu25E9x/44oNGC4mUM=";
};
+ postPatch = ''
+ sed -i 's/"acme.*"/"acme"/' setup.py
+ substituteInPlace setup.py \
+ --replace "cryptography>=2.8,<4.0" "cryptography" \
+ --replace "snitun==" "snitun>="
+ '';
+
propagatedBuildInputs = [
acme
aiohttp
@@ -40,12 +47,6 @@ buildPythonPackage rec {
pytestCheckHook
];
- postPatch = ''
- sed -i 's/"acme.*"/"acme"/' setup.py
- substituteInPlace setup.py \
- --replace "snitun==" "snitun>="
- '';
-
pythonImportsCheck = [ "hass_nabucasa" ];
meta = with lib; {
diff --git a/pkgs/development/python-modules/headerparser/default.nix b/pkgs/development/python-modules/headerparser/default.nix
new file mode 100644
index 000000000000..3ad265c217f7
--- /dev/null
+++ b/pkgs/development/python-modules/headerparser/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, entry-points-txt
+, six
+}:
+
+buildPythonPackage rec {
+ pname = "headerparser";
+ version = "0.4.0";
+
+ src = fetchPypi{
+ inherit pname;
+ inherit version;
+ sha256 = "b8ceae4c5e6133fda666d022684e93f9b3d45815c2c7881018123c71ff28c5cc";
+ };
+
+ buildInputs = [
+ six
+ ];
+
+ meta = with lib; {
+ homepage = "https://github.com/jwodder/headerparser";
+ description = "argparse for mail-style headers";
+ license = with licenses; [ mit ];
+ maintainers = with lib.maintainers; [ ayazhafiz ];
+ };
+}
diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix
index 85ec6257ea5d..f878320e5d47 100644
--- a/pkgs/development/python-modules/humanize/default.nix
+++ b/pkgs/development/python-modules/humanize/default.nix
@@ -9,13 +9,13 @@
}:
buildPythonPackage rec {
- version = "3.11.0";
+ version = "3.12.0";
pname = "humanize";
disabled = isPy27; # setup.py no longer compatible
src = fetchPypi {
inherit pname version;
- sha256 = "4160cdc63fcd0daac27d2e1e218a31bb396fc3fe5712d153675d89432a03778f";
+ sha256 = "5ec1a66e230a3e31fb3f184aab9436ea13d4e37c168e0ffc345ae5bb57e58be6";
};
nativeBuildInputs = [ setuptools-scm ];
diff --git a/pkgs/development/python-modules/hypothesis/default.nix b/pkgs/development/python-modules/hypothesis/default.nix
index 4d0a1713d954..ee3778685905 100644
--- a/pkgs/development/python-modules/hypothesis/default.nix
+++ b/pkgs/development/python-modules/hypothesis/default.nix
@@ -18,14 +18,14 @@ buildPythonPackage rec {
# If you need these, you can just add them to your environment.
pname = "hypothesis";
- version = "6.17.3";
+ version = "6.23.2";
# Use github tarballs that includes tests
src = fetchFromGitHub {
owner = "HypothesisWorks";
repo = "hypothesis-python";
rev = "hypothesis-python-${version}";
- sha256 = "1g96q3l97lq3xps36cv147dvj44nh1b0k67z817x7zfwyw844sgn";
+ sha256 = "1mdygyq6ra4kysi0y2g3a4bgpqrcb8ci2061117zyms419qwwh4l";
};
postUnpack = "sourceRoot=$sourceRoot/hypothesis-python";
diff --git a/pkgs/development/python-modules/imap-tools/default.nix b/pkgs/development/python-modules/imap-tools/default.nix
index 392663e391d1..eb81678ae4f1 100644
--- a/pkgs/development/python-modules/imap-tools/default.nix
+++ b/pkgs/development/python-modules/imap-tools/default.nix
@@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "imap-tools";
- version = "0.48.1";
+ version = "0.49.1";
disabled = isPy27;
@@ -15,7 +15,7 @@ buildPythonPackage rec {
owner = "ikvk";
repo = "imap_tools";
rev = "v${version}";
- sha256 = "sha256-AS407jsDk+dAz1DPM44vTUQEleohr9xKnjgCw5Rjs9M=";
+ sha256 = "071bri1h6j8saqqlb50zibdrk5hgkpwp4ysiskl1zin18794bq82";
};
checkInputs = [
@@ -29,6 +29,9 @@ buildPythonPackage rec {
"test_connectio"
"test_attributes"
"test_live"
+ # logic operator tests broken in 0.49.0
+ # https://github.com/ikvk/imap_tools/issues/143
+ "test_logic_operators"
];
pythonImportsCheck = [ "imap_tools" ];
diff --git a/pkgs/development/python-modules/importlib-metadata/default.nix b/pkgs/development/python-modules/importlib-metadata/default.nix
index d67a6c947517..158f101167e2 100644
--- a/pkgs/development/python-modules/importlib-metadata/default.nix
+++ b/pkgs/development/python-modules/importlib-metadata/default.nix
@@ -10,13 +10,13 @@
buildPythonPackage rec {
pname = "importlib-metadata";
- version = "4.6.4";
+ version = "4.8.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "importlib_metadata";
inherit version;
- sha256 = "sha256-ezCnjbKSLXim9H+zBoMVahTzxqpcwj93zIln6astAC8=";
+ sha256 = "sha256-8oSz4RJWrR5dA6uGuyzNb1M5aI/xek15eg/n3zJvI7E=";
};
nativeBuildInputs = [ setuptools-scm ];
diff --git a/pkgs/development/python-modules/influxdb/default.nix b/pkgs/development/python-modules/influxdb/default.nix
index 3b9672701833..8ecd46e3b96b 100644
--- a/pkgs/development/python-modules/influxdb/default.nix
+++ b/pkgs/development/python-modules/influxdb/default.nix
@@ -57,6 +57,8 @@ buildPythonPackage rec {
# b'foo[30 chars]_one="1",column_two=1i 0\nfoo,tag_one=red,tag_[46 chars]00\n'
"test_write_points_from_dataframe_with_nan_json"
"test_write_points_from_dataframe_with_tags_and_nan_json"
+ # Reponse is not empty but `s = 'ĺť'` and the JSON decoder chokes on that
+ "test_query_with_empty_result"
];
pythonImportsCheck = [ "influxdb" ];
diff --git a/pkgs/development/python-modules/inform/default.nix b/pkgs/development/python-modules/inform/default.nix
index 9ef6fd1e0a1d..aff0d77e7022 100644
--- a/pkgs/development/python-modules/inform/default.nix
+++ b/pkgs/development/python-modules/inform/default.nix
@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "inform";
- version = "1.25";
+ version = "1.26";
src = fetchFromGitHub {
owner = "KenKundert";
repo = "inform";
rev = "v${version}";
- sha256 = "1r56wmn21c7ggy33548l6dfjswhadkp2iaalfb7xgsxmq7qfcnax";
+ sha256 = "0snrmvmc3rnz90cql5ayzs878rrkadk46rhvf2sn78nb0x57wa20";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/ipykernel/default.nix b/pkgs/development/python-modules/ipykernel/default.nix
index 589168c4bc54..1c8ce638359a 100644
--- a/pkgs/development/python-modules/ipykernel/default.nix
+++ b/pkgs/development/python-modules/ipykernel/default.nix
@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "ipykernel";
- version = "6.3.0";
+ version = "6.4.1";
src = fetchPypi {
inherit pname version;
- sha256 = "5314690a638f893e2cc3bf3d25042920e9fbb873f7d8263033390264caeb95f4";
+ sha256 = "df3355e5eec23126bc89767a676c5f0abfc7f4c3497d118c592b83b316e8c0cd";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/ipympl/default.nix b/pkgs/development/python-modules/ipympl/default.nix
index 2d25eb645bad..4075ae5d1909 100644
--- a/pkgs/development/python-modules/ipympl/default.nix
+++ b/pkgs/development/python-modules/ipympl/default.nix
@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "ipympl";
- version = "0.7.0";
+ version = "0.8.0";
src = fetchPypi {
inherit pname version;
- sha256 = "f0f1f356d8cb9d4fb51bb86dbbf837c190145316cb72f66081872ebc4d6db0a1";
+ sha256 = "ef5d21820ed88a8bd6efddb884c333d0eaea7f2f7d4b3054e6d386b07a36dd9d";
};
propagatedBuildInputs = [ ipywidgets matplotlib jupyter-packaging ];
diff --git a/pkgs/development/python-modules/ipython/default.nix b/pkgs/development/python-modules/ipython/default.nix
index 548ba874cd70..b8a13eb436c0 100644
--- a/pkgs/development/python-modules/ipython/default.nix
+++ b/pkgs/development/python-modules/ipython/default.nix
@@ -23,12 +23,12 @@
buildPythonPackage rec {
pname = "ipython";
- version = "7.27.0";
+ version = "7.28.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "58b55ebfdfa260dad10d509702dc2857cb25ad82609506b070cf2d7b7df5af13";
+ sha256 = "2097be5c814d1b974aea57673176a924c4c8c9583890e7a5f082f547b9975b11";
};
prePatch = lib.optionalString stdenv.isDarwin ''
diff --git a/pkgs/development/python-modules/ipywidgets/default.nix b/pkgs/development/python-modules/ipywidgets/default.nix
index a0087131b1af..c324eea947da 100644
--- a/pkgs/development/python-modules/ipywidgets/default.nix
+++ b/pkgs/development/python-modules/ipywidgets/default.nix
@@ -15,11 +15,11 @@
buildPythonPackage rec {
pname = "ipywidgets";
- version = "7.6.3";
+ version = "7.6.5";
src = fetchPypi {
inherit pname version;
- sha256 = "9f1a43e620530f9e570e4a493677d25f08310118d315b00e25a18f12913c41f0";
+ sha256 = "00974f7cb4d5f8d494c19810fedb9fa9b64bffd3cda7c2be23c133a1ad3c99c5";
};
# Tests are not distributed
diff --git a/pkgs/development/python-modules/iterm2/default.nix b/pkgs/development/python-modules/iterm2/default.nix
index a1b777c1bb76..125dc2691e5b 100644
--- a/pkgs/development/python-modules/iterm2/default.nix
+++ b/pkgs/development/python-modules/iterm2/default.nix
@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "iterm2";
- version = "1.27";
+ version = "1.29";
src = fetchPypi {
inherit pname version;
- sha256 = "dcbd89d0502e72a9a41b055f5cf10b5a991f60fb12df29918d9c2183d1389abd";
+ sha256 = "8245562ed713fd473520f81361cdc1b15835920e1ceb7d588678cd153e77c2b6";
};
propagatedBuildInputs = [ protobuf websockets ];
diff --git a/pkgs/development/python-modules/jax/default.nix b/pkgs/development/python-modules/jax/default.nix
index f0b4d6e26324..e1d21af094f9 100644
--- a/pkgs/development/python-modules/jax/default.nix
+++ b/pkgs/development/python-modules/jax/default.nix
@@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "jax";
- version = "0.2.19";
+ version = "0.2.21";
# Fetching from pypi doesn't allow us to run the test suite. See https://discourse.nixos.org/t/pythonremovetestsdir-hook-being-run-before-checkphase/14612/3.
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "jax-v${version}";
- sha256 = "sha256-pVn62G7pydR7ybkf7gSbu0FlEq2c0US6H2GTBAljup4=";
+ sha256 = "05w157h6jv20k8w2gnmlxbycmzf24lr5v392q0c5v0qcql11q7pn";
};
# jaxlib is _not_ included in propagatedBuildInputs because there are
diff --git a/pkgs/development/python-modules/jedi/default.nix b/pkgs/development/python-modules/jedi/default.nix
index 0dba5e8f192c..814c8acbf91f 100644
--- a/pkgs/development/python-modules/jedi/default.nix
+++ b/pkgs/development/python-modules/jedi/default.nix
@@ -1,29 +1,52 @@
-{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi, pytest, glibcLocales, tox, pytest-cov, parso }:
+{ lib
+, stdenv
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, fetchPypi
+, colorama
+, django
+, docopt
+, pytestCheckHook
+, parso
+}:
buildPythonPackage rec {
pname = "jedi";
- # switch back to stable version on the next release.
- # current stable is incompatible with parso
- version = "2020-08-06";
+ version = "0.18.0";
+ disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "davidhalter";
repo = "jedi";
- rev = "216f976fd5cab7a460e5d287e853d11759251e52";
- sha256 = "1kb2ajzigadl95pnwglg8fxz9cvpg9hx30hqqj91jkgrc7djdldj";
+ rev = "v${version}";
+ sha256 = "0d8zdj56hyxbsvvrid6r3nprm0ygxaad6zpsbhbj6k7p3dcx7acw";
fetchSubmodules = true;
};
- checkInputs = [ pytest glibcLocales tox pytest-cov ];
-
propagatedBuildInputs = [ parso ];
- checkPhase = ''
- LC_ALL="en_US.UTF-8" py.test test
+ checkInputs = [
+ colorama
+ django
+ docopt
+ pytestCheckHook
+ ];
+
+ preCheck = ''
+ export HOME=$TMPDIR
'';
- # tox required for tests: https://github.com/davidhalter/jedi/issues/808
- doCheck = false;
+ disabledTests = [
+ # Assertions mismatches with pytest>=6.0
+ "test_completion"
+
+ # sensitive to platform, causes false negatives on darwin
+ "test_import"
+ ] ++ lib.optionals (stdenv.isAarch64 && pythonOlder "3.9") [
+ # AssertionError: assert 'foo' in ['setup']
+ "test_init_extension_module"
+ ];
meta = with lib; {
homepage = "https://github.com/davidhalter/jedi";
diff --git a/pkgs/development/python-modules/jinja2/default.nix b/pkgs/development/python-modules/jinja2/default.nix
index d54372379b86..7be9367da916 100644
--- a/pkgs/development/python-modules/jinja2/default.nix
+++ b/pkgs/development/python-modules/jinja2/default.nix
@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "Jinja2";
- version = "3.0.1";
+ version = "3.0.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "197ms1wimxql650245v63wkv04n8bicj549wfhp51bx68x5lhgvh";
+ sha256 = "827a0e32839ab1600d4eb1c4c33ec5a8edfbc5cb42dafa13b81f182f97784b45";
};
propagatedBuildInputs = [
@@ -31,6 +31,13 @@ buildPythonPackage rec {
pytestCheckHook
];
+ pytestFlagsArray = [
+ # Avoid failure due to deprecation warning
+ # Fixed in https://github.com/python/cpython/pull/28153
+ # Remove after cpython 3.9.8
+ "-p no:warnings"
+ ];
+
meta = with lib; {
homepage = "http://jinja.pocoo.org/";
description = "Stand-alone template engine";
diff --git a/pkgs/development/python-modules/joblib/default.nix b/pkgs/development/python-modules/joblib/default.nix
index aad27b5ae636..2b011f56c1e8 100644
--- a/pkgs/development/python-modules/joblib/default.nix
+++ b/pkgs/development/python-modules/joblib/default.nix
@@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "joblib";
- version = "1.0.1";
+ version = "1.1.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "9c17567692206d2f3fb9ecf5e991084254fe631665c450b443761c4186a613f7";
+ sha256 = "4158fcecd13733f8be669be0683b96ebdbbd38d23559f54dca7205aea1bf1e35";
};
checkInputs = [ sphinx numpydoc pytestCheckHook ];
diff --git a/pkgs/development/python-modules/josepy/default.nix b/pkgs/development/python-modules/josepy/default.nix
index 02f7319d7ff9..b262e6883322 100644
--- a/pkgs/development/python-modules/josepy/default.nix
+++ b/pkgs/development/python-modules/josepy/default.nix
@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "josepy";
- version = "1.9.0";
+ version = "1.10.0";
src = fetchPypi {
inherit pname version;
- sha256 = "51cce8d97ced0556aae0ce3161b26d5f0f54bc42c749d3c606edc6d97d9802dc";
+ sha256 = "e9bcaf605411cadaec04841ae2d5f77ebb178b7b6df7c9aed1d97399ac18685b";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/jupyter-client/default.nix b/pkgs/development/python-modules/jupyter-client/default.nix
index 665b907a704e..b543008988ea 100644
--- a/pkgs/development/python-modules/jupyter-client/default.nix
+++ b/pkgs/development/python-modules/jupyter-client/default.nix
@@ -13,13 +13,12 @@
}:
buildPythonPackage rec {
- pname = "jupyter-client";
- version = "7.0.2";
+ pname = "jupyter_client";
+ version = "7.0.6";
src = fetchPypi {
- pname = "jupyter_client";
- inherit version;
- sha256 = "0c6cabd07e003a2e9692394bf1ae794188ad17d2e250ed747232d7a473aa772c";
+ inherit pname version;
+ sha256 = "8b6e06000eb9399775e0a55c52df6c1be4766666209c22f90c2691ded0e338dc";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/jupyter_core/default.nix b/pkgs/development/python-modules/jupyter_core/default.nix
index cdd0485b6843..f83ba1362341 100644
--- a/pkgs/development/python-modules/jupyter_core/default.nix
+++ b/pkgs/development/python-modules/jupyter_core/default.nix
@@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "jupyter_core";
- version = "4.7.1";
+ version = "4.8.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "79025cb3225efcd36847d0840f3fc672c0abd7afd0de83ba8a1d3837619122b4";
+ sha256 = "ef210dcb4fca04de07f2ead4adf408776aca94d17151d6f750ad6ded0b91ea16";
};
checkInputs = [ pytest mock glibcLocales nose ];
diff --git a/pkgs/development/python-modules/jupyter_server/default.nix b/pkgs/development/python-modules/jupyter_server/default.nix
index 85ac49673795..0e1469e0940e 100644
--- a/pkgs/development/python-modules/jupyter_server/default.nix
+++ b/pkgs/development/python-modules/jupyter_server/default.nix
@@ -26,12 +26,12 @@
buildPythonPackage rec {
pname = "jupyter_server";
- version = "1.11.1";
+ version = "1.11.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "ab7ab1cc38512f15026cbcbb96300fb46ec8b24aa162263d9edd00e0a749b1e8";
+ sha256 = "c1f32e0c1807ab2de37bf70af97a36b4436db0bc8af3124632b1f4441038bf95";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/jupyterlab/default.nix b/pkgs/development/python-modules/jupyterlab/default.nix
index b1c70d0263d8..d018b626996f 100644
--- a/pkgs/development/python-modules/jupyterlab/default.nix
+++ b/pkgs/development/python-modules/jupyterlab/default.nix
@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "jupyterlab";
- version = "3.1.17";
+ version = "3.1.18";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
- sha256 = "7e829cedce4fec676fb9d83850805df9e563b3ca7f20f70bd2ea177a462b7a78";
+ sha256 = "a43733acc3729557fc4758cff55652e52896e42c64c1f12540656ae7f298b806";
};
nativeBuildInputs = [ jupyter-packaging ];
diff --git a/pkgs/development/python-modules/jupyterlab_server/default.nix b/pkgs/development/python-modules/jupyterlab_server/default.nix
index a56b5d86abef..f342f2f64eca 100644
--- a/pkgs/development/python-modules/jupyterlab_server/default.nix
+++ b/pkgs/development/python-modules/jupyterlab_server/default.nix
@@ -16,12 +16,12 @@
buildPythonPackage rec {
pname = "jupyterlab_server";
- version = "2.8.1";
+ version = "2.8.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "39fd519e9b3275873bd15de891363c28f2649814f7bbc11c57469c60e8408e97";
+ sha256 = "26d813c8162c83d466df7d155865987dabe70aa452f9187dfb79fd88afc8fa0b";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/keyring/default.nix b/pkgs/development/python-modules/keyring/default.nix
index cf765c06d869..8f86e6a5dd35 100644
--- a/pkgs/development/python-modules/keyring/default.nix
+++ b/pkgs/development/python-modules/keyring/default.nix
@@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "keyring";
- version = "23.1.0";
+ version = "23.2.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "b7e0156667f5dcc73c1f63a518005cd18a4eb23fe77321194fefcc03748b21a4";
+ sha256 = "6334aee6073db2fb1f30892697b1730105b5e9a77ce7e61fca6b435225493efe";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/labelbox/default.nix b/pkgs/development/python-modules/labelbox/default.nix
index 5f8057df849d..5c7d7afedc43 100644
--- a/pkgs/development/python-modules/labelbox/default.nix
+++ b/pkgs/development/python-modules/labelbox/default.nix
@@ -19,14 +19,14 @@
buildPythonPackage rec {
pname = "labelbox";
- version = "3.2.0";
+ version = "3.6.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Labelbox";
repo = "labelbox-python";
- rev = "V${version}";
- sha256 = "0vp1lk7hipa4ixa1zcy99r9b5xb1gv54h4i0izx6fv4zf9m0gmw1";
+ rev = "v${version}";
+ sha256 = "0mix7ajdvyhyvi8nwmxz62mzwl3242h2pzj84zikrmh1ampwvg3g";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/leather/default.nix b/pkgs/development/python-modules/leather/default.nix
index 197e88e8e8b2..af2cb219cdbd 100644
--- a/pkgs/development/python-modules/leather/default.nix
+++ b/pkgs/development/python-modules/leather/default.nix
@@ -1,16 +1,35 @@
-{ lib, fetchPypi, buildPythonPackage, six }:
+{ lib
+, fetchPypi
+, buildPythonPackage
+, six
+, cssselect
+, lxml
+, nose
+}:
buildPythonPackage rec {
pname = "leather";
- version = "0.3.3";
+ version = "0.3.4";
src = fetchPypi {
inherit pname version;
- sha256 = "125r372q7bwcajfdysp7w5zh5wccwxf1mkhqawl8h518nl1icv87";
+ sha256 = "b43e21c8fa46b2679de8449f4d953c06418666dc058ce41055ee8a8d3bb40918";
};
propagatedBuildInputs = [ six ];
+ checkInputs = [
+ cssselect
+ lxml
+ nose
+ ];
+
+ checkPhase = ''
+ runHook preCheck
+ nosetests
+ runHook postCheck
+ '';
+
meta = with lib; {
homepage = "http://leather.rtfd.io";
description = "Python charting library";
diff --git a/pkgs/development/python-modules/libarchive-c/default.nix b/pkgs/development/python-modules/libarchive-c/default.nix
index 48262398fcbf..7c33652c0ea5 100644
--- a/pkgs/development/python-modules/libarchive-c/default.nix
+++ b/pkgs/development/python-modules/libarchive-c/default.nix
@@ -38,11 +38,6 @@ buildPythonPackage rec {
pytestCheckHook
];
- disabledTests = lib.optionals (pythonAtLeast "3.9") [
- # causes python3.9 to segfault
- "test_custom_writer_and_stream_reader"
- ];
-
meta = with lib; {
homepage = "https://github.com/Changaco/python-libarchive-c";
description = "Python interface to libarchive";
diff --git a/pkgs/development/python-modules/libusb1/default.nix b/pkgs/development/python-modules/libusb1/default.nix
index ce39ec117ee0..f1b474b960f6 100644
--- a/pkgs/development/python-modules/libusb1/default.nix
+++ b/pkgs/development/python-modules/libusb1/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, buildPythonPackage, fetchPypi, libusb1, pytest }:
+{ lib, stdenv, buildPythonPackage, fetchPypi, libusb1, pytestCheckHook }:
buildPythonPackage rec {
pname = "libusb1";
@@ -17,11 +17,11 @@ buildPythonPackage rec {
buildInputs = [ libusb1 ];
- checkInputs = [ pytest ];
+ checkInputs = [ pytestCheckHook ];
- checkPhase = ''
- py.test usb1/testUSB1.py
- '';
+ pytestFlagsArray = [
+ "usb1/testUSB1.py"
+ ];
meta = with lib; {
homepage = "https://github.com/vpelletier/python-libusb1";
diff --git a/pkgs/development/python-modules/line_profiler/default.nix b/pkgs/development/python-modules/line_profiler/default.nix
index aac026cea929..3ca82c968966 100644
--- a/pkgs/development/python-modules/line_profiler/default.nix
+++ b/pkgs/development/python-modules/line_profiler/default.nix
@@ -11,11 +11,11 @@
buildPythonPackage rec {
pname = "line_profiler";
- version = "3.3.0";
+ version = "3.3.1";
src = fetchPypi {
inherit pname version;
- sha256 = "8bd8353e9403b226def4438dbfdb57cafefb24488e49a6039cc63906c0bc8836";
+ sha256 = "6e2fb792ca022f900f374f9659fd3e7c530cd4df7d3b7e84be889093b487639f";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/makefun/default.nix b/pkgs/development/python-modules/makefun/default.nix
index 12655c0d6de1..aeb13abd0dfe 100644
--- a/pkgs/development/python-modules/makefun/default.nix
+++ b/pkgs/development/python-modules/makefun/default.nix
@@ -2,24 +2,30 @@
, fetchPypi
, buildPythonPackage
, setuptools-scm
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "makefun";
- version = "1.11.3";
+ version = "1.12.1";
src = fetchPypi {
inherit pname version;
- sha256 = "033eed65e2c1804fca84161a38d1fc8bb8650d32a89ac1c5dc7e54b2b2c2e88c";
+ sha256 = "4d0e90ca3fdbdeb6a4a0891e2da7d4b8e80386e19e6db91ce29b8aa5c876ecfe";
};
- nativeBuildInputs = [ setuptools-scm ];
+ postPatch = ''
+ substituteInPlace setup.cfg \
+ --replace "pytest-runner" ""
+ '';
- # Disabling tests for now due to various (transitive) dependencies on modules
- # from @smarie which are, as of yet, not part of nixpkgs. Also introduces
- # a tricky dependency: makefun tests depend on pytest-cases, installing
- # pytest-cases depends on makefun.
- doCheck = false;
+ nativeBuildInputs = [
+ setuptools-scm
+ ];
+
+ checkInputs = [
+ pytestCheckHook
+ ];
pythonImportsCheck = [ "makefun" ];
diff --git a/pkgs/development/python-modules/mathlibtools/default.nix b/pkgs/development/python-modules/mathlibtools/default.nix
index 969a91870b0f..a788a9c60b7d 100644
--- a/pkgs/development/python-modules/mathlibtools/default.nix
+++ b/pkgs/development/python-modules/mathlibtools/default.nix
@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "mathlibtools";
- version = "1.0.0";
+ version = "1.1.0";
src = fetchPypi {
inherit pname version;
- sha256 = "da41c65e206f55b1faea303581fc11215e52d6e6990b827336b2e1eb82aad96c";
+ sha256 = "789f070f35424e89e4f2e2c007382250133cc48877627e37c5c463bcf4a1b58a";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/matplotlib-inline/default.nix b/pkgs/development/python-modules/matplotlib-inline/default.nix
index f4c220dea6c6..9ee23b87ee81 100644
--- a/pkgs/development/python-modules/matplotlib-inline/default.nix
+++ b/pkgs/development/python-modules/matplotlib-inline/default.nix
@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "matplotlib-inline";
- version = "0.1.2";
+ version = "0.1.3";
src = fetchPypi {
inherit pname version;
- sha256 = "0glrhcv1zqck1whsh3p75x0chda588xw22swbmvqalwz7kvmy7gl";
+ sha256 = "a04bfba22e0d1395479f866853ec1ee28eea1485c1d69a6faf00dc3e24ff34ee";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/mdformat/default.nix b/pkgs/development/python-modules/mdformat/default.nix
index 43f95bc952a2..101ed2aa1346 100644
--- a/pkgs/development/python-modules/mdformat/default.nix
+++ b/pkgs/development/python-modules/mdformat/default.nix
@@ -6,20 +6,22 @@
, poetry-core
, pytestCheckHook
, pythonOlder
+, tomli
, typing-extensions
}:
buildPythonPackage rec {
pname = "mdformat";
- version = "0.7.9";
+ version = "0.7.10";
format = "pyproject";
- disabled = pythonOlder "3.6";
+
+ disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "executablebooks";
repo = pname;
rev = version;
- sha256 = "sha256-qGRZCDo/ACSXtJa4omepjaR0KNWeR4vvvUUbQpKlrtI=";
+ sha256 = "sha256-Zw7ZGV/Hd0MRxxQVwkjtE6MJXNLQ0A0PJlQr4x9h2ww=";
};
nativeBuildInputs = [
@@ -28,6 +30,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
markdown-it-py
+ tomli
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
] ++ lib.optionals (pythonOlder "3.7") [
diff --git a/pkgs/development/python-modules/mistune/default.nix b/pkgs/development/python-modules/mistune/default.nix
index 3020eca4eed5..c7e7d6d54c73 100644
--- a/pkgs/development/python-modules/mistune/default.nix
+++ b/pkgs/development/python-modules/mistune/default.nix
@@ -4,8 +4,8 @@ self: rec {
sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
};
mistune_2_0 = self.callPackage ./common.nix {
- version = "2.0.0a4";
- sha256 = "0i6cblmjl58kdmaa21xm0l1ls0kvjpfy45sf73fw3ws6305f628k";
+ version = "2.0.0rc1";
+ sha256 = "1nd7iav1ixh9hlj4hxn6lmpava88d86ys8rqm30wgvr7gjlxnas5";
};
mistune = mistune_0_8;
}
diff --git a/pkgs/development/python-modules/mlflow/default.nix b/pkgs/development/python-modules/mlflow/default.nix
index b50d98513a2f..6ef5788b8418 100644
--- a/pkgs/development/python-modules/mlflow/default.nix
+++ b/pkgs/development/python-modules/mlflow/default.nix
@@ -25,12 +25,12 @@
buildPythonPackage rec {
pname = "mlflow";
- version = "1.20.1";
+ version = "1.20.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "71764443c4942f181fee2d5bf44dd74a0507bcc5b62a1f1e08079d1f40a15fc0";
+ sha256 = "b15ff0c7e5e64f864a0b40c99b9a582227315eca2065d9f831db9aeb8f24637b";
};
# run into https://stackoverflow.com/questions/51203641/attributeerror-module-alembic-context-has-no-attribute-config
diff --git a/pkgs/development/python-modules/more-itertools/default.nix b/pkgs/development/python-modules/more-itertools/default.nix
index d523a0bdb1e8..a03b3a06c393 100644
--- a/pkgs/development/python-modules/more-itertools/default.nix
+++ b/pkgs/development/python-modules/more-itertools/default.nix
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "more-itertools";
- version = "8.8.0";
+ version = "8.10.0";
src = fetchPypi {
inherit pname version;
- sha256 = "83f0308e05477c68f56ea3a888172c78ed5d5b3c282addb67508e7ba6c8f813a";
+ sha256 = "sha256-HevKvrHfeTgUhZ1kqBrXyxBQTCQ0k2jM8hTGZMR09B8=";
};
checkInputs = [ nose ];
diff --git a/pkgs/development/python-modules/msal/default.nix b/pkgs/development/python-modules/msal/default.nix
index a13fabe600a2..aca7def34a17 100644
--- a/pkgs/development/python-modules/msal/default.nix
+++ b/pkgs/development/python-modules/msal/default.nix
@@ -21,6 +21,13 @@ buildPythonPackage rec {
requests
];
+ # we already have cryptography included, version bounds are causing issues
+ postPatch = ''
+ substituteInPlace setup.py \
+ --replace "PyJWT[crypto]>=1.0.0,<3" "PyJWT" \
+ --replace "cryptography>=0.6,<38" "cryptography"
+ '';
+
# Tests assume Network Connectivity:
# https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73
doCheck = false;
diff --git a/pkgs/development/python-modules/multidict/default.nix b/pkgs/development/python-modules/multidict/default.nix
index ec19843ab9dc..6a167697f9cd 100644
--- a/pkgs/development/python-modules/multidict/default.nix
+++ b/pkgs/development/python-modules/multidict/default.nix
@@ -1,22 +1,27 @@
{ lib
, fetchPypi
, buildPythonPackage
-, pytestCheckHook, pytest-runner, pytest-cov
+, pytestCheckHook
, isPy3k
}:
buildPythonPackage rec {
pname = "multidict";
- version = "5.1.0";
+ version = "5.2.0";
+
+ disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "25b4e5f22d3a37ddf3effc0710ba692cfc792c2b9edfb9c05aefe823256e84d5";
+ sha256 = "0dd1c93edb444b33ba2274b66f63def8a327d607c6c790772f448a53b6ea59ce";
};
- checkInputs = [ pytestCheckHook pytest-runner pytest-cov ];
+ postPatch = ''
+ substituteInPlace setup.cfg \
+ --replace "--cov=multidict --cov-report term-missing:skip-covered --cov-report xml" ""
+ '';
- disabled = !isPy3k;
+ checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Multidict implementation";
diff --git a/pkgs/development/python-modules/multimethod/default.nix b/pkgs/development/python-modules/multimethod/default.nix
index af2e5950dc2d..fe2bb2ef45c1 100644
--- a/pkgs/development/python-modules/multimethod/default.nix
+++ b/pkgs/development/python-modules/multimethod/default.nix
@@ -1,21 +1,23 @@
{ lib
, buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
, pytestCheckHook
-, pytest-cov
}:
+
buildPythonPackage rec {
pname = "multimethod";
- version = "1.5";
+ version = "1.6";
+ format = "pyproject";
- src = fetchPypi {
- inherit pname version;
- sha256 = "b9c6f85ecf187f14a3951fff319643e1fac3086d757dec64f2469e1fd136b65d";
+ src = fetchFromGitHub {
+ owner = "coady";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "09vrxzv8q0lqsbh6d83wjdd29ja66rj31y7wmyha14jk603fd9k0";
};
checkInputs = [
pytestCheckHook
- pytest-cov
];
pythonImportsCheck = [
diff --git a/pkgs/development/python-modules/mypy-protobuf/default.nix b/pkgs/development/python-modules/mypy-protobuf/default.nix
index c7194d19b5cb..fdcfed839c78 100644
--- a/pkgs/development/python-modules/mypy-protobuf/default.nix
+++ b/pkgs/development/python-modules/mypy-protobuf/default.nix
@@ -2,13 +2,14 @@
buildPythonApplication rec {
pname = "mypy-protobuf";
- version = "2.9";
+ version = "2.10";
+ format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "278172935d7121c2f8c7c0a05518dd565a2b76d9e9c4a0a3fcd08a21fa685d43";
+ sha256 = "1fed214e16351b09946770794a321a818abb744078b1d863a479da070028684c";
};
propagatedBuildInputs = [ protobuf types-protobuf grpcio-tools ];
diff --git a/pkgs/development/python-modules/nbconvert/default.nix b/pkgs/development/python-modules/nbconvert/default.nix
index 331a9a8e497a..a6b09cbe31e9 100644
--- a/pkgs/development/python-modules/nbconvert/default.nix
+++ b/pkgs/development/python-modules/nbconvert/default.nix
@@ -23,11 +23,11 @@
buildPythonPackage rec {
pname = "nbconvert";
- version = "6.1.0";
+ version = "6.2.0";
src = fetchPypi {
inherit pname version;
- sha256 = "d22a8ff202644d31db254d24d52c3a96c82156623fcd7c7f987bba2612303ec9";
+ sha256 = "16ceecd0afaa8fd26c245fa32e2c52066c02f13aa73387fffafd84750baea863";
};
# Add $out/share/jupyter to the list of paths that are used to search for
diff --git a/pkgs/development/python-modules/networkx/default.nix b/pkgs/development/python-modules/networkx/default.nix
index 0ed9f3b9cb3c..e8769f9efc7d 100644
--- a/pkgs/development/python-modules/networkx/default.nix
+++ b/pkgs/development/python-modules/networkx/default.nix
@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "networkx";
# upgrade may break sage, please test the sage build or ping @timokau on upgrade
- version = "2.6.2";
+ version = "2.6.3";
src = fetchPypi {
inherit pname version;
- sha256 = "2306f1950ce772c5a59a57f5486d59bb9cab98497c45fc49cbc45ac0dec119bb";
+ sha256 = "c0946ed31d71f1b732b5aaa6da5a0388a345019af232ce2f49c766e2d6795c51";
};
propagatedBuildInputs = [ decorator setuptools ];
diff --git a/pkgs/development/python-modules/nilearn/default.nix b/pkgs/development/python-modules/nilearn/default.nix
index 6e3158b27961..41f84dbb6679 100644
--- a/pkgs/development/python-modules/nilearn/default.nix
+++ b/pkgs/development/python-modules/nilearn/default.nix
@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "nilearn";
- version = "0.8.0";
+ version = "0.8.1";
src = fetchPypi {
inherit pname version;
- sha256 = "f2d3dc81005f829f3a183efa6c90d698ea6818c06264d2e3f03e805c4340febb";
+ sha256 = "a0489940855130f35bbc4cac0750479a6f82025215ea7b1d778faca064219298";
};
checkInputs = [ pytestCheckHook ];
diff --git a/pkgs/development/python-modules/nmigen/default.nix b/pkgs/development/python-modules/nmigen/default.nix
index 8bd198713a3f..0228e7b3185c 100644
--- a/pkgs/development/python-modules/nmigen/default.nix
+++ b/pkgs/development/python-modules/nmigen/default.nix
@@ -55,7 +55,8 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
- --replace "Jinja2~=2.11" "Jinja2>=2.11"
+ --replace "Jinja2~=2.11" "Jinja2>=2.11" \
+ --replace "pyvcd~=0.2.2" "pyvcd"
'';
pythonImportsCheck = [ "nmigen" ];
diff --git a/pkgs/development/python-modules/notebook/default.nix b/pkgs/development/python-modules/notebook/default.nix
index 3574ff98e048..d17ad5884f37 100644
--- a/pkgs/development/python-modules/notebook/default.nix
+++ b/pkgs/development/python-modules/notebook/default.nix
@@ -27,12 +27,12 @@
buildPythonPackage rec {
pname = "notebook";
- version = "6.4.3";
+ version = "6.4.4";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "03awxl8hr7ibwr6n48gci8jx80f18zll439wyr8gj35h6vnxzdp6";
+ sha256 = "26b0095c568e307a310fd78818ad8ebade4f00462dada4c0e34cbad632b9085d";
};
LC_ALL = "en_US.utf8";
diff --git a/pkgs/development/python-modules/numba/default.nix b/pkgs/development/python-modules/numba/default.nix
index 287737900b89..c45419c5c88c 100644
--- a/pkgs/development/python-modules/numba/default.nix
+++ b/pkgs/development/python-modules/numba/default.nix
@@ -12,13 +12,13 @@
}:
buildPythonPackage rec {
- version = "0.54.0";
+ version = "0.54.1";
pname = "numba";
disabled = pythonOlder "3.6" || pythonAtLeast "3.10";
src = fetchPypi {
inherit pname version;
- sha256 = "bad6bd98ab2e41c34aa9c80b8d9737e07d92a53df4f74d3ada1458b0b516ccff";
+ sha256 = "f9dfc803c864edcc2381219b800abf366793400aea55e26d4d5b7d953e14f43f";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix
index 5c6b87b38fed..b6aef62dd74d 100644
--- a/pkgs/development/python-modules/ocrmypdf/default.nix
+++ b/pkgs/development/python-modules/ocrmypdf/default.nix
@@ -5,6 +5,7 @@
, fetchFromGitHub
, ghostscript
, img2pdf
+, importlib-metadata
, importlib-resources
, jbig2enc
, leptonica
@@ -15,6 +16,7 @@
, pngquant
, pytest-xdist
, pytestCheckHook
+, pythonOlder
, reportlab
, setuptools
, setuptools-scm
@@ -28,7 +30,7 @@
buildPythonPackage rec {
pname = "ocrmypdf";
- version = "12.6.0";
+ version = "12.7.0";
src = fetchFromGitHub {
owner = "jbarlow83";
@@ -40,7 +42,7 @@ buildPythonPackage rec {
extraPostFetch = ''
rm "$out/.git_archival.txt"
'';
- sha256 = "0zw7c6l9fkf128gxsbd7v4abazlxiygqys6627jpsjbmxg5jgp5w";
+ sha256 = "sha256-lpTuaZRrmFoKV1SAFoGpsYfPBkLB2+iB63fg3t9RC5o=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@@ -66,7 +68,6 @@ buildPythonPackage rec {
cffi
coloredlogs
img2pdf
- importlib-resources
pdfminer
pikepdf
pillow
@@ -74,7 +75,11 @@ buildPythonPackage rec {
reportlab
setuptools
tqdm
- ];
+ ] ++ (lib.optionals (pythonOlder "3.8") [
+ importlib-metadata
+ ]) ++ (lib.optionals (pythonOlder "3.9") [
+ importlib-resources
+ ]);
checkInputs = [
pytest-xdist
diff --git a/pkgs/development/python-modules/openpyxl/default.nix b/pkgs/development/python-modules/openpyxl/default.nix
index 317aba65621a..f8b97b6f2ea3 100644
--- a/pkgs/development/python-modules/openpyxl/default.nix
+++ b/pkgs/development/python-modules/openpyxl/default.nix
@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "openpyxl";
- version = "3.0.7";
+ version = "3.0.9";
disabled = isPy27; # 2.6.4 was final python2 release
src = fetchPypi {
inherit pname version;
- sha256 = "6456a3b472e1ef0facb1129f3c6ef00713cebf62e736cd7a75bcc3247432f251";
+ sha256 = "40f568b9829bf9e446acfffce30250ac1fa39035124d55fc024025c41481c90f";
};
checkInputs = [ pytest ];
diff --git a/pkgs/development/python-modules/optuna/default.nix b/pkgs/development/python-modules/optuna/default.nix
index 457d796d0b78..b7247083be43 100644
--- a/pkgs/development/python-modules/optuna/default.nix
+++ b/pkgs/development/python-modules/optuna/default.nix
@@ -30,14 +30,14 @@
buildPythonPackage rec {
pname = "optuna";
- version = "2.9.1";
+ version = "2.10.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "optuna";
repo = pname;
rev = "v${version}";
- sha256 = "1fx80qjrkmnvn2mg9fx26qn3sjlwnwqlmkaf6sqhdw79pn6khlpi";
+ sha256 = "0fha0pwxq6n3mbpvpz3vk8hh61zqncj5cnq063kzfl5d8rd48vcd";
};
checkInputs = [
diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix
index 52a77826f2d6..019429111308 100644
--- a/pkgs/development/python-modules/pandas/default.nix
+++ b/pkgs/development/python-modules/pandas/default.nix
@@ -33,11 +33,11 @@
buildPythonPackage rec {
pname = "pandas";
- version = "1.3.2";
+ version = "1.3.3";
src = fetchPypi {
inherit pname version;
- sha256 = "cbcb84d63867af3411fa063af3de64902665bb5b3d40b25b2059e40603594e87";
+ sha256 = "272c8cb14aa9793eada6b1ebe81994616e647b5892a370c7135efb2924b701df";
};
nativeBuildInputs = [ cython ];
diff --git a/pkgs/development/python-modules/pandocfilters/default.nix b/pkgs/development/python-modules/pandocfilters/default.nix
index 8ca57440b3f7..9dac79bea743 100644
--- a/pkgs/development/python-modules/pandocfilters/default.nix
+++ b/pkgs/development/python-modules/pandocfilters/default.nix
@@ -4,12 +4,12 @@
}:
buildPythonPackage rec {
- version = "1.4.3";
+ version = "1.5.0";
pname = "pandocfilters";
src = fetchPypi {
inherit pname version;
- sha256 = "bc63fbb50534b4b1f8ebe1860889289e8af94a23bff7445259592df25a3906eb";
+ sha256 = "0b679503337d233b4339a817bfc8c50064e2eff681314376a47cb582305a7a38";
};
# No tests available
diff --git a/pkgs/development/python-modules/parfive/default.nix b/pkgs/development/python-modules/parfive/default.nix
index b525c39de220..e551dbb3e765 100644
--- a/pkgs/development/python-modules/parfive/default.nix
+++ b/pkgs/development/python-modules/parfive/default.nix
@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "parfive";
- version = "1.3.0";
+ version = "1.5.0";
src = fetchPypi {
inherit pname version;
- sha256 = "c3067e6ca9d6fb88a10958338360bd9c47edfd8ab11098d4c601f7f2887edadd";
+ sha256 = "f36128e8a93f3494ce3de8af883eeba4bd651ab228682810a46ec4b7897a84b3";
};
buildInputs = [
diff --git a/pkgs/development/python-modules/patsy/default.nix b/pkgs/development/python-modules/patsy/default.nix
index bd3c103b9a74..71bf10bb3c00 100644
--- a/pkgs/development/python-modules/patsy/default.nix
+++ b/pkgs/development/python-modules/patsy/default.nix
@@ -1,31 +1,35 @@
{ lib
, fetchPypi
, buildPythonPackage
-, nose
, six
, numpy
, scipy # optional, allows spline-related features (see patsy's docs)
-, parameterized
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "patsy";
- version = "0.5.1";
+ version = "0.5.2";
src = fetchPypi {
inherit pname version;
- sha256 = "149rbrdzwns0ay88caf1zsm1r53v1q5np1mrb36na50y432cw5gi";
+ sha256 = "5053de7804676aba62783dbb0f23a2b3d74e35e5bfa238b88b7cbf148a38b69d";
};
- checkInputs = [ nose parameterized ];
- checkPhase = "nosetests -v";
-
propagatedBuildInputs = [
six
numpy
scipy
];
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [
+ "patsy"
+ ];
+
meta = {
description = "A Python package for describing statistical models";
homepage = "https://github.com/pydata/patsy";
diff --git a/pkgs/development/python-modules/pdoc3/default.nix b/pkgs/development/python-modules/pdoc3/default.nix
index 1a3996311570..9edd16289918 100644
--- a/pkgs/development/python-modules/pdoc3/default.nix
+++ b/pkgs/development/python-modules/pdoc3/default.nix
@@ -1,4 +1,7 @@
-{ lib, buildPythonPackage, fetchPypi
+{ lib
+, buildPythonPackage
+, fetchPypi
+, fetchpatch
, pythonOlder
, Mako
, markdown
@@ -16,8 +19,24 @@ buildPythonPackage rec {
sha256 = "5f22e7bcb969006738e1aa4219c75a32f34c2d62d46dc9d2fb2d3e0b0287e4b7";
};
- nativeBuildInputs = [ setuptools-git setuptools-scm ];
- propagatedBuildInputs = [ Mako markdown ];
+ patches = [
+ (fetchpatch {
+ # test_Class_params fails in 0.10.0
+ # https://github.com/pdoc3/pdoc/issues/355
+ url = "https://github.com/pdoc3/pdoc/commit/4aa70de2221a34a3003a7e5f52a9b91965f0e359.patch";
+ sha256 = "07sbf7bh09vgd5z1lbay604rz7rhg88414whs6iy60wwbvkz5c2v";
+ })
+ ];
+
+ nativeBuildInputs = [
+ setuptools-git
+ setuptools-scm
+ ];
+
+ propagatedBuildInputs = [
+ Mako
+ markdown
+ ];
meta = with lib; {
description = "Auto-generate API documentation for Python projects.";
diff --git a/pkgs/development/python-modules/pikepdf/default.nix b/pkgs/development/python-modules/pikepdf/default.nix
index 2b0b9bc4999a..ab78f2262445 100644
--- a/pkgs/development/python-modules/pikepdf/default.nix
+++ b/pkgs/development/python-modules/pikepdf/default.nix
@@ -2,7 +2,7 @@
, attrs
, buildPythonPackage
, defusedxml
-, fetchPypi
+, fetchFromGitHub
, hypothesis
, isPy3k
, jbig2dec
@@ -27,9 +27,17 @@ buildPythonPackage rec {
version = "3.2.0";
disabled = ! isPy3k;
- src = fetchPypi {
- inherit pname version;
- sha256 = "a0582f00440668c07edb8403e82724961c7812c8e6c30655e34825b2645f15cd";
+ src = fetchFromGitHub {
+ owner = "pikepdf";
+ repo = "pikepdf";
+ rev = "v${version}";
+ # The content of .git_archival.txt is substituted upon tarball creation,
+ # which creates indeterminism if master no longer points to the tag.
+ # See https://github.com/jbarlow83/OCRmyPDF/issues/841
+ extraPostFetch = ''
+ rm "$out/.git_archival.txt"
+ '';
+ sha256 = "03c7ihd6rf6kdfc3cpgxy5pi6cj4zwscz8nyxmmp15fmdk3hkw4g";
};
patches = [
@@ -40,6 +48,8 @@ buildPythonPackage rec {
})
];
+ SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
buildInputs = [
pybind11
qpdf
diff --git a/pkgs/development/python-modules/pip-tools/default.nix b/pkgs/development/python-modules/pip-tools/default.nix
index 9ac877be8848..1cda1fd87523 100644
--- a/pkgs/development/python-modules/pip-tools/default.nix
+++ b/pkgs/development/python-modules/pip-tools/default.nix
@@ -15,13 +15,13 @@
buildPythonPackage rec {
pname = "pip-tools";
- version = "6.2.0";
+ version = "6.3.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "9ed38c73da4993e531694ea151f77048b4dbf2ba7b94c4a569daa39568cc6564";
+ sha256 = "992d968df6f1a19d4d37c53b68b3d4b601b894fb3ee0926d1fa762ebc7c7e9e9";
};
LC_ALL = "en_US.UTF-8";
diff --git a/pkgs/development/python-modules/platformdirs/default.nix b/pkgs/development/python-modules/platformdirs/default.nix
index f49b8716211e..062295a4eada 100644
--- a/pkgs/development/python-modules/platformdirs/default.nix
+++ b/pkgs/development/python-modules/platformdirs/default.nix
@@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "platformdirs";
- version = "2.3.0";
+ version = "2.4.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
- sha256 = "sha256-g2DPNN7VxK3EjOXOpSWA4a+PghZ7v2jmjw9+VQyCTBI=";
+ sha256 = "sha256-Ox1CVq2M2eddZtpuZx0IfvuOm6RPsAs27WkMdZSeh0E=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
diff --git a/pkgs/development/python-modules/plotly/default.nix b/pkgs/development/python-modules/plotly/default.nix
index 4b849dd016b8..5ef6c785fed0 100644
--- a/pkgs/development/python-modules/plotly/default.nix
+++ b/pkgs/development/python-modules/plotly/default.nix
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "plotly";
- version = "5.3.0";
+ version = "5.3.1";
src = fetchPypi {
inherit pname version;
- sha256 = "b6dc306c56e7d5fa7d017718894099b27290b427abf4acad8e5b77fdc3bd32ec";
+ sha256 = "6598393e898a9c5ae78397f76f07002ec41fd92e5f746d3b9806248d53885643";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/pluggy/default.nix b/pkgs/development/python-modules/pluggy/default.nix
index 1a1c23f22d0a..8d1fcbed3a7f 100644
--- a/pkgs/development/python-modules/pluggy/default.nix
+++ b/pkgs/development/python-modules/pluggy/default.nix
@@ -2,6 +2,7 @@
, lib
, fetchPypi
, setuptools-scm
+, pythonOlder
, importlib-metadata
}:
@@ -23,12 +24,14 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools-scm ];
- propagatedBuildInputs = [ importlib-metadata ];
+ propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
+ importlib-metadata
+ ];
meta = {
description = "Plugin and hook calling mechanisms for Python";
homepage = "https://github.com/pytest-dev/pluggy";
license = lib.licenses.mit;
- maintainers = with lib.maintainers; [ ];
+ maintainers = with lib.maintainers; [ dotlambda ];
};
}
diff --git a/pkgs/development/python-modules/poetry-core/default.nix b/pkgs/development/python-modules/poetry-core/default.nix
index 7eef9e740d31..e8632d0ed078 100644
--- a/pkgs/development/python-modules/poetry-core/default.nix
+++ b/pkgs/development/python-modules/poetry-core/default.nix
@@ -1,4 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
+, git
, importlib-metadata
, intreehooks
, pathlib2
@@ -12,14 +13,14 @@
buildPythonPackage rec {
pname = "poetry-core";
- version = "1.0.4";
+ version = "1.0.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = version;
- sha256 = "0jgd4d7m5y8ly8n0l9lcq7cjab2y3hifk90f343ksmjzssfd5lg3";
+ sha256 = "0v86x8f8pcbviv2cdn7jjbgj3c994qasx0bqk1kr0mj8m6pjwy9z";
};
postPatch = lib.optionalString (pythonOlder "3.8") ''
@@ -41,6 +42,7 @@ buildPythonPackage rec {
];
checkInputs = [
+ git
pep517
pytest-mock
pytestCheckHook
diff --git a/pkgs/development/python-modules/poetry/default.nix b/pkgs/development/python-modules/poetry/default.nix
index 29477474c845..368f28212882 100644
--- a/pkgs/development/python-modules/poetry/default.nix
+++ b/pkgs/development/python-modules/poetry/default.nix
@@ -24,7 +24,7 @@
buildPythonPackage rec {
pname = "poetry";
- version = "1.1.8";
+ version = "1.1.11";
format = "pyproject";
disabled = isPy27;
@@ -32,7 +32,7 @@ buildPythonPackage rec {
owner = "python-poetry";
repo = pname;
rev = version;
- sha256 = "0qcgjb78nj69sppd8146519q9422xxg1bi34gyxy51sjkvd5lxhz";
+ sha256 = "1f3y3gav2snvcf2h9mbkinvnlcyl9kndf6bh6j0vxkxzlmb4zilx";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/portend/default.nix b/pkgs/development/python-modules/portend/default.nix
index d48f387400e4..52e46cec75a0 100644
--- a/pkgs/development/python-modules/portend/default.nix
+++ b/pkgs/development/python-modules/portend/default.nix
@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "portend";
- version = "2.7.1";
+ version = "2.7.2";
src = fetchPypi {
inherit pname version;
- sha256 = "986ed9a278e64a87b5b5f4c21e61c25bebdce9919a92238d9c14c37a7416482b";
+ sha256 = "3fbc0df9e4970b661e4d7386a91fc7bcf34ebeaf0333ce15d819d515a71ba8b2";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/prettytable/default.nix b/pkgs/development/python-modules/prettytable/default.nix
index 5b3253b31b39..ddaa842e9b11 100644
--- a/pkgs/development/python-modules/prettytable/default.nix
+++ b/pkgs/development/python-modules/prettytable/default.nix
@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "prettytable";
- version = "2.2.0";
+ version = "2.2.1";
src = fetchPypi {
inherit pname version;
- sha256 = "bd81678c108e6c73d4f1e47cd4283de301faaa6ff6220bcd1d4022038c56b416";
+ sha256 = "6d465005573a5c058d4ca343449a5b28c21252b86afcdfa168cdc6a440f0b24c";
};
nativeBuildInputs = [ setuptools-scm ];
diff --git a/pkgs/development/python-modules/proto-plus/default.nix b/pkgs/development/python-modules/proto-plus/default.nix
index e623840f1c65..a6d60567ef96 100644
--- a/pkgs/development/python-modules/proto-plus/default.nix
+++ b/pkgs/development/python-modules/proto-plus/default.nix
@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "proto-plus";
- version = "1.19.2";
+ version = "1.19.4";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-ylMLBxjGJbpj8VGrP83INrWTQ9FJt9/RXsLc6zhEwi0=";
+ sha256 = "416dc38b090ca2093f6fac74977ac4a5599e496483a43c0076e6f6a4dd77ed9c";
};
propagatedBuildInputs = [ protobuf ];
diff --git a/pkgs/development/python-modules/pudb/default.nix b/pkgs/development/python-modules/pudb/default.nix
index 6df85ca5f089..3459c5c99742 100644
--- a/pkgs/development/python-modules/pudb/default.nix
+++ b/pkgs/development/python-modules/pudb/default.nix
@@ -1,29 +1,43 @@
{ lib
, buildPythonPackage
+, isPy3k
, fetchPypi
+, jedi
, pygments
, urwid
-, isPy3k
+, pytest-mock
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pudb";
version = "2021.1";
+ disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "309ee82b45a0ffca0bc4c7f521fd3e357589c764f339bdf9dcabb7ad40692d6e";
};
- propagatedBuildInputs = [ pygments urwid ];
+ propagatedBuildInputs = [
+ jedi
+ pygments
+ urwid
+ ];
- # Tests fail on python 3 due to writes to the read-only home directory
- doCheck = !isPy3k;
+ preCheck = ''
+ export HOME=$TMPDIR
+ '';
+
+ checkInputs = [
+ pytest-mock
+ pytestCheckHook
+ ];
meta = with lib; {
description = "A full-screen, console-based Python debugger";
+ homepage = "https://github.com/inducer/pudb";
license = licenses.mit;
- platforms = platforms.all;
+ maintainers = with maintainers; [ ];
};
-
}
diff --git a/pkgs/development/python-modules/pyatv/default.nix b/pkgs/development/python-modules/pyatv/default.nix
index 00a377bf2a3c..092e5b91f16c 100644
--- a/pkgs/development/python-modules/pyatv/default.nix
+++ b/pkgs/development/python-modules/pyatv/default.nix
@@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, aiohttp
-, audio-metadata
, bitarray
, cryptography
, deepdiff
@@ -40,7 +39,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohttp
- audio-metadata
bitarray
cryptography
mediafile
diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix
index e6be3f063fef..fccc064f23ef 100644
--- a/pkgs/development/python-modules/pybind11/default.nix
+++ b/pkgs/development/python-modules/pybind11/default.nix
@@ -12,13 +12,13 @@
buildPythonPackage rec {
pname = "pybind11";
- version = "2.7.1";
+ version = "2.8.0";
src = fetchFromGitHub {
owner = "pybind";
repo = pname;
rev = "v${version}";
- sha256 = "13nq16pxz4vck7jn936ymhm0y0q82hd7kkw0ip7k85cx7wywzbql";
+ sha256 = "sha256-kmyfRNZM9AtF0QA1MnWEPwWb6BebkkpanTvQwsraSJo=";
};
nativeBuildInputs = [ cmake ];
diff --git a/pkgs/development/python-modules/pycountry/default.nix b/pkgs/development/python-modules/pycountry/default.nix
index 525a56107118..868504e39949 100644
--- a/pkgs/development/python-modules/pycountry/default.nix
+++ b/pkgs/development/python-modules/pycountry/default.nix
@@ -1,7 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
-,
+, pytestCheckHook
}:
buildPythonPackage rec {
@@ -13,10 +13,19 @@ buildPythonPackage rec {
sha256 = "0hnbabsmqimx5hqh0jbd2f64i8fhzhhbrvid57048hs5sd9ll241";
};
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [
+ "pycountry"
+ ];
+
meta = with lib; {
- homepage = "https://bitbucket.org/flyingcircus/pycountry";
+ homepage = "https://github.com/flyingcircusio/pycountry";
description = "ISO country, subdivision, language, currency and script definitions and their translations";
license = licenses.lgpl2;
+ maintainers = with maintainers; [ ];
};
}
diff --git a/pkgs/development/python-modules/pycryptodome/default.nix b/pkgs/development/python-modules/pycryptodome/default.nix
index 0c57ad9c96f2..19b2447acb11 100644
--- a/pkgs/development/python-modules/pycryptodome/default.nix
+++ b/pkgs/development/python-modules/pycryptodome/default.nix
@@ -1,12 +1,12 @@
{ lib, fetchPypi, buildPythonPackage }:
buildPythonPackage rec {
- version = "3.10.1";
+ version = "3.11.0";
pname = "pycryptodome";
src = fetchPypi {
inherit pname version;
- sha256 = "3e2e3a06580c5f190df843cdb90ea28d61099cf4924334d5297a995de68e4673";
+ sha256 = "428096bbf7a77e207f418dfd4d7c284df8ade81d2dc80f010e92753a3e406ad0";
};
meta = with lib; {
diff --git a/pkgs/development/python-modules/pycryptodomex/default.nix b/pkgs/development/python-modules/pycryptodomex/default.nix
index fae49e7be0a7..eab3a6b0bbd5 100644
--- a/pkgs/development/python-modules/pycryptodomex/default.nix
+++ b/pkgs/development/python-modules/pycryptodomex/default.nix
@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "pycryptodomex";
- version = "3.10.1";
+ version = "3.11.0";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-VBzT4+JS+xmntI9CC3mLU0gzArf+TZlUyUdgXQomPWI=";
+ sha256 = "0398366656bb55ebdb1d1d493a7175fc48ade449283086db254ac44c7d318d6d";
};
pythonImportsCheck = [ "Cryptodome" ];
diff --git a/pkgs/development/python-modules/pyexcel/default.nix b/pkgs/development/python-modules/pyexcel/default.nix
index ca562ca5586b..c6bc3cf0777f 100644
--- a/pkgs/development/python-modules/pyexcel/default.nix
+++ b/pkgs/development/python-modules/pyexcel/default.nix
@@ -2,41 +2,38 @@
, buildPythonPackage
, fetchPypi
, isPy3k
+, chardet
, lml
, pyexcel-io
, texttable
-, nose
}:
buildPythonPackage rec {
pname = "pyexcel";
- version = "0.6.6";
+ version = "0.6.7";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "39b0bb8f033d9b5523b126cf5a5259d1990ea82b8a23c8eab7aa5e23116803df";
+ sha256 = "cbbd9875729767564b3b64b6ed6a9870b14631184943d13646833d94157dd10f";
};
propagatedBuildInputs = [
+ chardet
lml
pyexcel-io
texttable
];
- checkInputs = [
- nose
+ pythonImportsCheck = [
+ "pyexcel"
];
# Tests depend on pyexcel-xls & co. causing circular dependency.
# https://github.com/pyexcel/pyexcel/blob/dev/tests/requirements.txt
doCheck = false;
- pythonImportsCheck = [ "pyexcel" ];
-
- checkPhase = "nosetests";
-
meta = {
description = "Single API for reading, manipulating and writing data in csv, ods, xls, xlsx and xlsm files";
homepage = "http://docs.pyexcel.org/";
diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix
index 1f098ed781c8..f8e00b20e726 100644
--- a/pkgs/development/python-modules/pyflakes/default.nix
+++ b/pkgs/development/python-modules/pyflakes/default.nix
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pyflakes";
- version = "2.3.1";
+ version = "2.4.0";
src = fetchPypi {
inherit pname version;
- sha256 = "f5bc8ecabc05bb9d291eb5203d6810b49040f6ff446a756326104746cc00c1db";
+ sha256 = "05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c";
};
checkInputs = [ unittest2 ];
diff --git a/pkgs/development/python-modules/pygit2/default.nix b/pkgs/development/python-modules/pygit2/default.nix
index 1ec0c6a97b39..d0cd948bdcde 100644
--- a/pkgs/development/python-modules/pygit2/default.nix
+++ b/pkgs/development/python-modules/pygit2/default.nix
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pygit2";
- version = "1.6.1";
+ version = "1.7.0";
src = fetchPypi {
inherit pname version;
- sha256 = "c3303776f774d3e0115c1c4f6e1fc35470d15f113a7ae9401a0b90acfa1661ac";
+ sha256 = "602bffa8b4dbc185a6c7f36515563b600e0ee9002583c97ae3150eedaf340edb";
};
preConfigure = lib.optionalString stdenv.isDarwin ''
diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix
index 2e4953ec7b9b..4bf6c4ad93e8 100644
--- a/pkgs/development/python-modules/pylint/default.nix
+++ b/pkgs/development/python-modules/pylint/default.nix
@@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "pylint";
- version = "2.10.2";
+ version = "2.11.1";
disabled = pythonOlder "3.6";
@@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "PyCQA";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-hkrkgUdC5LO1oSPFL6gvIk0zFpMw45gCmnoRbdPZuRs=";
+ sha256 = "08kc9139v1sd0vhna0rqikyds0xq8hxv0j9707n2i1nbv2z6xhsv";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/pymatgen/default.nix b/pkgs/development/python-modules/pymatgen/default.nix
index 56e436e96d2c..cc262e004fd3 100644
--- a/pkgs/development/python-modules/pymatgen/default.nix
+++ b/pkgs/development/python-modules/pymatgen/default.nix
@@ -21,11 +21,11 @@
buildPythonPackage rec {
pname = "pymatgen";
- version = "2022.0.12";
+ version = "2022.0.14";
src = fetchPypi {
inherit pname version;
- sha256 = "bad712c883a12d774a8a58c35abc5d582c5e5eafdbb5351dc06ebe98c28bd135";
+ sha256 = "03d24ebafc21becab376c26de09437dd5cfb7bda7099046194e95b4c9fa35209";
};
nativeBuildInputs = [ glibcLocales ];
diff --git a/pkgs/development/python-modules/pyperf/default.nix b/pkgs/development/python-modules/pyperf/default.nix
index f4239fb92252..40a77fc0c7bd 100644
--- a/pkgs/development/python-modules/pyperf/default.nix
+++ b/pkgs/development/python-modules/pyperf/default.nix
@@ -15,11 +15,11 @@
buildPythonPackage rec {
pname = "pyperf";
- version = "2.2.0";
+ version = "2.3.0";
src = fetchPypi {
inherit pname version;
- sha256 = "498bb4d1fe21350c2b7c1aa8bb3eae9c9979358d0b66327954bc66839fcba8b6";
+ sha256 = "8a85dd42e067131d5b26b71472336da7f7f4b87ff9c97350d89f5ff0de9adedc";
};
checkInputs = [ nose psutil ] ++
diff --git a/pkgs/development/python-modules/pytest-astropy/default.nix b/pkgs/development/python-modules/pytest-astropy/default.nix
index f6736a736c34..db52ca9f6a85 100644
--- a/pkgs/development/python-modules/pytest-astropy/default.nix
+++ b/pkgs/development/python-modules/pytest-astropy/default.nix
@@ -15,12 +15,12 @@
buildPythonPackage rec {
pname = "pytest-astropy";
- version = "0.8.0";
+ version = "0.9.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "619800eb2cbf64548fbea25268efe7c6f6ae206cb4825f34abd36f27bcf946a2";
+ sha256 = "7cdac1b2a5460f37477a329712c3a5d4af4ddf876b064731995663621be4308b";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/pytest-doctestplus/default.nix b/pkgs/development/python-modules/pytest-doctestplus/default.nix
index 8cd73f483fa8..0ae23ff57276 100644
--- a/pkgs/development/python-modules/pytest-doctestplus/default.nix
+++ b/pkgs/development/python-modules/pytest-doctestplus/default.nix
@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "pytest-doctestplus";
- version = "0.10.1";
+ version = "0.11.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "7e9e0912c206c53cd6ee996265aa99d5c99c9334e37d025ce6114bc0416ffc14";
+ sha256 = "efcb24a366d3b033d343298c2a60eae418b06803c85373450f10306815c7c632";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/pytest-xdist/default.nix b/pkgs/development/python-modules/pytest-xdist/default.nix
index e9b13177d9dd..b8f4814e533f 100644
--- a/pkgs/development/python-modules/pytest-xdist/default.nix
+++ b/pkgs/development/python-modules/pytest-xdist/default.nix
@@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "pytest-xdist";
- version = "2.3.0";
+ version = "2.4.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "e8ecde2f85d88fbcadb7d28cb33da0fa29bca5cf7d5967fa89fc0e97e5299ea5";
+ sha256 = "89b330316f7fc475f999c81b577c2b926c9569f3d397ae432c0c2e2496d61ff9";
};
nativeBuildInputs = [ setuptools-scm ];
diff --git a/pkgs/development/python-modules/python-miio/default.nix b/pkgs/development/python-modules/python-miio/default.nix
index 48c9f9a404d3..46900dd80e3d 100644
--- a/pkgs/development/python-modules/python-miio/default.nix
+++ b/pkgs/development/python-modules/python-miio/default.nix
@@ -37,6 +37,7 @@ buildPythonPackage rec {
substituteInPlace pyproject.toml \
--replace 'click = "^7"' 'click = "*"' \
--replace 'croniter = "^0"' 'croniter = "*"' \
+ --replace 'cryptography = "^3"' 'cryptography = "*"' \
--replace 'defusedxml = "^0.6"' 'defusedxml = "*"'
'';
@@ -74,4 +75,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ flyfloh ];
};
}
-
diff --git a/pkgs/development/python-modules/pytz/default.nix b/pkgs/development/python-modules/pytz/default.nix
index 1a1e1585d289..f7f406e487cc 100644
--- a/pkgs/development/python-modules/pytz/default.nix
+++ b/pkgs/development/python-modules/pytz/default.nix
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pytz";
- version = "2021.1";
+ version = "2021.3";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-g6SpCJS/OOJDzwUsi1jzgb/pp6SD9qnKsUC8f3AqxNo=";
+ sha256 = "acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326";
};
checkPhase = ''
diff --git a/pkgs/development/python-modules/pyvcd/default.nix b/pkgs/development/python-modules/pyvcd/default.nix
index 09f995412fcd..464e10c33179 100644
--- a/pkgs/development/python-modules/pyvcd/default.nix
+++ b/pkgs/development/python-modules/pyvcd/default.nix
@@ -4,33 +4,30 @@
, pythonOlder
, setuptools-scm
, six
-, pytest
+, pytestCheckHook
}:
buildPythonPackage rec {
- version = "0.2.4";
+ version = "0.3.0";
pname = "pyvcd";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "071e51a8362908ad5a2a12f078185639b98b20b653a56f01679de169d0fa425d";
+ sha256 = "ec4d9198bd20f9e07d78f6558ff8bcd45b172ee332e7e8a4588727eeb6a362bc";
};
buildInputs = [ setuptools-scm ];
+
propagatedBuildInputs = [ six ];
- checkPhase = ''
- py.test
- '';
-
- checkInputs = [ pytest ];
+ checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Python package for writing Value Change Dump (VCD) files";
homepage = "https://github.com/SanDisk-Open-Source/pyvcd";
changelog = "https://github.com/SanDisk-Open-Source/pyvcd/blob/${version}/CHANGELOG.rst";
license = licenses.mit;
- maintainers = [ maintainers.sb0 maintainers.emily ];
+ maintainers = with maintainers; [ sb0 emily ];
};
}
diff --git a/pkgs/development/python-modules/pyzmq/default.nix b/pkgs/development/python-modules/pyzmq/default.nix
index 816c46204f88..60fcce9442a8 100644
--- a/pkgs/development/python-modules/pyzmq/default.nix
+++ b/pkgs/development/python-modules/pyzmq/default.nix
@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "pyzmq";
- version = "22.2.1";
+ version = "22.3.0";
src = fetchPypi {
inherit pname version;
- sha256 = "6d18c76676771fd891ca8e0e68da0bbfb88e30129835c0ade748016adb3b6242";
+ sha256 = "8eddc033e716f8c91c6a2112f0a8ebc5e00532b4a6ae1eb0ccc48e027f9c671c";
};
checkInputs = [
diff --git a/pkgs/development/python-modules/qiling/default.nix b/pkgs/development/python-modules/qiling/default.nix
index 0bd86c3caf53..61787548f846 100644
--- a/pkgs/development/python-modules/qiling/default.nix
+++ b/pkgs/development/python-modules/qiling/default.nix
@@ -11,11 +11,11 @@
}:
buildPythonPackage rec {
pname = "qiling";
- version = "1.2.4";
+ version = "1.3.0";
src = fetchPypi {
inherit pname version;
- sha256 = "ecaa4415eea44f6f48021c1f7794c0d9fae7d64c8e43a3ff1d5de8e99bd963aa";
+ sha256 = "084ad706f6803d7de2391eab928ecf4cb3e8d892fd2988666d4791a422d6ab9a";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/qtpy/default.nix b/pkgs/development/python-modules/qtpy/default.nix
index 7ee51449ed90..ef981f19c664 100644
--- a/pkgs/development/python-modules/qtpy/default.nix
+++ b/pkgs/development/python-modules/qtpy/default.nix
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "QtPy";
- version = "1.10.0";
+ version = "1.11.2";
src = fetchPypi {
inherit pname version;
- sha256 = "3d20f010caa3b2c04835d6a2f66f8873b041bdaf7a76085c2a0d7890cdd65ea9";
+ sha256 = "d6e4ae3a41f1fcb19762b58f35ad6dd443b4bdc867a4cb81ef10ccd85403c92b";
};
# no concrete propagatedBuildInputs as multiple backends are supposed
diff --git a/pkgs/development/python-modules/rdflib/default.nix b/pkgs/development/python-modules/rdflib/default.nix
index 5b16e2f744e2..97a2fe532bc5 100644
--- a/pkgs/development/python-modules/rdflib/default.nix
+++ b/pkgs/development/python-modules/rdflib/default.nix
@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "rdflib";
- version = "6.0.0";
+ version = "6.0.1";
src = fetchPypi {
inherit pname version;
- sha256 = "7ce4d757eb26f4dd43205ec340d8c097f29e5adfe45d6ea20238c731dc679879";
+ sha256 = "f071caff0b68634e4a7bd1d66ea3416ac98f1cc3b915938147ea899c32608728";
};
propagatedBuildInputs = [isodate html5lib SPARQLWrapper ];
diff --git a/pkgs/development/python-modules/readme_renderer/default.nix b/pkgs/development/python-modules/readme_renderer/default.nix
index 0d22a0c56c9f..43d1494a58b0 100644
--- a/pkgs/development/python-modules/readme_renderer/default.nix
+++ b/pkgs/development/python-modules/readme_renderer/default.nix
@@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "readme_renderer";
- version = "29.0";
+ version = "30.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-kv1awr+Gd/MQ8zA6pLzludX58glKuYwp8TeR17gFo9s=";
+ sha256 = "sha256-gplwDXqRDDBAcqdgHq+tpnEqWwEaIBOUF+Gx6fBGRdg=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/regex/default.nix b/pkgs/development/python-modules/regex/default.nix
index 92ce64d186db..b62355bb2c10 100644
--- a/pkgs/development/python-modules/regex/default.nix
+++ b/pkgs/development/python-modules/regex/default.nix
@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "regex";
- version = "2021.8.28";
+ version = "2021.10.8";
src = fetchPypi {
inherit pname version;
- sha256 = "f585cbbeecb35f35609edccb95efd95a3e35824cd7752b586503f7e6087303f1";
+ sha256 = "26895d7c9bbda5c52b3635ce5991caa90fbb1ddfac9c9ff1c7ce505e2282fb2a";
};
# Sources for different Python releases are located in same folder
diff --git a/pkgs/development/python-modules/requests/default.nix b/pkgs/development/python-modules/requests/default.nix
index f7c2cdbf27ac..8ba7aef46074 100644
--- a/pkgs/development/python-modules/requests/default.nix
+++ b/pkgs/development/python-modules/requests/default.nix
@@ -36,12 +36,10 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [
- brotlicffi
certifi
- charset-normalizer
- chardet
idna
urllib3
+ chardet
] ++ lib.optionals (isPy3k) [
brotlicffi
charset-normalizer
diff --git a/pkgs/development/python-modules/rich/default.nix b/pkgs/development/python-modules/rich/default.nix
index 6c953a4579ea..ff330289734d 100644
--- a/pkgs/development/python-modules/rich/default.nix
+++ b/pkgs/development/python-modules/rich/default.nix
@@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "rich";
- version = "10.9.0";
+ version = "10.12.0";
format = "pyproject";
disabled = pythonOlder "3.6";
@@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "willmcgugan";
repo = pname;
rev = "v${version}";
- sha256 = "0lf2s7n9b31aavwl5xjl3x1pjc756s8pbk0whh5kag80z5v6qc32";
+ sha256 = "1qq4k0pxq3r0463z4h65i9rb8cvilpnqmparklj5y5qk6svz0y2n";
};
nativeBuildInputs = [ poetry-core ];
diff --git a/pkgs/development/python-modules/sanic-testing/default.nix b/pkgs/development/python-modules/sanic-testing/default.nix
index 5e7deb51362e..c99a78e0cc18 100644
--- a/pkgs/development/python-modules/sanic-testing/default.nix
+++ b/pkgs/development/python-modules/sanic-testing/default.nix
@@ -10,13 +10,13 @@
buildPythonPackage rec {
pname = "sanic-testing";
- version = "0.6.0";
+ version = "0.7.0";
src = fetchFromGitHub {
owner = "sanic-org";
repo = "sanic-testing";
rev = "v${version}";
- sha256 = "1pf619cd3dckn3d8gh18vbn7dflvb0mzpf6frx4y950x2j3rdplk";
+ sha256 = "0ib6rf1ly1059lfprc3hpmy377c3wfgfhnar6n4jgbxiyin7vzm7";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/schedule/default.nix b/pkgs/development/python-modules/schedule/default.nix
index 55dc83878060..4aad4dc1abd4 100644
--- a/pkgs/development/python-modules/schedule/default.nix
+++ b/pkgs/development/python-modules/schedule/default.nix
@@ -15,6 +15,13 @@ buildPythonPackage rec {
buildInputs = [ mock ];
+ preCheck = ''
+ # https://github.com/dbader/schedule/issues/488
+ substituteInPlace test_schedule.py --replace \
+ "self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))" \
+ "# self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))"
+ '';
+
meta = with lib; {
description = "Python job scheduling for humans";
homepage = "https://github.com/dbader/schedule";
diff --git a/pkgs/development/python-modules/setuptools-scm/default.nix b/pkgs/development/python-modules/setuptools-scm/default.nix
index 6713e5e84f4b..62568869b7bf 100644
--- a/pkgs/development/python-modules/setuptools-scm/default.nix
+++ b/pkgs/development/python-modules/setuptools-scm/default.nix
@@ -8,12 +8,12 @@
buildPythonPackage rec {
pname = "setuptools-scm";
- version = "6.3.1";
+ version = "6.3.2";
src = fetchPypi {
pname = "setuptools_scm";
inherit version;
- sha256 = "sha256-D2omORKxN5jAKLmicdka873g5CeECRx5fezMOtOn9ZY=";
+ sha256 = "1wm0i27siyy1yqr9rv7lqvb65agay9051yi8jzmi8dgb3q4ai6m4";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/signify/default.nix b/pkgs/development/python-modules/signify/default.nix
index be0623b1b73b..dbad1a8167db 100644
--- a/pkgs/development/python-modules/signify/default.nix
+++ b/pkgs/development/python-modules/signify/default.nix
@@ -1,31 +1,49 @@
-{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook
-, certvalidator, pyasn1, pyasn1-modules
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, asn1crypto
+, certvalidator
+, oscrypto
+, pyasn1
+, pyasn1-modules
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "signify";
- version = "0.3.0";
- disabled = pythonOlder "3.5";
+ version = "0.4.0";
+ disabled = pythonOlder "3.6";
+ format = "setuptools";
src = fetchFromGitHub {
owner = "ralphje";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-JxQECpwHhPm8TCVW/bCnEpu5I/WETyZVBx29SQE4NmE=";
+ sha256 = "sha256-YJc9RIqkEL7dd1ahE4IbxyyZgsZWBDqbXZAvI/nK24M=";
};
- patches = [
- # Upstream patch is available here:
- # https://github.com/ralphje/signify/commit/8c345be954e898a317825bb450bed5ba0304b2b5.patch
- # But update a couple other things and dont apply cleanly. This is an extract of the part
- # we care about and breaks the tests after 2021-03-01
- ./certificate-expiration-date.patch
+
+ propagatedBuildInputs = [
+ asn1crypto
+ certvalidator
+ oscrypto
+ pyasn1
+ pyasn1-modules
];
- propagatedBuildInputs = [ certvalidator pyasn1 pyasn1-modules ];
+ pythonImportsCheck = [
+ "signify"
+ ];
- checkInputs = [ pytestCheckHook ];
- pytestFlagsArray = [ "-v" ];
- pythonImportsCheck = [ "signify" ];
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ disabledTests = [
+ # chain doesn't validate because end-entitys certificate expired
+ # https://github.com/ralphje/signify/issues/27
+ "test_revoked_certificate"
+ ];
meta = with lib; {
homepage = "https://github.com/ralphje/signify";
diff --git a/pkgs/development/python-modules/sigtools/default.nix b/pkgs/development/python-modules/sigtools/default.nix
index 1d81ba5180cf..b61e64684c86 100644
--- a/pkgs/development/python-modules/sigtools/default.nix
+++ b/pkgs/development/python-modules/sigtools/default.nix
@@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "sigtools";
- version = "2.0.2";
+ version = "2.0.3";
src = fetchPypi {
inherit pname version;
- sha256 = "1b890f22ece64bc47d3d4e84c950581e83917794a6cf1548698145590e221aff";
+ sha256 = "e7789628ec0d02e421bca76532b0d5da149f96f09e7ed4a5cbf318624b75e949";
};
buildInputs = [ repeated_test sphinx mock coverage unittest2 ];
diff --git a/pkgs/development/python-modules/simpleai/default.nix b/pkgs/development/python-modules/simpleai/default.nix
index 2ad7fe9ba28d..9dbf40a54706 100644
--- a/pkgs/development/python-modules/simpleai/default.nix
+++ b/pkgs/development/python-modules/simpleai/default.nix
@@ -6,13 +6,13 @@
}:
buildPythonPackage rec {
- version = "0.8.2";
+ version = "0.8.3";
pname = "simpleai";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "2927d460b09ff6dd177999c2f48f3275c84c956efe5b41b567b5316e2259d21e";
+ sha256 = "1d5be7a00f1f42ed86683019262acbb14e6eca1ed92ce7d7fdf932838d3742e5";
};
propagatedBuildInputs = [ numpy ];
diff --git a/pkgs/development/python-modules/spyder-kernels/default.nix b/pkgs/development/python-modules/spyder-kernels/default.nix
index 79c82a052155..047457534c28 100644
--- a/pkgs/development/python-modules/spyder-kernels/default.nix
+++ b/pkgs/development/python-modules/spyder-kernels/default.nix
@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "spyder-kernels";
- version = "2.1.0";
+ version = "2.1.3";
src = fetchPypi {
inherit pname version;
- sha256 = "6c287207c7855bb581eae66ef8d990407382d5f9caccb1e0cabf909aaaf10c9b";
+ sha256 = "ab5c2a90d44f0a26e7a6862e3cb73bb2d7084bc72f9336d8c2d2a78c145c4645";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/spyder/default.nix b/pkgs/development/python-modules/spyder/default.nix
index dbe54d52e3a9..85a1293ab95f 100644
--- a/pkgs/development/python-modules/spyder/default.nix
+++ b/pkgs/development/python-modules/spyder/default.nix
@@ -8,13 +8,13 @@
buildPythonPackage rec {
pname = "spyder";
- version = "5.1.1";
+ version = "5.1.5";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "6551acfd6fedfebd1f938ef67d3db415b33540f8377e7de3f4d4a2a11dd1b915";
+ sha256 = "f9ce23187f5de18f489fb03c38d884e4484b9c7292f9831faaa029fb7752fc93";
};
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
diff --git a/pkgs/development/python-modules/sqlmap/default.nix b/pkgs/development/python-modules/sqlmap/default.nix
index 277e59125dfa..66fa42e74013 100644
--- a/pkgs/development/python-modules/sqlmap/default.nix
+++ b/pkgs/development/python-modules/sqlmap/default.nix
@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "sqlmap";
- version = "1.5.10";
+ version = "1.5.11";
src = fetchPypi {
inherit pname version;
- sha256 = "925b9b18d2880f7c74ebf53694b4cd8b9e04ca2cc27d57c265acda5f27b0dc89";
+ sha256 = "196021f0eff1699853675ee80e13bc856c9f1a088d93a0ac023651d2a3f62cf5";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/sqlparse/default.nix b/pkgs/development/python-modules/sqlparse/default.nix
index 3ee59c391f88..29e92cdecb93 100644
--- a/pkgs/development/python-modules/sqlparse/default.nix
+++ b/pkgs/development/python-modules/sqlparse/default.nix
@@ -8,13 +8,13 @@
buildPythonPackage rec {
pname = "sqlparse";
- version = "0.4.1";
+ version = "0.4.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8";
+ sha256 = "0c00730c74263a94e5a9919ade150dfc3b19c574389985446148402998287dae";
};
nativeBuildInputs = [ installShellFiles ];
diff --git a/pkgs/development/python-modules/sqlsoup/default.nix b/pkgs/development/python-modules/sqlsoup/default.nix
index a6ffd3227cd4..df1f988a03eb 100644
--- a/pkgs/development/python-modules/sqlsoup/default.nix
+++ b/pkgs/development/python-modules/sqlsoup/default.nix
@@ -14,8 +14,9 @@ buildPythonPackage rec {
meta = with lib; {
description = "A one step database access tool, built on the SQLAlchemy ORM";
- homepage = "https://bitbucket.org/zzzeek/sqlsoup";
+ homepage = "https://github.com/zzzeek/sqlsoup";
license = licenses.mit;
maintainers = [ maintainers.globin ];
+ broken = true; # incompatible with sqlalchemy>=1.4 and unmaintained since 2016
};
}
diff --git a/pkgs/development/python-modules/statsmodels/default.nix b/pkgs/development/python-modules/statsmodels/default.nix
index 9aebe88b7923..2be02376360f 100644
--- a/pkgs/development/python-modules/statsmodels/default.nix
+++ b/pkgs/development/python-modules/statsmodels/default.nix
@@ -13,12 +13,12 @@
buildPythonPackage rec {
pname = "statsmodels";
- version = "0.12.2";
+ version = "0.13.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "8ad7a7ae7cdd929095684118e3b05836c0ccb08b6a01fe984159475d174a1b10";
+ sha256 = "f2efc02011b7240a9e851acd76ab81150a07d35c97021cb0517887539a328f8a";
};
nativeBuildInputs = [ cython ];
diff --git a/pkgs/development/python-modules/subprocess-tee/default.nix b/pkgs/development/python-modules/subprocess-tee/default.nix
index e2e9ad081eaa..df15dcdfb4f1 100644
--- a/pkgs/development/python-modules/subprocess-tee/default.nix
+++ b/pkgs/development/python-modules/subprocess-tee/default.nix
@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "subprocess-tee";
- version = "0.3.2";
+ version = "0.3.5";
src = fetchPypi {
inherit pname version;
- sha256 = "01b0z8mcm568v9carhi0py1hs34wrbnlzyvdmhqzipql407kdpk2";
+ sha256 = "ff5cced589a4b8ac973276ca1ba21bb6e3de600cde11a69947ff51f696efd577";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/sympy/default.nix b/pkgs/development/python-modules/sympy/default.nix
index 0d9cf098e662..fcaa0bc27711 100644
--- a/pkgs/development/python-modules/sympy/default.nix
+++ b/pkgs/development/python-modules/sympy/default.nix
@@ -8,11 +8,11 @@
buildPythonPackage rec {
pname = "sympy";
- version = "1.8";
+ version = "1.9";
src = fetchPypi {
inherit pname version;
- sha256 = "1ca588a9f6ce6a323c5592f9635159c2093572826668a1022c75c75bdf0297cb";
+ sha256 = "c7a880e229df96759f955d4f3970d4cabce79f60f5b18830c08b90ce77cd5fdc";
};
checkInputs = [ glibcLocales ];
diff --git a/pkgs/development/python-modules/tempora/default.nix b/pkgs/development/python-modules/tempora/default.nix
index 7bd7605fc3ff..e9cd3e84fee5 100644
--- a/pkgs/development/python-modules/tempora/default.nix
+++ b/pkgs/development/python-modules/tempora/default.nix
@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "tempora";
- version = "4.1.1";
+ version = "4.1.2";
src = fetchPypi {
inherit pname version;
- sha256 = "c54da0f05405f04eb67abbb1dff4448fd91428b58cb00f0f645ea36f6a927950";
+ sha256 = "fd6cafd66b01390d53a760349cf0b3123844ec6ae3d1043d7190473ea9459138";
};
disabled = pythonOlder "3.2";
diff --git a/pkgs/development/python-modules/terminado/default.nix b/pkgs/development/python-modules/terminado/default.nix
index aff355d963ce..28b0eb09dbed 100644
--- a/pkgs/development/python-modules/terminado/default.nix
+++ b/pkgs/development/python-modules/terminado/default.nix
@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "terminado";
- version = "0.11.1";
+ version = "0.12.1";
src = fetchPypi {
inherit pname version;
- sha256 = "962b402edbb480718054dc37027bada293972ecadfb587b89f01e2b8660a2132";
+ sha256 = "b20fd93cc57c1678c799799d117874367cc07a3d2d55be95205b1a88fa08393f";
};
propagatedBuildInputs = [ ptyprocess tornado ];
diff --git a/pkgs/development/python-modules/termplotlib/default.nix b/pkgs/development/python-modules/termplotlib/default.nix
index 492d51dcb2ca..06432b673afd 100644
--- a/pkgs/development/python-modules/termplotlib/default.nix
+++ b/pkgs/development/python-modules/termplotlib/default.nix
@@ -9,13 +9,13 @@
buildPythonPackage rec {
pname = "termplotlib";
- version = "0.3.8";
+ version = "0.3.9";
src = fetchFromGitHub {
owner = "nschloe";
repo = pname;
rev = "v${version}";
- sha256 = "10k70pb7554cc2zwkcgxfak8nb7iqqw6njbnaqfdz07l4v9f6smm";
+ sha256 = "1qfrv2w7vb2bbjvd5lqfq57c23iqkry0pwmif1ha3asmz330rja1";
};
format = "pyproject";
diff --git a/pkgs/development/python-modules/tern/default.nix b/pkgs/development/python-modules/tern/default.nix
index b8aee5ab9315..64e1951bf446 100644
--- a/pkgs/development/python-modules/tern/default.nix
+++ b/pkgs/development/python-modules/tern/default.nix
@@ -16,11 +16,11 @@
buildPythonPackage rec {
pname = "tern";
- version = "2.7.0";
+ version = "2.8.0";
src = fetchPypi {
inherit pname version;
- sha256 = "cfd59431cafd6adf05ccb94be964098d9301f83a03bf715def7861811e4a4b74";
+ sha256 = "dd7d8ad929ffe951b1f7f86310b9d5ba749b4306132c3611ff1d5a2c4d79d2bd";
};
preBuild = ''
diff --git a/pkgs/development/python-modules/tifffile/default.nix b/pkgs/development/python-modules/tifffile/default.nix
index 236f3443ca6b..f495541f5de1 100644
--- a/pkgs/development/python-modules/tifffile/default.nix
+++ b/pkgs/development/python-modules/tifffile/default.nix
@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "tifffile";
- version = "2021.8.8";
+ version = "2021.8.30";
src = fetchPypi {
inherit pname version;
- sha256 = "8260f31c4700143e8374ff6cde5cef7fe54fc9b7313afe88329f407881901dc5";
+ sha256 = "8760e61e30106ea0dab9ec42a238d70a3ff55dde9c54456e7b748fe717cb782d";
};
patches = lib.optional isPy27 ./python2-regex-compat.patch;
diff --git a/pkgs/development/python-modules/tomli/default.nix b/pkgs/development/python-modules/tomli/default.nix
index 79cd5a4f500c..19a0fe6135e5 100644
--- a/pkgs/development/python-modules/tomli/default.nix
+++ b/pkgs/development/python-modules/tomli/default.nix
@@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "tomli";
- version = "1.1.0";
+ version = "1.2.1";
format = "pyproject";
outputs = [
@@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "hukkin";
repo = pname;
rev = version;
- sha256 = "1cj6iil9sii1zl0l4pw7h4alcnhwdbxinpph2f0rm5rghrp6prjm";
+ sha256 = "sha256-30AQ9MQmclcjl1d83mIoxFXzaJn1OFKQlVxayqC5NxY=";
};
nativeBuildInputs = [ flit-core ];
diff --git a/pkgs/development/python-modules/torchvision/default.nix b/pkgs/development/python-modules/torchvision/default.nix
index fc9905881cb6..d5b40471c7a5 100644
--- a/pkgs/development/python-modules/torchvision/default.nix
+++ b/pkgs/development/python-modules/torchvision/default.nix
@@ -24,13 +24,13 @@ let
cudaArchStr = lib.optionalString cudaSupport lib.strings.concatStringsSep ";" pytorch.cudaArchList;
in buildPythonPackage rec {
pname = "torchvision";
- version = "0.10.0";
+ version = "0.10.1";
src = fetchFromGitHub {
owner = "pytorch";
repo = "vision";
rev = "v${version}";
- sha256 = "13j04ij0jmi58nhav1p69xrm8dg7jisg23268i3n6lnms37n02kc";
+ sha256 = "0dw4q4yf86wwkm38bpsjf0yfzai46icvaly861ymh5v9f90q60jw";
};
nativeBuildInputs = [ libpng ninja which ]
diff --git a/pkgs/development/python-modules/tox/default.nix b/pkgs/development/python-modules/tox/default.nix
index c660327ad72e..8940a57196ac 100644
--- a/pkgs/development/python-modules/tox/default.nix
+++ b/pkgs/development/python-modules/tox/default.nix
@@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "tox";
- version = "3.24.3";
+ version = "3.24.4";
buildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ packaging pluggy py six virtualenv toml filelock ];
@@ -22,7 +22,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
- sha256 = "c6c4e77705ada004283610fd6d9ba4f77bc85d235447f875df9f0ba1bc23b634";
+ sha256 = "c30b57fa2477f1fb7c36aa1d83292d5c2336cd0018119e1b1c17340e2c2708ca";
};
meta = with lib; {
diff --git a/pkgs/development/python-modules/tqdm/default.nix b/pkgs/development/python-modules/tqdm/default.nix
index babea4357a79..606308f88967 100644
--- a/pkgs/development/python-modules/tqdm/default.nix
+++ b/pkgs/development/python-modules/tqdm/default.nix
@@ -14,11 +14,11 @@
buildPythonPackage rec {
pname = "tqdm";
- version = "4.62.2";
+ version = "4.62.3";
src = fetchPypi {
inherit pname version;
- sha256 = "a4d6d112e507ef98513ac119ead1159d286deab17dffedd96921412c2d236ff5";
+ sha256 = "d359de7217506c9851b7869f3708d8ee53ed70a1b8edbba4dbcb47442592920d";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/traits/default.nix b/pkgs/development/python-modules/traits/default.nix
index e4e82db9e446..2d88fb3221aa 100644
--- a/pkgs/development/python-modules/traits/default.nix
+++ b/pkgs/development/python-modules/traits/default.nix
@@ -9,22 +9,16 @@
buildPythonPackage rec {
pname = "traits";
- version = "6.2.0";
- disabled = isPy27; # setup.py no longer py3 compat
+ version = "6.3.0";
+ disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "16fa1518b0778fd53bf0547e6a562b1787bf68c8f6b7995a13bd1902529fdb0c";
+ sha256 = "770241df047feb9e3ed4c26a36c2468a5b754e6082a78eeb737f058bd45344f5";
};
- # Use pytest because its easier to discover tests
- buildInputs = [ pytest ];
propagatedBuildInputs = [ numpy ];
- checkPhase = ''
- py.test $out/${python.sitePackages}
- '';
-
# Test suite is broken for 3.x on latest release
# https://github.com/enthought/traits/issues/187
# https://github.com/enthought/traits/pull/188
@@ -34,7 +28,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Explicitly typed attributes for Python";
homepage = "https://pypi.python.org/pypi/traits";
- license = "BSD";
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ ];
};
-
}
diff --git a/pkgs/development/python-modules/trytond/default.nix b/pkgs/development/python-modules/trytond/default.nix
index 75e1ee68e4b3..a9f1a58b1298 100644
--- a/pkgs/development/python-modules/trytond/default.nix
+++ b/pkgs/development/python-modules/trytond/default.nix
@@ -23,12 +23,12 @@
buildPythonApplication rec {
pname = "trytond";
- version = "6.0.5";
+ version = "6.0.8";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
- sha256 = "3ccb98dbf905d99991ed0151e13c91cd9267e4aa104fa40097df4e02580dadfc";
+ sha256 = "686d498f9648875f48edc9fc2e97cd465ed4ea9270c4984b6f2db20a2eac4942";
};
# Tells the tests which database to use
diff --git a/pkgs/development/python-modules/tubeup/default.nix b/pkgs/development/python-modules/tubeup/default.nix
index c8e5db2680d4..49a293565595 100644
--- a/pkgs/development/python-modules/tubeup/default.nix
+++ b/pkgs/development/python-modules/tubeup/default.nix
@@ -9,13 +9,13 @@
buildPythonPackage rec {
pname = "tubeup";
- version = "0.0.26";
+ version = "0.0.27";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
- sha256 = "842bc03c354d8f952436109264db6cd9146f26cee281d1540d5d7c3aa7371bcc";
+ sha256 = "77affb4105fc319d82c56aa5706151a4976b8b504dd252fe3db01443e27cba50";
};
postPatch = ''
diff --git a/pkgs/development/python-modules/typed-settings/default.nix b/pkgs/development/python-modules/typed-settings/default.nix
index 47c98ad9531e..ea5092cb2ae8 100644
--- a/pkgs/development/python-modules/typed-settings/default.nix
+++ b/pkgs/development/python-modules/typed-settings/default.nix
@@ -1,8 +1,10 @@
{ lib
, buildPythonPackage
+, pythonOlder
, fetchPypi
, setuptoolsBuildHook
, attrs
+, cattrs
, toml
, pytestCheckHook
, click
@@ -10,28 +12,43 @@
buildPythonPackage rec {
pname = "typed-settings";
- version = "0.10.0";
+ version = "0.11.1";
format = "pyproject";
+ disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "1fr6qkq3ldlp5i5l4b891w9ail9lfhaxlar3yij912slq5w0s8aw";
+ sha256 = "sha256-gcyOeUyRAwU5s+XoQO/yM0tx7QHjDsBeyoe5HRZHtIs=";
};
nativeBuildInputs = [
setuptoolsBuildHook
- pytestCheckHook
];
propagatedBuildInputs = [
attrs
+ cattrs
toml
];
+ preCheck = ''
+ pushd tests
+ '';
+
checkInputs = [
click
+ pytestCheckHook
];
+ disabledTests = [
+ # mismatches in click help output
+ "test_help"
+ ];
+
+ postCheck = ''
+ popd
+ '';
+
meta = {
description = "Typed settings based on attrs classes";
homepage = "https://gitlab.com/sscherfke/typed-settings";
diff --git a/pkgs/development/python-modules/ufonormalizer/default.nix b/pkgs/development/python-modules/ufonormalizer/default.nix
index 5d0af719a39b..dbc02750de9a 100644
--- a/pkgs/development/python-modules/ufonormalizer/default.nix
+++ b/pkgs/development/python-modules/ufonormalizer/default.nix
@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "ufonormalizer";
- version = "0.6.0";
+ version = "0.6.1";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
- sha256 = "0w44qlvg4xks7jb0lf3lhsbylagq956x0wkcal9ix34bz3p7vdxd";
+ sha256 = "e61110e75a500083f265385b1354b578610f9542e3bbbeedb98a2a6155e4aa6c";
extension = "zip";
};
diff --git a/pkgs/development/python-modules/ujson/default.nix b/pkgs/development/python-modules/ujson/default.nix
index 7b0a1f37deae..70e676f6b2cc 100644
--- a/pkgs/development/python-modules/ujson/default.nix
+++ b/pkgs/development/python-modules/ujson/default.nix
@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "ujson";
- version = "4.1.0";
+ version = "4.2.0";
disabled = isPyPy || pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-IrY+xECfDS8sTJ1aozGZfgJHC3oVoyM/PMMvL5uS1Yw=";
+ sha256 = "fffe509f556861c7343c6cba57ed05fe7bcf4b48a934a5b946ccb45428cf8883";
};
nativeBuildInputs = [
diff --git a/pkgs/development/python-modules/uncompyle6/default.nix b/pkgs/development/python-modules/uncompyle6/default.nix
index 31095fcd50e6..15c7322fb3c3 100644
--- a/pkgs/development/python-modules/uncompyle6/default.nix
+++ b/pkgs/development/python-modules/uncompyle6/default.nix
@@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "uncompyle6";
- version = "3.7.4";
+ version = "3.8.0";
disabled = pythonAtLeast "3.9"; # See: https://github.com/rocky/python-uncompyle6/issues/331
src = fetchPypi {
inherit pname version;
- sha256 = "af8330861bf940e7a3ae0f06d129b8e645191a36bf73ca15ff51997a837d41f8";
+ sha256 = "sha256-YgYzYY9t/B8+eBh+Igk014/8Y5wOOdrsofxTWquBcBQ=";
};
checkInputs = [ nose pytest hypothesis six ];
diff --git a/pkgs/development/python-modules/unrardll/default.nix b/pkgs/development/python-modules/unrardll/default.nix
index 49e070b84631..4feb29a09016 100644
--- a/pkgs/development/python-modules/unrardll/default.nix
+++ b/pkgs/development/python-modules/unrardll/default.nix
@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "unrardll";
- version = "0.1.4";
+ version = "0.1.5";
src = fetchPypi {
inherit pname version;
- sha256 = "4149c0729cf96a0bae80360e7d94dc40af1088c8da7f6eb8d10e09b8632e92ad";
+ sha256 = "8bebb480b96cd49d4290d814914f39cff75cf0fa0514c4790bb32b1757227c78";
};
buildInputs = [ unrar ];
diff --git a/pkgs/development/python-modules/urllib3/default.nix b/pkgs/development/python-modules/urllib3/default.nix
index 1c25612a16d9..cf7afaa173e2 100644
--- a/pkgs/development/python-modules/urllib3/default.nix
+++ b/pkgs/development/python-modules/urllib3/default.nix
@@ -19,11 +19,11 @@
buildPythonPackage rec {
pname = "urllib3";
- version = "1.26.6";
+ version = "1.26.7";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-9XtMFsYvonYLfj2Xw1slVRL7a1miWXMPNroyzp+ONC8=";
+ sha256 = "sha256-SYfGVVT3otvzDBj9SHeO8SSvb6t3GjdxA9oFheIzbs4=";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix
index 10e1ebbc87bc..c5aa9f0bac94 100644
--- a/pkgs/development/python-modules/virtualenv/default.nix
+++ b/pkgs/development/python-modules/virtualenv/default.nix
@@ -23,11 +23,11 @@
buildPythonPackage rec {
pname = "virtualenv";
- version = "20.7.2";
+ version = "20.8.1";
src = fetchPypi {
inherit pname version;
- sha256 = "9ef4e8ee4710826e98ff3075c9a4739e2cb1040de6a2a8d35db0055840dc96a0";
+ sha256 = "bcc17f0b3a29670dd777d6f0755a4c04f28815395bca279cdcb213b97199a6b8";
};
nativeBuildInputs = [
@@ -72,11 +72,8 @@ buildPythonPackage rec {
];
disabledTests = [
- "test_can_build_c_extensions"
- "test_xonsh" # imports xonsh, which is not in pythonPackages
- # tests search `python3`, fail on python2, pypy
- "test_python_via_env_var"
- "test_python_multi_value_prefer_newline_via_env_var"
+ # Permission Error
+ "test_bad_exe_py_info_no_raise"
];
pythonImportsCheck = [ "virtualenv" ];
diff --git a/pkgs/development/python-modules/vivisect/default.nix b/pkgs/development/python-modules/vivisect/default.nix
index 5dc8bc2254d4..d664cf1d27fe 100644
--- a/pkgs/development/python-modules/vivisect/default.nix
+++ b/pkgs/development/python-modules/vivisect/default.nix
@@ -10,12 +10,12 @@
}:
buildPythonPackage rec {
pname = "vivisect";
- version = "1.0.4";
+ version = "1.0.5";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "bd47b2cf5874cd2f74e6c36b8a97bf301785bacf9ac0297bbe78ec1b8c86c755";
+ sha256 = "f629dc0143656b06b64e2da1772deda67d37a3e048e74bd728de4a4f24bf877b";
};
propagatedBuildInputs = [
diff --git a/pkgs/development/python-modules/watchdog/default.nix b/pkgs/development/python-modules/watchdog/default.nix
index 7dab01b3ca09..c68fc2980cee 100644
--- a/pkgs/development/python-modules/watchdog/default.nix
+++ b/pkgs/development/python-modules/watchdog/default.nix
@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "watchdog";
- version = "2.1.5";
+ version = "2.1.6";
src = fetchPypi {
inherit pname version;
- sha256 = "5563b005907613430ef3d4aaac9c78600dd5704e84764cb6deda4b3d72807f09";
+ sha256 = "sha256-o25132x2fL9G9hqRxws7pxgR36CspKMk2UB6Bqi3ouc=";
};
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
diff --git a/pkgs/development/python-modules/websockets/default.nix b/pkgs/development/python-modules/websockets/default.nix
index 51df6c70235d..611c84ea814c 100644
--- a/pkgs/development/python-modules/websockets/default.nix
+++ b/pkgs/development/python-modules/websockets/default.nix
@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "websockets";
- version = "9.1";
+ version = "10.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aaugustin";
repo = pname;
rev = version;
- sha256 = "sha256-7Y12IUG+ulD4+CTRlY+NE6qYZyI9gCPDydwpt+uyYZk=";
+ sha256 = "sha256-F10C8ukjYfbn2X2PMzrdSDqvs51/A9lx8Y3kv8YJ8Cw=";
};
# Tests fail on Darwin with `OSError: AF_UNIX path too long`
diff --git a/pkgs/development/python-modules/wheel-filename/default.nix b/pkgs/development/python-modules/wheel-filename/default.nix
new file mode 100644
index 000000000000..351bc86686a3
--- /dev/null
+++ b/pkgs/development/python-modules/wheel-filename/default.nix
@@ -0,0 +1,27 @@
+{ lib
+, buildPythonPackage
+, fetchurl
+, attrs
+}:
+
+buildPythonPackage rec {
+ pname = "wheel-filename";
+ version = "1.3.0";
+ format = "wheel";
+
+ src = fetchurl {
+ url = "https://github.com/jwodder/wheel-filename/releases/download/v1.1.0/wheel_filename-1.1.0-py3-none-any.whl";
+ sha256 = "0aee45553f34e3a1b8a5db64aa832326f13c138b7f925a53daf96f984f9e6a38";
+ };
+
+ buildInputs = [
+ attrs
+ ];
+
+ meta = with lib; {
+ homepage = "https://github.com/jwodder/wheel-filename";
+ description = "Parse wheel filenames";
+ license = with licenses; [ mit ];
+ maintainers = with lib.maintainers; [ ayazhafiz ];
+ };
+}
diff --git a/pkgs/development/python-modules/wheel-inspect/default.nix b/pkgs/development/python-modules/wheel-inspect/default.nix
new file mode 100644
index 000000000000..88fd592da8fb
--- /dev/null
+++ b/pkgs/development/python-modules/wheel-inspect/default.nix
@@ -0,0 +1,65 @@
+{ lib
+, buildPythonPackage
+, fetchurl
+, bleach, docutils, pygments, six
+, attrs, entry-points-txt, headerparser, packaging, wheel-filename
+}:
+
+# wheel-filename is stuck on readme_renderer~=24.0.0, but the upstream is at a
+# future version.
+let readme_renderer_24 = buildPythonPackage rec {
+ pname = "readme_renderer";
+ version = "24.0.0";
+ format = "wheel";
+
+ src = fetchurl {
+ url = "https://files.pythonhosted.org/packages/c3/7e/d1aae793900f36b097cbfcc5e70eef82b5b56423a6c52a36dce51fedd8f0/readme_renderer-24.0-py2.py3-none-any.whl";
+ sha256 = "c8532b79afc0375a85f10433eca157d6b50f7d6990f337fa498c96cd4bfc203d";
+ };
+
+ doCheck = false;
+
+ buildInputs = [
+ bleach
+ docutils
+ pygments
+ six
+ ];
+
+ meta = with lib; {
+ description = "Python library for rendering readme descriptions";
+ homepage = "https://github.com/pypa/readme_renderer";
+ license = with licenses; [ asl20 ];
+ maintainers = with lib.maintainers; [ ayazhafiz ];
+ };
+};
+
+in buildPythonPackage rec {
+ version = "1.7.0";
+ pname = "wheel-inspect";
+ format = "wheel";
+
+ src = fetchurl {
+ url = "https://github.com/jwodder/wheel-inspect/releases/download/v1.7.0/wheel_inspect-1.7.0-py3-none-any.whl";
+ sha256 = "69b34de1f4464ddfc76280c4563e4afc644de2c88e3ae6882f030afdad3d73e4";
+ };
+
+ propagatedBuildInputs = [
+ attrs
+ bleach
+ docutils
+ entry-points-txt
+ headerparser
+ packaging
+ pygments
+ readme_renderer_24
+ wheel-filename
+ ];
+
+ meta = with lib; {
+ homepage = "https://github.com/jwodder/wheel-inspect";
+ description = "Extract information from wheels";
+ license = with licenses; [ mit ];
+ maintainers = with lib.maintainers; [ ayazhafiz ];
+ };
+}
diff --git a/pkgs/development/python-modules/wrapt/default.nix b/pkgs/development/python-modules/wrapt/default.nix
index 0d5376e10047..d4bdac9e6f5d 100644
--- a/pkgs/development/python-modules/wrapt/default.nix
+++ b/pkgs/development/python-modules/wrapt/default.nix
@@ -5,14 +5,14 @@
buildPythonPackage rec {
pname = "wrapt";
- version = "1.12.1";
+ version = "1.13.1";
# No tests in archive
doCheck = false;
src = fetchPypi {
inherit pname version;
- sha256 = "b62ffa81fb85f4332a4f609cab4ac40709470da05643a082ec1eb88e6d9b97d7";
+ sha256 = "909a80ce028821c7ad01bdcaa588126825931d177cdccd00b3545818d4a195ce";
};
meta = {
diff --git a/pkgs/development/python-modules/xdis/default.nix b/pkgs/development/python-modules/xdis/default.nix
index 81b8e146d9bb..c916f8d7ec2a 100644
--- a/pkgs/development/python-modules/xdis/default.nix
+++ b/pkgs/development/python-modules/xdis/default.nix
@@ -6,14 +6,14 @@
buildPythonPackage rec {
pname = "xdis";
- version = "5.0.11";
+ version = "6.0.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "rocky";
repo = "python-xdis";
rev = version;
- sha256 = "sha256-KTPu0+bERLRCVESqJgBPtcftlniWl2+C9GDcf84ssiA=";
+ sha256 = "sha256-P8mUkAO3usFCE+E9cna2x1iA2uyHVPX9FHDpX+kTFWQ=";
};
checkInputs = [ pytest ];
diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix
index 66d219f9348e..a5aab308eab6 100644
--- a/pkgs/development/python-modules/yarl/default.nix
+++ b/pkgs/development/python-modules/yarl/default.nix
@@ -1,32 +1,52 @@
{ lib
-, fetchPypi
, buildPythonPackage
+, fetchPypi
+, python
, pythonOlder
-, multidict
-, pytest-runner
-, pytest
-, typing-extensions
, idna
+, multidict
+, typing-extensions
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "yarl";
- version = "1.6.3";
+ version = "1.7.0";
src = fetchPypi {
inherit pname version;
- sha256 = "8a9066529240171b68893d60dca86a763eae2139dd42f42106b03cf4b426bf10";
+ sha256 = "8e7ebaf62e19c2feb097ffb7c94deb0f0c9fab52590784c8cd679d30ab009162";
};
- checkInputs = [ pytest pytest-runner ];
- propagatedBuildInputs = [ multidict idna ]
- ++ lib.optionals (pythonOlder "3.8") [
- typing-extensions
- ];
+ postPatch = ''
+ sed -i '/^addopts/d' setup.cfg
+ '';
+
+ propagatedBuildInputs = [
+ idna
+ multidict
+ ] ++ lib.optionals (pythonOlder "3.8") [
+ typing-extensions
+ ];
+
+ preCheck = ''
+ # don't import yarl from ./ so the C extension is available
+ pushd tests
+ '';
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ postCheck = ''
+ popd
+ '';
+
+ pythonImportsCheck = [ "yarl" ];
meta = with lib; {
description = "Yet another URL library";
- homepage = "https://github.com/aio-libs/yarl/";
+ homepage = "https://github.com/aio-libs/yarl";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
diff --git a/pkgs/development/python-modules/zipp/default.nix b/pkgs/development/python-modules/zipp/default.nix
index c070e2327772..dc30128c9ead 100644
--- a/pkgs/development/python-modules/zipp/default.nix
+++ b/pkgs/development/python-modules/zipp/default.nix
@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "zipp";
- version = "3.5.0";
+ version = "3.6.0";
src = fetchPypi {
inherit pname version;
- sha256 = "f5812b1e007e48cff63449a5e9f4e7ebea716b4111f9c4f9a645f91d579bf0c4";
+ sha256 = "71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832";
};
nativeBuildInputs = [ setuptools-scm ];
diff --git a/pkgs/development/tools/misc/autogen/default.nix b/pkgs/development/tools/misc/autogen/default.nix
index 75c6471eb4c6..da5bdf9742e7 100644
--- a/pkgs/development/tools/misc/autogen/default.nix
+++ b/pkgs/development/tools/misc/autogen/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, buildPackages, fetchurl, autoreconfHook, which, pkg-config, perl, guile, libxml2 }:
+{ lib, stdenv, buildPackages, fetchurl, fetchpatch, autoreconfHook, which, pkg-config, perl, guile, libxml2 }:
stdenv.mkDerivation rec {
pname = "autogen";
@@ -28,6 +28,13 @@ stdenv.mkDerivation rec {
pname = "31_allow_overriding_AGexe_for_crossbuild";
sha256 = "0h9wkc9bqb509knh8mymi43hg6n6sxg2lixvjlchcx7z0j7p8xkf";
})
+ # Next upstream release will contain guile-3 support. We apply non-invasive
+ # patch meanwhile.
+ (fetchpatch {
+ name = "guile-3.patch";
+ url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-devel/autogen/files/autogen-5.18.16-guile-3.patch?id=43bcc61c56a5a7de0eaf806efec7d8c0e4c01ae7";
+ sha256 = "18d7y1f6164dm1wlh7rzbacfygiwrmbc35a7qqsbdawpkhydm5lr";
+ })
];
outputs = [ "bin" "dev" "lib" "out" "man" "info" ];
diff --git a/pkgs/development/tools/misc/elfutils/default.nix b/pkgs/development/tools/misc/elfutils/default.nix
index c1227775785a..c89dd5832994 100644
--- a/pkgs/development/tools/misc/elfutils/default.nix
+++ b/pkgs/development/tools/misc/elfutils/default.nix
@@ -1,5 +1,5 @@
-{ lib, stdenv, fetchurl, fetchpatch, pkg-config, autoreconfHook, musl-fts
-, musl-obstack, m4, zlib, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs
+{ lib, stdenv, fetchurl, fetchpatch, pkg-config, musl-fts
+, musl-obstack, m4, zlib, zstd, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs
, argp-standalone
, enableDebuginfod ? false, sqlite, curl, libmicrohttpd_0_9_70, libarchive
}:
@@ -7,11 +7,11 @@
# TODO: Look at the hardcoded paths to kernel, modules etc.
stdenv.mkDerivation rec {
pname = "elfutils";
- version = "0.182";
+ version = "0.185";
src = fetchurl {
url = "https://sourceware.org/elfutils/ftp/${version}/${pname}-${version}.tar.bz2";
- sha256 = "7MQGkU7fM18Lf8CE6+bEYMTW1Rdb/dZojBx42RRriFg=";
+ sha256 = "sha256-3I0+dKsglGXn9Wjhs7uaWhQvhlbitX0QBJpz2irmtaY=";
};
patches = [
@@ -27,43 +27,29 @@ stdenv.mkDerivation rec {
url = "https://git.alpinelinux.org/aports/plain/main/elfutils/musl-asm-ptrace-h.patch?id=2e3d4976eeffb4704cf83e2cc3306293b7c7b2e9";
sha256 = "8D1wPcdgAkE/TNBOgsHaeTZYhd9l+9TrZg8d5C7kG6k=";
})
- (fetchpatch {
- name = "musl-fts-obstack.patch";
- url = "https://git.alpinelinux.org/aports/plain/main/elfutils/musl-fts-obstack.patch?id=2e3d4976eeffb4704cf83e2cc3306293b7c7b2e9";
- sha256 = "3lbC0UtscTIJgT7kOXnnjWrpPAVt2PYMbW+uJK6K350=";
- })
(fetchpatch {
name = "musl-macros.patch";
url = "https://git.alpinelinux.org/aports/plain/main/elfutils/musl-macros.patch?id=2e3d4976eeffb4704cf83e2cc3306293b7c7b2e9";
sha256 = "tp6O1TRsTAMsFe8vw3LMENT/vAu6OmyA8+pzgThHeA8=";
})
- (fetchpatch {
- name = "musl-qsort_r.patch";
- url = "https://git.alpinelinux.org/aports/plain/main/elfutils/musl-qsort_r.patch?id=2e3d4976eeffb4704cf83e2cc3306293b7c7b2e9";
- sha256 = "FPWCkdtFT3zw8aNnz0Jz5Vmu8B/mRfNgfhbM/ej7d8M=";
- })
- (fetchpatch {
- name = "musl-strerror_r.patch";
- url = "https://git.alpinelinux.org/aports/plain/main/elfutils/musl-strerror_r.patch?id=2e3d4976eeffb4704cf83e2cc3306293b7c7b2e9";
- sha256 = "QF6YwWkcT12dZHKzfqFgxy/1fkIllo0AAosbV0sM5PU=";
- })
(fetchpatch {
name = "musl-strndupa.patch";
url = "https://git.alpinelinux.org/aports/plain/main/elfutils/musl-strndupa.patch?id=2e3d4976eeffb4704cf83e2cc3306293b7c7b2e9";
sha256 = "sha256-7daehJj1t0wPtQzTv+/Rpuqqs5Ng/EYnZzrcf2o/Lb0=";
})
- ] ++ lib.optional stdenv.hostPlatform.isMusl [ ./musl-error_h.patch ];
+ ] ++ lib.optionals stdenv.hostPlatform.isMusl [ ./musl-error_h.patch ];
+
+ postPatch = ''
+ patchShebangs tests/*.sh
+ '';
outputs = [ "bin" "dev" "out" "man" ];
- hardeningDisable = [ "format" ];
-
# We need bzip2 in NativeInputs because otherwise we can't unpack the src,
# as the host-bzip2 will be in the path.
nativeBuildInputs = [ m4 bison flex gettext bzip2 ]
- ++ lib.optional stdenv.hostPlatform.isMusl autoreconfHook
- ++ lib.optional (enableDebuginfod || stdenv.hostPlatform.isMusl) pkg-config;
- buildInputs = [ zlib bzip2 xz ]
+ ++ lib.optional enableDebuginfod pkg-config;
+ buildInputs = [ zlib zstd bzip2 xz ]
++ lib.optionals stdenv.hostPlatform.isMusl [
argp-standalone
musl-fts
@@ -77,22 +63,24 @@ stdenv.mkDerivation rec {
propagatedNativeBuildInputs = [ setupDebugInfoDirs ];
- preConfigure = lib.optionalString stdenv.hostPlatform.isMusl ''
- NIX_CFLAGS_COMPILE+=" -Wno-null-dereference"
- '';
+ NIX_CFLAGS_COMPILE = lib.optionals stdenv.hostPlatform.isMusl [
+ "-Wno-null-dereference"
+ ];
configureFlags = [
"--program-prefix=eu-" # prevent collisions with binutils
"--enable-deterministic-archives"
- ] ++ lib.optionals (!enableDebuginfod) [
- "--disable-libdebuginfod"
- "--disable-debuginfod"
+ (lib.enableFeature enableDebuginfod "libdebuginfod")
+ (lib.enableFeature enableDebuginfod "debuginfod")
];
enableParallelBuilding = true;
- doCheck = false; # fails 3 out of 174 tests
- doInstallCheck = false; # fails 70 out of 174 tests
+ # Backtrace unwinding tests rely on glibc-internal symbol names.
+ # Musl provides slightly different forms and fails.
+ # Let's disable tests there until musl support is fully upstreamed.
+ doCheck = !stdenv.hostPlatform.isMusl;
+ doInstallCheck = !stdenv.hostPlatform.isMusl;
meta = with lib; {
homepage = "https://sourceware.org/elfutils/";
@@ -101,6 +89,6 @@ stdenv.mkDerivation rec {
# licenses are GPL2 or LGPL3+ for libraries, GPL3+ for bins,
# but since this package isn't split that way, all three are listed.
license = with licenses; [ gpl2Only lgpl3Plus gpl3Plus ];
- maintainers = [ maintainers.eelco ];
+ maintainers = with maintainers; [ eelco r-burns ];
};
}
diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix
index 88e3393dedcb..62290548ec7b 100644
--- a/pkgs/development/tools/misc/gdb/default.nix
+++ b/pkgs/development/tools/misc/gdb/default.nix
@@ -7,6 +7,7 @@
, ncurses, readline, gmp, mpfr, expat, libipt, zlib, dejagnu, sourceHighlight
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
+, enableDebuginfod ? false, elfutils
, guile ? null
, safePaths ? [
# $debugdir:$datadir/auto-load are whitelisted by default by GDB
@@ -48,7 +49,8 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses readline gmp mpfr expat libipt zlib guile sourceHighlight ]
++ lib.optional pythonSupport python3
- ++ lib.optional doCheck dejagnu;
+ ++ lib.optional doCheck dejagnu
+ ++ lib.optional enableDebuginfod (elfutils.override { enableDebuginfod = true; });
propagatedNativeBuildInputs = [ setupDebugInfoDirs ];
@@ -89,7 +91,8 @@ stdenv.mkDerivation rec {
"--with-expat" "--with-libexpat-prefix=${expat.dev}"
"--with-auto-load-safe-path=${builtins.concatStringsSep ":" safePaths}"
] ++ lib.optional (!pythonSupport) "--without-python"
- ++ lib.optional stdenv.hostPlatform.isMusl "--disable-nls";
+ ++ lib.optional stdenv.hostPlatform.isMusl "--disable-nls"
+ ++ lib.optional enableDebuginfod "--with-debuginfod=yes";
postInstall =
'' # Remove Info files already provided by Binutils and other packages.
diff --git a/pkgs/development/tools/rust/cargo-c/default.nix b/pkgs/development/tools/rust/cargo-c/default.nix
index 8b4780d7ea08..0b82c1b5a366 100644
--- a/pkgs/development/tools/rust/cargo-c/default.nix
+++ b/pkgs/development/tools/rust/cargo-c/default.nix
@@ -1,39 +1,34 @@
-{ rustPlatform, stdenv, lib, fetchFromGitHub, fetchurl
-, pkg-config, curl, openssl
-, CoreFoundation, libiconv, Security
+{ lib
+, rustPlatform
+, fetchCrate
+, pkg-config
+, curl
+, openssl
+, stdenv
+, CoreFoundation
+, libiconv
+, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-c";
version = "0.9.2";
- src = stdenv.mkDerivation rec {
- name = "${pname}-source-${version}";
-
- src = fetchFromGitHub {
- owner = "lu-zero";
- repo = pname;
- rev = "v${version}";
- sha256 = "0hvlrhmbplx4cj4l5fynihgr9cdh0rkpwvipizk1gpp6p1ksr5hz";
- };
- cargoLock = fetchurl {
- url = "https://github.com/lu-zero/${pname}/releases/download/v${version}/Cargo.lock";
- sha256 = "0ckn31asz7013206j153ig96602dxvxm6skdz1plan0h05j5mgah";
- };
-
- installPhase = ''
- mkdir -p $out
- cp -R ./* $out/
- cp ${cargoLock} $out/Cargo.lock
- '';
+ src = fetchCrate {
+ inherit pname;
+ # this version may need to be updated along with package version
+ version = "${version}+cargo-0.55";
+ sha256 = "sha256-yh5vAtKlBvoSlJBsW2RSduSK6T8aOssM84WQMNjLZqA=";
};
- cargoSha256 = "0c0vn2pcy5px02mc0l4a3w7z9n8hc6br5w3ww6nrav5w6911jp52";
-
+ cargoSha256 = "sha256-YikTjAeroaHyNe3ygUWRHSXJwdm2BSBV7RgIDN4suZ4=";
nativeBuildInputs = [ pkg-config (lib.getDev curl) ];
- buildInputs = [ openssl curl ]
- ++ lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
+ buildInputs = [ openssl curl ] ++ lib.optionals stdenv.isDarwin [
+ CoreFoundation
+ libiconv
+ Security
+ ];
# Ensure that we are avoiding build of the curl vendored in curl-sys
doInstallCheck = stdenv.hostPlatform.libc == "glibc";
@@ -55,7 +50,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/lu-zero/cargo-c";
changelog = "https://github.com/lu-zero/cargo-c/releases/tag/v${version}";
license = licenses.mit;
- platforms = platforms.unix;
maintainers = with maintainers; [ ];
};
}
diff --git a/pkgs/development/web/nodejs/v14.nix b/pkgs/development/web/nodejs/v14.nix
index cb8d8aac3632..0e0bde32b2f8 100644
--- a/pkgs/development/web/nodejs/v14.nix
+++ b/pkgs/development/web/nodejs/v14.nix
@@ -7,7 +7,7 @@ let
in
buildNodejs {
inherit enableNpm;
- version = "14.18.0";
- sha256 = "0naqv0aglsqy51pyiz42xz7wx5pfsbyscpdl8rir6kmfl1c52j3b";
+ version = "14.18.1";
+ sha256 = "1vc9rypkgr5i5y946jnyr9jjpydxvm74p1s17rg2zayzvlddg89z";
patches = lib.optional stdenv.isDarwin ./bypass-xcodebuild.diff;
}
diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix
index 3812ae500e5c..e1a4e733d6e9 100644
--- a/pkgs/misc/cups/default.nix
+++ b/pkgs/misc/cups/default.nix
@@ -28,16 +28,15 @@ stdenv.mkDerivation rec {
pname = "cups";
# After 2.2.6, CUPS requires headers only available in macOS 10.12+
- version = if stdenv.isDarwin then "2.2.6" else "2.3.3";
+ version = if stdenv.isDarwin then "2.2.6" else "2.3.3op2";
- passthru = { inherit version; };
-
- src = fetchurl {
+ src = fetchurl (if stdenv.isDarwin then {
url = "https://github.com/apple/cups/releases/download/v${version}/cups-${version}-source.tar.gz";
- sha256 = if version == "2.2.6"
- then "16qn41b84xz6khrr2pa2wdwlqxr29rrrkjfi618gbgdkq9w5ff20"
- else "1vpk0b2vq830f8fvf9z8qjsm5k141i7pi8djbinpnr78pi4dj7r6";
- };
+ sha256 = "16qn41b84xz6khrr2pa2wdwlqxr29rrrkjfi618gbgdkq9w5ff20";
+ } else {
+ url = "https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz";
+ sha256 = "1pwndz4gwkm7311wkhhzlw2diy7wbck7yy026jbaxh3rprdmgcyy";
+ });
outputs = [ "out" "lib" "dev" "man" ];
@@ -49,10 +48,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config removeReferencesTo ];
buildInputs = [ zlib libjpeg libpng libtiff libusb1 gnutls libpaper ]
- ++ optionals stdenv.isLinux [ avahi pam dbus ]
+ ++ optionals stdenv.isLinux [ avahi pam dbus acl ]
++ optional enableSystemd systemd
- # Separate from above only to not modify order, to avoid mass rebuilds; merge this with the above at next big change.
- ++ optionals stdenv.isLinux [ acl ]
++ optionals stdenv.isDarwin (with darwin; [
configd apple_sdk.frameworks.ApplicationServices
]);
@@ -129,18 +126,8 @@ stdenv.mkDerivation rec {
sed -e "/^cups_serverbin=/s|$lib|$out|" \
-i "$dev/bin/cups-config"
- # Rename systemd files provided by CUPS
for f in "$out"/lib/systemd/system/*; do
- substituteInPlace "$f" \
- --replace "$lib/$libexec" "$out/$libexec" \
- --replace "org.cups.cupsd" "cups" \
- --replace "org.cups." ""
-
- if [[ "$f" =~ .*cupsd\..* ]]; then
- mv "$f" "''${f/org\.cups\.cupsd/cups}"
- else
- mv "$f" "''${f/org\.cups\./}"
- fi
+ substituteInPlace "$f" --replace "$lib/$libexec" "$out/$libexec"
done
'' + optionalString stdenv.isLinux ''
# Use xdg-open when on Linux
@@ -149,9 +136,9 @@ stdenv.mkDerivation rec {
'';
meta = {
- homepage = "https://cups.org/";
+ homepage = "https://openprinting.github.io/cups/";
description = "A standards-based printing system for UNIX";
- license = licenses.gpl2; # actually LGPL for the library and GPL for the rest
+ license = licenses.asl20;
maintainers = with maintainers; [ matthewbauer ];
platforms = platforms.unix;
};
diff --git a/pkgs/os-specific/linux/iptables/default.nix b/pkgs/os-specific/linux/iptables/default.nix
index fe0e82c4a8e6..50730597d9e6 100644
--- a/pkgs/os-specific/linux/iptables/default.nix
+++ b/pkgs/os-specific/linux/iptables/default.nix
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, pkg-config, pruneLibtoolFiles, flex, bison
, libmnl, libnetfilter_conntrack, libnfnetlink, libnftnl, libpcap
-, nftablesCompat ? false
+, nftablesCompat ? true
}:
with lib;
diff --git a/pkgs/os-specific/linux/kernel/linux-libre.nix b/pkgs/os-specific/linux/kernel/linux-libre.nix
index 9153b9232493..85456ad49f7e 100644
--- a/pkgs/os-specific/linux/kernel/linux-libre.nix
+++ b/pkgs/os-specific/linux/kernel/linux-libre.nix
@@ -14,9 +14,14 @@ let
minor = lib.versions.minor linux.modDirVersion;
patch = lib.versions.patch linux.modDirVersion;
+ # See http://linux-libre.fsfla.org/pub/linux-libre/releases
+ versionPrefix = if linux.kernelOlder "5.14" then
+ "gnu1"
+ else
+ "gnu";
in linux.override {
argsOverride = {
- modDirVersion = "${linux.modDirVersion}-gnu1";
+ modDirVersion = "${linux.modDirVersion}-${versionPrefix}";
isLibre = true;
src = stdenv.mkDerivation {
@@ -37,6 +42,6 @@ in linux.override {
passthru.updateScript = ./update-libre.sh;
- maintainers = [ lib.maintainers.qyliss ];
+ maintainers = with lib.maintainers; [ qyliss ivar ];
};
}
diff --git a/pkgs/os-specific/linux/nftables/default.nix b/pkgs/os-specific/linux/nftables/default.nix
index e0e69adb4b6b..73adcd786057 100644
--- a/pkgs/os-specific/linux/nftables/default.nix
+++ b/pkgs/os-specific/linux/nftables/default.nix
@@ -4,7 +4,7 @@
, gmp, jansson, readline
, withDebugSymbols ? false
, withPython ? false , python3
-, withXtables ? false , iptables
+, withXtables ? true , iptables
}:
with lib;
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index 3af70ff9151c..3cb9216b184e 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -251,6 +251,7 @@ stdenv.mkDerivation {
{ name = "libtss2-esys.so.0"; pkg = opt withTpm2Tss tpm2-tss; }
{ name = "libtss2-rc.so.0"; pkg = opt withTpm2Tss tpm2-tss; }
{ name = "libtss2-mu.so.0"; pkg = opt withTpm2Tss tpm2-tss; }
+ { name = "libtss2-tcti-"; pkg = opt withTpm2Tss tpm2-tss; }
{ name = "libfido2.so.1"; pkg = opt withFido2 libfido2; }
];
@@ -267,8 +268,12 @@ stdenv.mkDerivation {
'' else ''
# ensure that the library we provide actually exists
if ! [ -e ${library} ]; then
- echo 'The shared library `${library}` does not exist but was given as subtitute for `${dl.name}`'
- exit 1
+ # exceptional case, details:
+ # https://github.com/systemd/systemd-stable/blob/v249-stable/src/shared/tpm2-util.c#L157
+ if ! [[ "${library}" =~ .*libtss2-tcti-$ ]]; then
+ echo 'The shared library `${library}` does not exist but was given as subtitute for `${dl.name}`'
+ exit 1
+ fi
fi
# make the path to the dependency explicit
for file in $(grep -lr '"${dl.name}"' src); do
@@ -353,6 +358,7 @@ stdenv.mkDerivation {
++ lib.optionals withHomed [ p11-kit ]
++ lib.optionals (withHomed || withCryptsetup) [ libfido2 ]
++ lib.optionals withLibBPF [ libbpf ]
+ ++ lib.optional withTpm2Tss tpm2-tss
;
#dontAddPrefix = true;
@@ -452,7 +458,7 @@ stdenv.mkDerivation {
"-Dnss-systemd=false"
] ++ lib.optionals withLibBPF [
"-Dbpf-framework=true"
- ];
+ ] ++ lib.optional withTpm2Tss "-Dtpm2=true";
preConfigure = ''
mesonFlagsArray+=(-Dntp-servers="0.nixos.pool.ntp.org 1.nixos.pool.ntp.org 2.nixos.pool.ntp.org 3.nixos.pool.ntp.org")
diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix
index 73f321f26318..7ab2489f5e8a 100644
--- a/pkgs/os-specific/linux/util-linux/default.nix
+++ b/pkgs/os-specific/linux/util-linux/default.nix
@@ -1,5 +1,7 @@
{ lib, stdenv, fetchurl, pkg-config, zlib, shadow, libcap_ng
-, ncurses ? null, perl ? null, pam, systemd ? null, minimal ? false }:
+, ncurses ? null, pam, systemd ? null
+, nlsSupport ? true
+}:
stdenv.mkDerivation rec {
pname = "util-linux";
@@ -14,7 +16,7 @@ stdenv.mkDerivation rec {
./rtcwake-search-PATH-for-shutdown.patch
];
- outputs = [ "bin" "dev" "out" "man" ];
+ outputs = [ "bin" "dev" "out" "lib" "man" ];
postPatch = ''
patchShebangs tests/run.sh
@@ -30,6 +32,7 @@ stdenv.mkDerivation rec {
# somewhat risky because we have to consider that mount can setuid
# root...
configureFlags = [
+ "--localstatedir=/var"
"--enable-write"
"--enable-last"
"--enable-mesg"
@@ -37,30 +40,29 @@ stdenv.mkDerivation rec {
"--enable-fs-paths-default=/run/wrappers/bin:/run/current-system/sw/bin:/sbin"
"--disable-makeinstall-setuid" "--disable-makeinstall-chown"
"--disable-su" # provided by shadow
+ (lib.enableFeature nlsSupport "nls")
(lib.withFeature (ncurses != null) "ncursesw")
(lib.withFeature (systemd != null) "systemd")
(lib.withFeatureAs (systemd != null)
"systemdsystemunitdir" "${placeholder "bin"}/lib/systemd/system/")
+ "SYSCONFSTATICDIR=${placeholder "lib"}/lib"
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
"scanf_cv_type_modifier=ms"
;
makeFlags = [
"usrbin_execdir=${placeholder "bin"}/bin"
+ "usrlib_execdir=${placeholder "lib"}/lib"
"usrsbin_execdir=${placeholder "bin"}/sbin"
];
nativeBuildInputs = [ pkg-config ];
buildInputs =
[ zlib pam libcap_ng ]
- ++ lib.filter (p: p != null) [ ncurses systemd perl ];
+ ++ lib.filter (p: p != null) [ ncurses systemd ];
doCheck = false; # "For development purpose only. Don't execute on production system!"
- postInstall = lib.optionalString minimal ''
- rm -rf $out/share/{locale,doc,bash-completion}
- '';
-
enableParallelBuilding = true;
meta = with lib; {
diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix
index d680607e5b10..bd5f41fbf113 100644
--- a/pkgs/servers/home-assistant/component-packages.nix
+++ b/pkgs/servers/home-assistant/component-packages.nix
@@ -2,7 +2,7 @@
# Do not edit!
{
- version = "2021.10.6";
+ version = "2021.10.7";
components = {
"abode" = ps: with ps; [ abodepy ];
"accuweather" = ps: with ps; [ accuweather ];
diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix
index 903c592b635e..cf22845108e1 100644
--- a/pkgs/servers/home-assistant/default.nix
+++ b/pkgs/servers/home-assistant/default.nix
@@ -167,7 +167,7 @@ let
extraBuildInputs = extraPackages py.pkgs;
# Don't forget to run parse-requirements.py after updating
- hassVersion = "2021.10.6";
+ hassVersion = "2021.10.7";
in with py.pkgs; buildPythonApplication rec {
pname = "homeassistant";
@@ -184,7 +184,7 @@ in with py.pkgs; buildPythonApplication rec {
owner = "home-assistant";
repo = "core";
rev = version;
- sha256 = "0275f327dzr4cggfw5n8x533b4h8zz8yli5d0js7cw1rmi3cmkbc";
+ sha256 = "1kibny2hd91c011bv7g46sn5q9fg6wmrbwzwckwa737d6gj27c1y";
};
# leave this in, so users don't have to constantly update their downstream patch handling
@@ -194,13 +194,10 @@ in with py.pkgs; buildPythonApplication rec {
postPatch = ''
substituteInPlace setup.py \
- --replace "awesomeversion==21.4.0" "awesomeversion" \
--replace "bcrypt==3.1.7" "bcrypt" \
- --replace "cryptography==3.3.2" "cryptography" \
+ --replace "jinja2==3.0.1" "jinja2" \
--replace "pip>=8.0.3,<20.3" "pip" \
- --replace "requests==2.25.1" "requests>=2.25.1" \
- --replace "ruamel.yaml==0.15.100" "ruamel.yaml" \
- --replace "voluptuous==0.12.1" "voluptuous==0.12.2"
+ --replace "yarl==1.6.3" "yarl==1.7.0"
substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"'
'';
diff --git a/pkgs/servers/mail/mailman/default.nix b/pkgs/servers/mail/mailman/default.nix
index 1213347a0ac7..557a9d54c149 100644
--- a/pkgs/servers/mail/mailman/default.nix
+++ b/pkgs/servers/mail/mailman/default.nix
@@ -1,23 +1,52 @@
-{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, alembic, aiosmtpd, dnspython
-, flufl_bounce, flufl_i18n, flufl_lock, lazr_config, lazr_delegates, passlib
-, requests, zope_configuration, click, falcon, importlib-resources
-, zope_component, lynx, postfix, authheaders, gunicorn
+{ lib, python3, fetchPypi, fetchpatch, pythonOlder, postfix, lynx
}:
+let
+ py = python3.override {
+ packageOverrides = self: super: {
+ # https://gitlab.com/mailman/mailman/-/issues/845
+ sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec {
+ version = "1.3.24";
+ src = oldAttrs.src.override {
+ inherit version;
+ sha256 = "06bmxzssc66cblk1hamskyv5q3xf1nh1py3vi6dka4lkpxy7gfzb";
+ };
+ });
+ };
+ };
+
+in
+
+with py.pkgs;
+
buildPythonPackage rec {
pname = "mailman";
- version = "3.3.4";
- disabled = !isPy3k;
+ version = "3.3.5";
+ disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
- sha256 = "01rx322b8mzcdj9xh4bjwnl0zis6n2wxd31rrij4cw3a2j03xpas";
+ sha256 = "12mgxs1ndhdjjkydx48b95na9k9h0disfqgrr6wxx7vda6dqvcwz";
};
propagatedBuildInputs = [
- alembic aiosmtpd click dnspython falcon flufl_bounce flufl_i18n flufl_lock
- importlib-resources lazr_config passlib requests zope_configuration
- zope_component authheaders gunicorn
+ aiosmtpd
+ alembic
+ authheaders
+ click
+ dnspython
+ falcon
+ flufl_bounce
+ flufl_i18n
+ flufl_lock
+ gunicorn
+ importlib-resources
+ lazr_config
+ passlib
+ requests
+ sqlalchemy
+ zope_component
+ zope_configuration
];
patches = [
@@ -33,6 +62,9 @@ buildPythonPackage rec {
];
postPatch = ''
+ substituteInPlace setup.py \
+ --replace "alembic>=1.6.2,<1.7" "alembic>=1.6.2"
+
substituteInPlace src/mailman/config/postfix.cfg \
--replace /usr/sbin/postmap ${postfix}/bin/postmap
substituteInPlace src/mailman/config/schema.cfg \
@@ -48,6 +80,7 @@ buildPythonPackage rec {
# 'runner' scripts.
dontWrapPythonPrograms = true;
+ # requires flufl.testing, which the upstream has archived
doCheck = false;
meta = {
diff --git a/pkgs/servers/mail/mailman/hyperkitty.nix b/pkgs/servers/mail/mailman/hyperkitty.nix
index 1c20e33bd0c2..d0d7cbc7fbb6 100644
--- a/pkgs/servers/mail/mailman/hyperkitty.nix
+++ b/pkgs/servers/mail/mailman/hyperkitty.nix
@@ -1,35 +1,83 @@
-{ lib, buildPythonPackage, fetchPypi, isPy3k, isort, coverage, mock
-, robot-detection, django_extensions, rjsmin, cssmin, django-mailman3
-, django-haystack, flufl_lock, networkx, python-dateutil, defusedxml
-, django-paintstore, djangorestframework, django, django-q
-, django_compressor, beautifulsoup4, six, psycopg2, whoosh, elasticsearch
+{ lib
+, buildPythonPackage
+, fetchFromGitLab
+, isPy3k
+
+# dependencies
+, defusedxml
+, django
+, django-gravatar2
+, django-haystack
+, django-mailman3
+, django-paintstore
+, django-q
+, django_compressor
+, django_extensions
+, djangorestframework
+, flufl_lock
+, mistune_2_0
+, networkx
+, psycopg2
+, python-dateutil
+, robot-detection
+
+# tests
+, beautifulsoup4
+, elasticsearch
+, mock
+, whoosh
}:
buildPythonPackage rec {
pname = "HyperKitty";
# Note: Mailman core must be on the latest version before upgrading HyperKitty.
# See: https://gitlab.com/mailman/postorius/-/issues/516#note_544571309
- version = "1.3.4";
+ #
+ # Update to next stable version > 1.3.4 that has fixed tests, see
+ # https://gitlab.com/mailman/django-mailman3/-/issues/48
+ version = "1.3.5";
disabled = !isPy3k;
- src = fetchPypi {
- inherit pname version;
- sha256 = "1lbh8n66fp3l5s0xvmvsbfvgs3z4knx0gwf0q117n2nfkslf13zp";
+ src = fetchFromGitLab {
+ domain = "gitlab.com";
+ owner = "mailman";
+ repo = "hyperkitty";
+ rev = version;
+ sha256 = "0v70r0r6w0q56hk2hw1qp3ci0bwd9x8inf4gai6ybjqjfskqrxi4";
};
- nativeBuildInputs = [ isort ];
+ postPatch = ''
+ # isort is a development dependency
+ sed -i '/isort/d' setup.py
+ '';
+
propagatedBuildInputs = [
- robot-detection django_extensions rjsmin cssmin django-mailman3
- django-haystack flufl_lock networkx python-dateutil defusedxml
- django-paintstore djangorestframework django django-q
- django_compressor six psycopg2 isort
+ django
+ django-gravatar2
+ django-haystack
+ django-mailman3
+ django-q
+ django_compressor
+ django_extensions
+ djangorestframework
+ flufl_lock
+ mistune_2_0
+ networkx
+ psycopg2
+ python-dateutil
+ robot-detection
];
# Some of these are optional runtime dependencies that are not
# listed as dependencies in setup.py. To use these, they should be
# dependencies of the Django Python environment, but not of
# HyperKitty so they're not included for people who don't need them.
- checkInputs = [ beautifulsoup4 coverage elasticsearch mock whoosh ];
+ checkInputs = [
+ beautifulsoup4
+ elasticsearch
+ mock
+ whoosh
+ ];
checkPhase = ''
cd $NIX_BUILD_TOP/$sourceRoot
diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix
index 018ec774a3a9..49f5a24eaaea 100644
--- a/pkgs/servers/x11/xorg/default.nix
+++ b/pkgs/servers/x11/xorg/default.nix
@@ -3087,11 +3087,11 @@ lib.makeScope newScope (self: with self; {
# THIS IS A GENERATED FILE. DO NOT EDIT!
xorgproto = callPackage ({ stdenv, pkg-config, fetchurl, libXt, python3 }: stdenv.mkDerivation {
pname = "xorgproto";
- version = "2021.4";
+ version = "2021.5";
builder = ./builder.sh;
src = fetchurl {
- url = "mirror://xorg/individual/proto/xorgproto-2021.4.tar.bz2";
- sha256 = "1gwz8lhvczjinndrq2jb0swfvhk7p65rprkwiqwlp132041mfl8g";
+ url = "mirror://xorg/individual/proto/xorgproto-2021.5.tar.bz2";
+ sha256 = "05d0kib351qmnlfimaznaw0220fr0ym7fx2gn9h2jqxxilxncbxa";
};
hardeningDisable = [ "bindnow" "relro" ];
nativeBuildInputs = [ pkg-config python3 ];
diff --git a/pkgs/servers/x11/xorg/tarballs.list b/pkgs/servers/x11/xorg/tarballs.list
index 64ecbfa0a4a5..bc9344f66cb3 100644
--- a/pkgs/servers/x11/xorg/tarballs.list
+++ b/pkgs/servers/x11/xorg/tarballs.list
@@ -211,7 +211,7 @@ mirror://xorg/individual/lib/libXxf86misc-1.0.4.tar.bz2
mirror://xorg/individual/lib/libXxf86vm-1.1.4.tar.bz2
mirror://xorg/individual/lib/xtrans-1.4.0.tar.bz2
mirror://xorg/individual/proto/xcb-proto-1.14.1.tar.xz
-mirror://xorg/individual/proto/xorgproto-2021.4.tar.bz2
+mirror://xorg/individual/proto/xorgproto-2021.5.tar.bz2
mirror://xorg/individual/util/gccmakedep-1.0.3.tar.bz2
mirror://xorg/individual/util/imake-1.0.8.tar.bz2
mirror://xorg/individual/util/lndir-1.0.3.tar.bz2
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index 81313fb390ec..b25a840f460e 100644
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -458,7 +458,7 @@ rec {
libxml2 gettext sharutils gmp libarchive ncurses pkg-config libedit groff
openssh sqlite sed serf openldap db cyrus-sasl expat apr-util subversion xz
findfreetype libssh curl cmake autoconf automake libtool ed cpio coreutils
- libssh2 nghttp2 libkrb5 ninja brotli;
+ libssh2 nghttp2 libkrb5 ninja brotli libiconv;
"${finalLlvmPackages}" = super."${finalLlvmPackages}" // (
let
diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix
index 56cfa0c503f8..8fa306370494 100644
--- a/pkgs/stdenv/generic/make-derivation.nix
+++ b/pkgs/stdenv/generic/make-derivation.nix
@@ -305,6 +305,9 @@ else let
cpu_family = '${cpuFamily stdenv.targetPlatform}'
cpu = '${stdenv.targetPlatform.parsed.cpu.name}'
endian = ${if stdenv.targetPlatform.isLittleEndian then "'little'" else "'big'"}
+
+ [binaries]
+ llvm-config = 'llvm-config-native'
'';
in [ "--cross-file=${crossFile}" ] ++ mesonFlags;
} // lib.optionalAttrs (attrs.enableParallelBuilding or false) {
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index f90d9020f89f..fd0535898a8d 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -1,5 +1,6 @@
set -eu
set -o pipefail
+shopt -s inherit_errexit
if [[ -n "${BASH_VERSINFO-}" && "${BASH_VERSINFO-}" -lt 4 ]]; then
echo "Detected Bash version that isn't supported by Nixpkgs (${BASH_VERSION})"
@@ -409,15 +410,14 @@ findInputs() {
# The current package's host and target offset together
# provide a <=-preserving homomorphism from the relative
# offsets to current offset
- local -i mapOffsetResult
function mapOffset() {
local -r inputOffset="$1"
+ local -n outputOffset="$2"
if (( inputOffset <= 0 )); then
- local -r outputOffset=$((inputOffset + hostOffset))
+ outputOffset=$((inputOffset + hostOffset))
else
- local -r outputOffset=$((inputOffset - 1 + targetOffset))
+ outputOffset=$((inputOffset - 1 + targetOffset))
fi
- mapOffsetResult="$outputOffset"
}
# Host offset relative to that of the package whose immediate
@@ -429,16 +429,16 @@ findInputs() {
# Host offset relative to the package currently being
# built---as absolute an offset as will be used.
- mapOffset relHostOffset
- local -i hostOffsetNext="$mapOffsetResult"
+ local hostOffsetNext
+ mapOffset "$relHostOffset" hostOffsetNext
# Ensure we're in bounds relative to the package currently
# being built.
- [[ "${allPlatOffsets[*]}" = *"$hostOffsetNext"* ]] || continue
+ (( -1 <= hostOffsetNext && hostOffsetNext <= 1 )) || continue
# Target offset relative to the *host* offset of the package
# whose immediate dependencies we are currently exploring.
- local -i relTargetOffset
+ local relTargetOffset
for relTargetOffset in "${allPlatOffsets[@]}"; do
(( "$relHostOffset" <= "$relTargetOffset" )) || continue
@@ -448,12 +448,12 @@ findInputs() {
# Target offset relative to the package currently being
# built.
- mapOffset relTargetOffset
- local -i targetOffsetNext="$mapOffsetResult"
+ local targetOffsetNext
+ mapOffset "$relTargetOffset" targetOffsetNext
# Once again, ensure we're in bounds relative to the
# package currently being built.
- [[ "${allPlatOffsets[*]}" = *"$targetOffsetNext"* ]] || continue
+ (( -1 <= hostOffsetNext && hostOffsetNext <= 1 )) || continue
[[ -f "$pkg/nix-support/$file" ]] || continue
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix
index 1fbd3cba27ef..d2c74f7722d3 100644
--- a/pkgs/stdenv/linux/default.nix
+++ b/pkgs/stdenv/linux/default.nix
@@ -375,12 +375,7 @@ in
targetPlatform = localSystem;
inherit config;
- preHook = ''
- # Make "strip" produce deterministic output, by setting
- # timestamps etc. to a fixed value.
- commonStripFlags="--enable-deterministic-archives"
- ${commonPreHook}
- '';
+ preHook = commonPreHook;
initialPath =
((import ../common-path.nix) {pkgs = prevStage;});
diff --git a/pkgs/tools/admin/lxd/default.nix b/pkgs/tools/admin/lxd/default.nix
index 12ea0f7a55d0..ec6b867f9f7c 100644
--- a/pkgs/tools/admin/lxd/default.nix
+++ b/pkgs/tools/admin/lxd/default.nix
@@ -1,22 +1,14 @@
{ lib, hwdata, pkg-config, lxc, buildGoPackage, fetchurl
, makeWrapper, acl, rsync, gnutar, xz, btrfs-progs, gzip, dnsmasq, attr
-, squashfsTools, iproute2, iptables, ebtables, iptables-nftables-compat, libcap
+, squashfsTools, iproute2, iptables, libcap
, dqlite, raft-canonical, sqlite-replication, udev
, writeShellScriptBin, apparmor-profiles, apparmor-parser
, criu
, bash
, installShellFiles
-, nftablesSupport ? false
, nixosTests
}:
-let
- networkPkgs = if nftablesSupport then
- [ iptables-nftables-compat ]
- else
- [ iptables ebtables ];
-
-in
buildGoPackage rec {
pname = "lxd";
version = "4.19";
@@ -45,7 +37,7 @@ buildGoPackage rec {
rm $out/bin/{deps,macaroon-identity,generate}
wrapProgram $out/bin/lxd --prefix PATH : ${lib.makeBinPath (
- networkPkgs
+ [ iptables ]
++ [ acl rsync gnutar xz btrfs-progs gzip dnsmasq squashfsTools iproute2 bash criu attr ]
++ [ (writeShellScriptBin "apparmor_parser" ''
exec '${apparmor-parser}/bin/apparmor_parser' -I '${apparmor-profiles}/etc/apparmor.d' "$@"
diff --git a/pkgs/tools/audio/opl3bankeditor/common.nix b/pkgs/tools/audio/opl3bankeditor/common.nix
index 9f6972ce9540..04f4d3aae5ab 100644
--- a/pkgs/tools/audio/opl3bankeditor/common.nix
+++ b/pkgs/tools/audio/opl3bankeditor/common.nix
@@ -53,7 +53,6 @@ mkDerivation rec {
mv "${binname}.app" $out/Applications/
install_name_tool -change {,${qwt}/lib/}libqwt.6.dylib "$out/Applications/${binname}.app/Contents/MacOS/${binname}"
- wrapQtApp "$out/Applications/${binname}.app/Contents/MacOS/${binname}"
ln -s "$out/Applications/${binname}.app/Contents/MacOS/${binname}" $out/bin/${mainProgram}
'';
diff --git a/pkgs/tools/compression/gzip/default.nix b/pkgs/tools/compression/gzip/default.nix
index 6bcd5ae0c427..8bec5b481c90 100644
--- a/pkgs/tools/compression/gzip/default.nix
+++ b/pkgs/tools/compression/gzip/default.nix
@@ -11,11 +11,11 @@
stdenv.mkDerivation rec {
pname = "gzip";
- version = "1.10";
+ version = "1.11";
src = fetchurl {
url = "mirror://gnu/gzip/${pname}-${version}.tar.xz";
- sha256 = "1h6p374d3j8d4cdfydzls021xa2yby8myc0h8d6m8bc7k6ncq9c4";
+ sha256 = "01vrly90rvc98af6rcmrb3gwv1l6pylasvsdka23dffwizb9b6lv";
};
outputs = [ "out" "man" "info" ];
diff --git a/pkgs/tools/filesystems/android-file-transfer/default.nix b/pkgs/tools/filesystems/android-file-transfer/default.nix
index a8511f8b99ae..b355b0eb6864 100644
--- a/pkgs/tools/filesystems/android-file-transfer/default.nix
+++ b/pkgs/tools/filesystems/android-file-transfer/default.nix
@@ -29,9 +29,6 @@ mkDerivation rec {
postInstall = lib.optionalString stdenv.isDarwin ''
mkdir $out/Applications
mv $out/*.app $out/Applications
- for f in $out/Applications/android-file-transfer.app/Contents/MacOS/*; do
- wrapQtApp "$f"
- done
'';
meta = with lib; {
diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix
index 741468dfd994..c6c90442ddce 100644
--- a/pkgs/tools/graphics/gnuplot/default.nix
+++ b/pkgs/tools/graphics/gnuplot/default.nix
@@ -58,8 +58,6 @@ in
--prefix PATH : '${coreutils}/bin' \
--prefix PATH : '${fontconfig.bin}/bin' \
--run '. ${./set-gdfontpath-from-fontconfig.sh}'
- '' + lib.optionalString (stdenv.isDarwin && withQt) ''
- wrapQtApp $out/bin/gnuplot
'';
enableParallelBuilding = true;
diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix
index f22a7268fbc9..0b8d61756bde 100644
--- a/pkgs/tools/misc/coreutils/default.nix
+++ b/pkgs/tools/misc/coreutils/default.nix
@@ -22,15 +22,18 @@ with lib;
stdenv.mkDerivation (rec {
pname = "coreutils";
- version = "8.32";
+ version = "9.0";
src = fetchurl {
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
- sha256 = "sha256-RFjY3nhJ30TMqxXhaxVIsoUiTbul8I+sBwwcDgvMTPo=";
+ sha256 = "sha256-zjCs30pBvFuzDdlV6eqnX6IWtOPesIiJ7TJDPHs7l84=";
};
- patches = [ ./sys-getdents-undeclared.patch ]
- ++ optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch
+ patches = [
+ ./fix-chmod-exit-code.patch
+ # Workaround for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51433
+ ./disable-seek-hole.patch
+ ] ++ optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch
# fix gnulib tests on 32-bit ARM. Included on coreutils master.
# https://lists.gnu.org/r/bug-gnulib/2020-08/msg00225.html
++ optional stdenv.hostPlatform.isAarch32 ./fix-gnulib-tests-arm.patch;
@@ -74,23 +77,26 @@ stdenv.mkDerivation (rec {
sed '2i print "Skipping id zero test"; exit 77' -i ./tests/id/zero.sh
sed '2i print "Skipping misc help-versiob test"; exit 77' -i ./tests/misc/help-version.sh
sed '2i print "Skipping chown separator test"; exit 77' -i ./tests/chown/separator.sh
- '' + optionalString (stdenv.hostPlatform.libc == "musl") (lib.concatStringsSep "\n" [
+ '' + (optionalString (stdenv.hostPlatform.libc == "musl") (lib.concatStringsSep "\n" [
''
echo "int main() { return 77; }" > gnulib-tests/test-parse-datetime.c
echo "int main() { return 77; }" > gnulib-tests/test-getlogin.c
''
- ]);
+ ])) + (optionalString stdenv.isAarch64 ''
+ sed '2i print "Skipping tail assert test"; exit 77' -i ./tests/tail-2/assert.sh
+ '');
outputs = [ "out" "info" ];
- nativeBuildInputs = [ perl xz.bin ]
- ++ optionals stdenv.hostPlatform.isCygwin [ autoreconfHook texinfo ]; # due to patch
+ nativeBuildInputs = [ perl xz.bin autoreconfHook ] # autoreconfHook is due to patch, normally only needed for cygwin
+ ++ optionals stdenv.hostPlatform.isCygwin [ texinfo ]; # due to patch
configureFlags = [ "--with-packager=https://NixOS.org" ]
++ optional (singleBinary != false)
("--enable-single-binary" + optionalString (isString singleBinary) "=${singleBinary}")
++ optional withOpenssl "--with-openssl"
++ optional stdenv.hostPlatform.isSunOS "ac_cv_func_inotify_init=no"
++ optional withPrefix "--program-prefix=g"
+ ++ optional stdenv.isDarwin "--disable-nls" # the shipped configure script doesn't enable nls, but using autoreconfHook does so which breaks the build
++ optionals (stdenv.hostPlatform != stdenv.buildPlatform && stdenv.hostPlatform.libc == "glibc") [
# TODO(19b98110126fde7cbb1127af7e3fe1568eacad3d): Needed for fstatfs() I
# don't know why it is not properly detected cross building with glibc.
@@ -152,7 +158,7 @@ stdenv.mkDerivation (rec {
license = licenses.gpl3Plus;
platforms = platforms.unix ++ platforms.windows;
priority = 10;
- maintainers = [ maintainers.eelco ];
+ maintainers = [ maintainers.eelco maintainers.das_j ];
};
} // optionalAttrs stdenv.hostPlatform.isMusl {
# Work around a bogus warning in conjunction with musl.
diff --git a/pkgs/tools/misc/coreutils/disable-seek-hole.patch b/pkgs/tools/misc/coreutils/disable-seek-hole.patch
new file mode 100644
index 000000000000..89503287980d
--- /dev/null
+++ b/pkgs/tools/misc/coreutils/disable-seek-hole.patch
@@ -0,0 +1,43 @@
+diff --git a/src/copy.c b/src/copy.c
+index cb9018f93..2a4ccc061 100644
+--- a/src/copy.c
++++ b/src/copy.c
+@@ -502,7 +502,7 @@ write_zeros (int fd, off_t n_bytes)
+ return true;
+ }
+
+-#ifdef SEEK_HOLE
++#if 0
+ /* Perform an efficient extent copy, if possible. This avoids
+ the overhead of detecting holes in hole-introducing/preserving
+ copy, and thus makes copying sparse files much more efficient.
+@@ -1095,7 +1095,7 @@ infer_scantype (int fd, struct stat const *sb,
+ && ST_NBLOCKS (*sb) < sb->st_size / ST_NBLOCKSIZE))
+ return PLAIN_SCANTYPE;
+
+-#ifdef SEEK_HOLE
++#if 0
+ scan_inference->ext_start = lseek (fd, 0, SEEK_DATA);
+ if (0 <= scan_inference->ext_start)
+ return LSEEK_SCANTYPE;
+@@ -1377,7 +1377,7 @@ copy_reg (char const *src_name, char const *dst_name,
+ off_t n_read;
+ bool wrote_hole_at_eof = false;
+ if (! (
+-#ifdef SEEK_HOLE
++#if 0
+ scantype == LSEEK_SCANTYPE
+ ? lseek_copy (source_desc, dest_desc, buf, buf_size, hole_size,
+ scan_inference.ext_start, src_open_sb.st_size,
+diff --git a/tests/seek-data-capable b/tests/seek-data-capable
+index cc6372214..6e7a9ec1e 100644
+--- a/tests/seek-data-capable
++++ b/tests/seek-data-capable
+@@ -1,5 +1,7 @@
+ import sys, os, errno, platform
+
++sys.exit(1)
++
+ # Pass an _empty_ file
+ if len(sys.argv) != 2:
+ sys.exit(1)
diff --git a/pkgs/tools/misc/coreutils/fix-chmod-exit-code.patch b/pkgs/tools/misc/coreutils/fix-chmod-exit-code.patch
new file mode 100644
index 000000000000..a966c3bda917
--- /dev/null
+++ b/pkgs/tools/misc/coreutils/fix-chmod-exit-code.patch
@@ -0,0 +1,108 @@
+From e8b56ebd536e82b15542a00c888109471936bfda Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?P=C3=A1draig=20Brady?=
+Date: Fri, 24 Sep 2021 20:57:41 +0100
+Subject: [PATCH] chmod: fix exit status when ignoring symlinks
+
+* src/chmod.c: Reorder enum so CH_NOT_APPLIED
+can be treated as a non error.
+* tests/chmod/ignore-symlink.sh: A new test.
+* tests/local.mk: Reference the new test.
+* NEWS: Mention the bug fix.
+Fixes https://bugs.gnu.org/50784
+---
+ NEWS | 6 ++++++
+ src/chmod.c | 4 ++--
+ tests/chmod/ignore-symlink.sh | 31 +++++++++++++++++++++++++++++++
+ tests/local.mk | 1 +
+ 4 files changed, 40 insertions(+), 2 deletions(-)
+ create mode 100755 tests/chmod/ignore-symlink.sh
+
+diff --git a/NEWS b/NEWS
+index a1470a7d7..1cb3c28a1 100644
+--- a/NEWS
++++ b/NEWS
+@@ -2,6 +2,12 @@ GNU coreutils NEWS -*- outline -*-
+
+ * Noteworthy changes in release ?.? (????-??-??) [?]
+
++** Bug fixes
++
++ chmod -R no longer exits with error status when encountering symlinks.
++ All files would be processed correctly, but the exit status was incorrect.
++ [bug introduced in coreutils-9.0]
++
+
+ * Noteworthy changes in release 9.0 (2021-09-24) [stable]
+
+diff --git a/src/chmod.c b/src/chmod.c
+index 37b04f500..57ac47f33 100644
+--- a/src/chmod.c
++++ b/src/chmod.c
+@@ -44,8 +44,8 @@ struct change_status
+ enum
+ {
+ CH_NO_STAT,
+- CH_NOT_APPLIED,
+ CH_FAILED,
++ CH_NOT_APPLIED,
+ CH_NO_CHANGE_REQUESTED,
+ CH_SUCCEEDED
+ }
+@@ -322,7 +322,7 @@ process_file (FTS *fts, FTSENT *ent)
+ if ( ! recurse)
+ fts_set (fts, ent, FTS_SKIP);
+
+- return CH_NO_CHANGE_REQUESTED <= ch.status;
++ return CH_NOT_APPLIED <= ch.status;
+ }
+
+ /* Recursively change the modes of the specified FILES (the last entry
+diff --git a/tests/chmod/ignore-symlink.sh b/tests/chmod/ignore-symlink.sh
+new file mode 100755
+index 000000000..5ce3de816
+--- /dev/null
++++ b/tests/chmod/ignore-symlink.sh
+@@ -0,0 +1,31 @@
++#!/bin/sh
++# Test for proper exit code of chmod on a processed symlink.
++
++# Copyright (C) 2021 Free Software Foundation, Inc.
++
++# This program is free software: you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation, either version 3 of the License, or
++# (at your option) any later version.
++
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++
++# You should have received a copy of the GNU General Public License
++# along with this program. If not, see .
++
++. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
++print_ver_ chmod
++
++mkdir dir || framework_failure_
++touch dir/f || framework_failure_
++ln -s f dir/l || framework_failure_
++
++# This operation ignores symlinks but should succeed.
++chmod u+w -R dir 2> out || fail=1
++
++compare /dev/null out || fail=1
++
++Exit $fail
+diff --git a/tests/local.mk b/tests/local.mk
+index 228d0e368..b5b893fb7 100644
+--- a/tests/local.mk
++++ b/tests/local.mk
+@@ -456,6 +456,7 @@ all_tests = \
+ tests/chmod/c-option.sh \
+ tests/chmod/equal-x.sh \
+ tests/chmod/equals.sh \
++ tests/chmod/ignore-symlink.sh \
+ tests/chmod/inaccessible.sh \
+ tests/chmod/octal.sh \
+ tests/chmod/setgid.sh \
diff --git a/pkgs/tools/misc/coreutils/sys-getdents-undeclared.patch b/pkgs/tools/misc/coreutils/sys-getdents-undeclared.patch
deleted file mode 100644
index 0af5de68415a..000000000000
--- a/pkgs/tools/misc/coreutils/sys-getdents-undeclared.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-From 10fcb97bd728f09d4a027eddf8ad2900f0819b0a Mon Sep 17 00:00:00 2001
-From: Paul Eggert
-Date: Thu, 5 Mar 2020 17:25:29 -0800
-Subject: ls: restore 8.31 behavior on removed directories
-
-* NEWS: Mention this.
-* src/ls.c: Do not include
-(print_dir): Don't worry about whether the directory is removed.
-* tests/ls/removed-directory.sh: Adjust to match new (i.e., old)
-behavior.
----
- NEWS (removed diff in nixpkgs)| 6 ++++++
- src/ls.c | 22 ----------------------
- tests/ls/removed-directory.sh | 10 ++--------
- 3 files changed, 8 insertions(+), 30 deletions(-)
-
-diff --git a/src/ls.c b/src/ls.c
-index 24b983287..4acf5f44d 100644
---- a/src/ls.c
-+++ b/src/ls.c
-@@ -49,10 +49,6 @@
- # include
- #endif
-
--#ifdef __linux__
--# include
--#endif
--
- #include
- #include
- #include
-@@ -2896,7 +2892,6 @@ print_dir (char const *name, char const *realname, bool command_line_arg)
- struct dirent *next;
- uintmax_t total_blocks = 0;
- static bool first = true;
-- bool found_any_entries = false;
-
- errno = 0;
- dirp = opendir (name);
-@@ -2972,7 +2967,6 @@ print_dir (char const *name, char const *realname, bool command_line_arg)
- next = readdir (dirp);
- if (next)
- {
-- found_any_entries = true;
- if (! file_ignored (next->d_name))
- {
- enum filetype type = unknown;
-@@ -3018,22 +3012,6 @@ print_dir (char const *name, char const *realname, bool command_line_arg)
- if (errno != EOVERFLOW)
- break;
- }
--#ifdef __linux__
-- else if (! found_any_entries)
-- {
-- /* If readdir finds no directory entries at all, not even "." or
-- "..", then double check that the directory exists. */
-- if (syscall (SYS_getdents, dirfd (dirp), NULL, 0) == -1
-- && errno != EINVAL)
-- {
-- /* We exclude EINVAL as that pertains to buffer handling,
-- and we've passed NULL as the buffer for simplicity.
-- ENOENT is returned if appropriate before buffer handling. */
-- file_failure (command_line_arg, _("reading directory %s"), name);
-- }
-- break;
-- }
--#endif
- else
- break;
-
-diff --git a/tests/ls/removed-directory.sh b/tests/ls/removed-directory.sh
-index e8c835dab..fe8f929a1 100755
---- a/tests/ls/removed-directory.sh
-+++ b/tests/ls/removed-directory.sh
-@@ -26,20 +26,14 @@ case $host_triplet in
- *) skip_ 'non linux kernel' ;;
- esac
-
--LS_FAILURE=2
--
--cat <<\EOF >exp-err || framework_failure_
--ls: reading directory '.': No such file or directory
--EOF
--
- cwd=$(pwd)
- mkdir d || framework_failure_
- cd d || framework_failure_
- rmdir ../d || framework_failure_
-
--returns_ $LS_FAILURE ls >../out 2>../err || fail=1
-+ls >../out 2>../err || fail=1
- cd "$cwd" || framework_failure_
- compare /dev/null out || fail=1
--compare exp-err err || fail=1
-+compare /dev/null err || fail=1
-
- Exit $fail
---
-cgit v1.2.1
-
diff --git a/pkgs/tools/misc/ksnip/default.nix b/pkgs/tools/misc/ksnip/default.nix
index d78b45d9b7ac..c93016fe55c7 100644
--- a/pkgs/tools/misc/ksnip/default.nix
+++ b/pkgs/tools/misc/ksnip/default.nix
@@ -5,6 +5,7 @@
, fetchFromGitHub
, kcolorpicker
, kimageannotator
+, wrapQtAppsHook
, qtsvg
, qttranslations
, qtx11extras
@@ -21,11 +22,10 @@ stdenv.mkDerivation rec {
sha256 = "1izsk586n9fbm0di0hj6pxs7r0a6w554gpad1ghf247icr0pfc1l";
};
- dontWrapQtApps = true;
-
nativeBuildInputs = [
cmake
extra-cmake-modules
+ wrapQtAppsHook
];
buildInputs = [
diff --git a/pkgs/tools/misc/zoxide/default.nix b/pkgs/tools/misc/zoxide/default.nix
index f4d6d2a346f7..13199890ab64 100644
--- a/pkgs/tools/misc/zoxide/default.nix
+++ b/pkgs/tools/misc/zoxide/default.nix
@@ -10,13 +10,13 @@
rustPlatform.buildRustPackage rec {
pname = "zoxide";
- version = "0.7.8";
+ version = "0.7.9";
src = fetchFromGitHub {
owner = "ajeetdsouza";
repo = "zoxide";
rev = "v${version}";
- sha256 = "sha256-NGSeGrYEWYE1gmYZs4UmZCIKJKckROWZtl+PykGWDEM=";
+ sha256 = "sha256-afjEqHUoLYS+IOMnWocT5dVkjWdWGavJn7q9Fqjliss=";
};
nativeBuildInputs = [ installShellFiles ];
@@ -28,7 +28,7 @@ rustPlatform.buildRustPackage rec {
--replace '"fzf"' '"${fzf}/bin/fzf"'
'';
- cargoSha256 = "sha256-gtXIMYklcQg75VUuPzftI9OJ+S8iutpnJAT37VsB+KY=";
+ cargoSha256 = "sha256-CgbjSP8QotCxQ8n8SLVuLpkg8hLuRYZwsl/9HsrkCt8=";
postInstall = ''
installManPage man/*
diff --git a/pkgs/tools/networking/curl/CVE-2021-22945.patch b/pkgs/tools/networking/curl/CVE-2021-22945.patch
new file mode 100644
index 000000000000..f8e570d2d65c
--- /dev/null
+++ b/pkgs/tools/networking/curl/CVE-2021-22945.patch
@@ -0,0 +1,27 @@
+From 43157490a5054bd24256fe12876931e8abc9df49 Mon Sep 17 00:00:00 2001
+From: z2_ on hackerone <>
+Date: Tue, 24 Aug 2021 09:50:33 +0200
+Subject: [PATCH] mqtt: clear the leftovers pointer when sending succeeds
+
+CVE-2021-22945
+
+Bug: https://curl.se/docs/CVE-2021-22945.html
+---
+ lib/mqtt.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/lib/mqtt.c b/lib/mqtt.c
+index f077e6c3dc44..fcd40b41e600 100644
+--- a/lib/mqtt.c
++++ b/lib/mqtt.c
+@@ -128,6 +128,10 @@ static CURLcode mqtt_send(struct Curl_easy *data,
+ mq->sendleftovers = sendleftovers;
+ mq->nsend = nsend;
+ }
++ else {
++ mq->sendleftovers = NULL;
++ mq->nsend = 0;
++ }
+ return result;
+ }
+
diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix
index b3572e01c96d..7d6b96ac9f01 100644
--- a/pkgs/tools/networking/curl/default.nix
+++ b/pkgs/tools/networking/curl/default.nix
@@ -57,6 +57,7 @@ stdenv.mkDerivation rec {
./CVE-2021-22897.patch
./CVE-2021-22898.patch
./CVE-2021-22901.patch
+ ./CVE-2021-22945.patch
];
outputs = [ "bin" "dev" "out" "man" "devdoc" ];
diff --git a/pkgs/tools/networking/ferm/default.nix b/pkgs/tools/networking/ferm/default.nix
index 29f9481fe328..580ca848c62b 100644
--- a/pkgs/tools/networking/ferm/default.nix
+++ b/pkgs/tools/networking/ferm/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, makeWrapper, perl, ebtables, ipset, iptables, nixosTests }:
+{ lib, stdenv, fetchurl, makeWrapper, perl, iptables, nixosTests }:
let
inherit (lib.versions) majorMinor;
@@ -23,7 +23,7 @@ in stdenv.mkDerivation rec {
postInstall = ''
rm -r $out/lib/systemd
for i in "$out/sbin/"*; do
- wrapProgram "$i" --prefix PATH : "${lib.makeBinPath [ iptables ipset ebtables ]}"
+ wrapProgram "$i" --prefix PATH : "${lib.makeBinPath [ iptables ]}"
done
'';
diff --git a/pkgs/tools/networking/modemmanager/default.nix b/pkgs/tools/networking/modemmanager/default.nix
index e352e67d3fe5..299342197897 100644
--- a/pkgs/tools/networking/modemmanager/default.nix
+++ b/pkgs/tools/networking/modemmanager/default.nix
@@ -5,11 +5,11 @@
stdenv.mkDerivation rec {
pname = "modemmanager";
- version = "1.16.10";
+ version = "1.18.2";
src = fetchurl {
url = "https://www.freedesktop.org/software/ModemManager/ModemManager-${version}.tar.xz";
- sha256 = "sha256-LM8fcWwtEh6OZwm8+K8p7oaXGpCtrMoujWKIswJ4hi4=";
+ sha256 = "sha256-N0vhWK4cH7OKKe7xzDzfif81NrSP8TINIIqyBOpsX4o=";
};
nativeBuildInputs = [ vala gobject-introspection gettext pkg-config ];
diff --git a/pkgs/tools/networking/networkmanager/default.nix b/pkgs/tools/networking/networkmanager/default.nix
index 8a1a6dd8fa1b..3913cb0520b7 100644
--- a/pkgs/tools/networking/networkmanager/default.nix
+++ b/pkgs/tools/networking/networkmanager/default.nix
@@ -54,11 +54,11 @@ let
in
stdenv.mkDerivation rec {
pname = "networkmanager";
- version = "1.32.10";
+ version = "1.32.12";
src = fetchurl {
url = "mirror://gnome/sources/NetworkManager/${lib.versions.majorMinor version}/NetworkManager-${version}.tar.xz";
- sha256 = "sha256-PlzMZoBWWePxGnGOOlmflya3mgHW/xSBS+ati8Xai7g=";
+ sha256 = "sha256-qKs2oKUC/nPNjjustlhfl/u5Tr73nids268Rwz/49Us=";
};
outputs = [ "out" "dev" "devdoc" "man" "doc" ];
diff --git a/pkgs/tools/networking/openssh/common.nix b/pkgs/tools/networking/openssh/common.nix
index eaa42039dbaa..fefa80b9c4f6 100644
--- a/pkgs/tools/networking/openssh/common.nix
+++ b/pkgs/tools/networking/openssh/common.nix
@@ -122,7 +122,7 @@ stdenv.mkDerivation rec {
changelog = "https://www.openssh.com/releasenotes.html";
license = licenses.bsd2;
platforms = platforms.unix ++ platforms.windows;
- maintainers = with maintainers; [ eelco aneeshusa ];
+ maintainers = (extraMeta.maintainers or []) ++ (with maintainers; [ eelco aneeshusa ]);
mainProgram = "ssh";
} // extraMeta;
}
diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix
index c8bc1f8a1dda..4bc181717168 100644
--- a/pkgs/tools/networking/openssh/default.nix
+++ b/pkgs/tools/networking/openssh/default.nix
@@ -1,4 +1,4 @@
-{ callPackage, fetchurl, fetchpatch, fetchFromGitHub, autoreconfHook }:
+{ callPackage, lib, fetchurl, fetchpatch, fetchFromGitHub, autoreconfHook }:
let
common = opts: callPackage (import ./common.nix opts) { };
in
@@ -6,14 +6,15 @@ in
openssh = common rec {
pname = "openssh";
- version = "8.7p1";
+ version = "8.8p1";
src = fetchurl {
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
- sha256 = "090yxpi03pxxzb4ppx8g8hdpw7c4nf8p0avr6c7ybsaana5lp8vw";
+ sha256 = "1s8z6f7mi1pwsl79cqai8cr350m5lf2ifcxff57wx6mvm478k425";
};
extraPatches = [ ./ssh-keysign-8.5.patch ];
+ extraMeta.maintainers = with lib.maintainers; [ das_j ];
};
openssh_hpn = common rec {
diff --git a/pkgs/tools/networking/ppp/default.nix b/pkgs/tools/networking/ppp/default.nix
index 708932ac1c9d..5608b032ac50 100644
--- a/pkgs/tools/networking/ppp/default.nix
+++ b/pkgs/tools/networking/ppp/default.nix
@@ -4,6 +4,7 @@
, substituteAll
, libpcap
, openssl
+, bash
}:
stdenv.mkDerivation rec {
@@ -31,18 +32,22 @@ stdenv.mkDerivation rec {
buildInputs = [
libpcap
openssl
+ bash
];
postPatch = ''
- # strip is not found when cross compiling with seemingly no way to point
- # make to the right place, fixup phase will correctly strip
- # everything anyway so we remove it from the Makefiles
for file in $(find -name Makefile.linux); do
- substituteInPlace "$file" --replace '$(INSTALL) -s' '$(INSTALL)'
substituteInPlace "$file" --replace '-m 4550' '-m 550'
done
+
+ patchShebangs --host \
+ scripts/{pon,poff,plog}
'';
+ makeFlags = [
+ "CC=${stdenv.cc.targetPrefix}cc"
+ ];
+
installPhase = ''
runHook preInstall
mkdir -p $out/bin
@@ -52,9 +57,7 @@ stdenv.mkDerivation rec {
'';
postFixup = ''
- for tgt in pon poff plog; do
- substituteInPlace "$out/bin/$tgt" --replace "/usr/sbin" "$out/bin"
- done
+ substituteInPlace "$out/bin/pon" --replace "/usr/sbin" "$out/bin"
'';
meta = with lib; {
diff --git a/pkgs/tools/networking/shadowsocks-rust/default.nix b/pkgs/tools/networking/shadowsocks-rust/default.nix
index 971570717331..065b842c384f 100644
--- a/pkgs/tools/networking/shadowsocks-rust/default.nix
+++ b/pkgs/tools/networking/shadowsocks-rust/default.nix
@@ -2,28 +2,36 @@
rustPlatform.buildRustPackage rec {
pname = "shadowsocks-rust";
- version = "1.10.7";
+ version = "1.11.2";
src = fetchFromGitHub {
rev = "v${version}";
owner = "shadowsocks";
repo = pname;
- sha256 = "08k5j469750bhlq49qc5nwc2jjgmy9qsm58nf2jfwhxlpflv12sc";
+ sha256 = "0ry3zfwxs5j243jpbp5ymnz14ycyk6gpgb50lcazhn1yy52p8wac";
};
- cargoSha256 = "1r8w5cdygd26m95q9qpqa85aixx25jr510hpjlllbpfvm7zjpbqk";
+ cargoSha256 = "1hvrp3zf5h33j6fgqyzn2jvjbyi8c8pyqwrj5wg3lw38h0z5rvaj";
RUSTC_BOOTSTRAP = 1;
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices libiconv ];
- checkFlags = [ "--skip=http_proxy" "--skip=udp_tunnel" ];
+ # all of these rely on connecting to www.example.com:80
+ checkFlags = [
+ "--skip=http_proxy"
+ "--skip=tcp_tunnel"
+ "--skip=udp_tunnel"
+ "--skip=udp_relay"
+ "--skip=socks4_relay_connect"
+ "--skip=socks5_relay_aead"
+ "--skip=socks5_relay_stream"
+ ];
meta = with lib; {
homepage = "https://github.com/shadowsocks/shadowsocks-rust";
description = "A Rust port of shadowsocks";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
- broken = stdenv.isAarch64; # crypto2 crate doesn't build on aarch64
};
}
diff --git a/pkgs/tools/networking/shorewall/default.nix b/pkgs/tools/networking/shorewall/default.nix
index f95fc9d92b18..0c9e515ce094 100644
--- a/pkgs/tools/networking/shorewall/default.nix
+++ b/pkgs/tools/networking/shorewall/default.nix
@@ -1,10 +1,8 @@
{ coreutils
-, ebtables
, fetchurl
, gnugrep
, gnused
, iproute2
-, ipset
, iptables
, perl
, perlPackages
@@ -17,8 +15,6 @@ let
[ "${coreutils}/bin"
"${iproute2}/bin"
"${iptables}/bin"
- "${ipset}/bin"
- "${ebtables}/bin"
"${util-linux}/bin"
"${gnugrep}/bin"
"${gnused}/bin"
@@ -47,9 +43,7 @@ stdenv.mkDerivation rec {
buildInputs = [
coreutils
iproute2
- ipset
iptables
- ebtables
util-linux
gnugrep
gnused
diff --git a/pkgs/tools/text/glogg/default.nix b/pkgs/tools/text/glogg/default.nix
index 306c25498ad3..855490df4ab4 100644
--- a/pkgs/tools/text/glogg/default.nix
+++ b/pkgs/tools/text/glogg/default.nix
@@ -25,7 +25,6 @@ mkDerivation rec {
mkdir -p $out/Applications
mv $out/bin/glogg.app $out/Applications/glogg.app
rm -fr $out/{bin,share}
- wrapQtApp $out/Applications/glogg.app/Contents/MacOS/glogg
'';
meta = with lib; {
diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix
index c5a661af1153..bb0c90197d3c 100644
--- a/pkgs/tools/text/gnugrep/default.nix
+++ b/pkgs/tools/text/gnugrep/default.nix
@@ -5,7 +5,7 @@
# cgit) that are needed here should be included directly in Nixpkgs as
# files.
-let version = "3.6"; in
+let version = "3.7"; in
stdenv.mkDerivation {
pname = "gnugrep";
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
src = fetchurl {
url = "mirror://gnu/grep/grep-${version}.tar.xz";
- sha256 = "0gipv6bzkm1aihj0ncqpyh164xrzgcxcv9r1kwzyk2g1mzl1azk6";
+ sha256 = "0g42svbc1nq5bamxfj6x7320wli4dlj86padk0hwgbk04hqxl42w";
};
# Perl is needed for testing
diff --git a/pkgs/tools/text/source-highlight/default.nix b/pkgs/tools/text/source-highlight/default.nix
index 8817b7a09fda..4a7b588cd9d4 100644
--- a/pkgs/tools/text/source-highlight/default.nix
+++ b/pkgs/tools/text/source-highlight/default.nix
@@ -4,6 +4,8 @@ stdenv.mkDerivation rec {
pname = "source-highlight";
version = "3.1.9";
+ outputs = [ "out" "doc" "dev" ];
+
src = fetchurl {
url = "mirror://gnu/src-highlite/${pname}-${version}.tar.gz";
sha256 = "148w47k3zswbxvhg83z38ifi85f9dqcpg7icvvw1cm6bg21x4zrs";
@@ -28,7 +30,10 @@ stdenv.mkDerivation rec {
strictDeps = true;
buildInputs = [ boost ];
- configureFlags = [ "--with-boost=${boost.out}" ];
+ configureFlags = [
+ "--with-boost=${boost.out}"
+ "--with-bash-completion=${placeholder "out"}/share/bash_completion.d"
+ ];
doCheck = !stdenv.cc.isClang;
@@ -37,8 +42,6 @@ stdenv.mkDerivation rec {
# them in parallel by make will eventually break one or more tests.
enableParallelChecking = false;
- outputs = [ "out" "doc" "dev" ];
-
meta = with lib; {
description = "Source code renderer with syntax highlighting";
longDescription = ''
diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix
index 1367d651a091..9569ec88854f 100644
--- a/pkgs/tools/typesetting/tex/texlive/combine.nix
+++ b/pkgs/tools/typesetting/tex/texlive/combine.nix
@@ -33,9 +33,9 @@ let
++ lib.optional (lib.any pkgNeedsRuby splitBin.wrong) ruby;
};
- uniqueStrings = list: lib.sort (a: b: a < b) (lib.unique list);
+ sortedUniqueStrings = list: lib.sort (a: b: a < b) (lib.unique list);
- mkUniqueOutPaths = pkgs: uniqueStrings
+ mkUniqueOutPaths = pkgs: lib.unique
(map (p: p.outPath) (builtins.filter lib.isDerivation pkgs));
in (buildEnv {
@@ -124,9 +124,9 @@ in (buildEnv {
# now filter hyphenation patterns and formats
(let
hyphens = lib.filter (p: p.hasHyphens or false && p.tlType == "run") pkgList.splitBin.wrong;
- hyphenPNames = uniqueStrings (map (p: p.pname) hyphens);
+ hyphenPNames = sortedUniqueStrings (map (p: p.pname) hyphens);
formats = lib.filter (p: p.hasFormats or false && p.tlType == "run") pkgList.splitBin.wrong;
- formatPNames = uniqueStrings (map (p: p.pname) formats);
+ formatPNames = sortedUniqueStrings (map (p: p.pname) formats);
# sed expression that prints the lines in /start/,/end/ except for /end/
section = start: end: "/${start}/,/${end}/{ /${start}/p; /${end}/!p; };\n";
script =
diff --git a/pkgs/tools/video/rav1e/default.nix b/pkgs/tools/video/rav1e/default.nix
index 53e139cde3bb..d6fc422b4cd4 100644
--- a/pkgs/tools/video/rav1e/default.nix
+++ b/pkgs/tools/video/rav1e/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, rustPlatform, rust, fetchurl, fetchFromGitHub, lib, nasm, cargo-c, libiconv }:
+{ lib, rust, stdenv, rustPlatform, fetchCrate, nasm, cargo-c, libiconv }:
let
rustTargetPlatformSpec = rust.toRustTargetSpec stdenv.hostPlatform;
@@ -6,29 +6,13 @@ in rustPlatform.buildRustPackage rec {
pname = "rav1e";
version = "0.4.1";
- src = stdenv.mkDerivation rec {
- name = "${pname}-${version}-source";
-
- src = fetchFromGitHub {
- owner = "xiph";
- repo = "rav1e";
- rev = "v${version}";
- sha256 = "0jnq5a3fv6fzzbmprzfxidlcwwgblkwwm0135cfw741wjv7f7h6r";
- };
-
- cargoLock = fetchurl {
- url = "https://github.com/xiph/rav1e/releases/download/v${version}/Cargo.lock";
- sha256 = "14fi9wam9rs5206rvcd2f3sjpzq41pnfml14w74wn2ws3gpi46zn";
- };
-
- installPhase = ''
- mkdir -p $out
- cp -r ./* $out/
- cp ${cargoLock} $out/Cargo.lock
- '';
+ src = fetchCrate {
+ inherit pname version;
+ sha256 = "sha256-9fBAH1vuLJ3yu8X5+CQGLQFDlzTYoFBUTy3Muo6hLkw=";
};
- cargoSha256 = "0miq6iiywwbxm6k0alnqg6bnd14pwc8vl9d8fgg6c0vjlfy5zhlb";
+ cargoSha256 = "sha256-QhWVqHcNjJF94uTvHGVnV8MTp2bYOuCEjaMBfViOLRo=";
+
nativeBuildInputs = [ nasm cargo-c ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index bd655450c8de..ca55821a01eb 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -315,6 +315,8 @@ with pkgs;
html5validator = python3Packages.callPackage ../applications/misc/html5validator { };
+ buildcatrust = with python3.pkgs; toPythonApplication buildcatrust;
+
probe-run = callPackage ../development/tools/rust/probe-run {
inherit (darwin.apple_sdk.frameworks) AppKit IOKit;
};
@@ -4241,7 +4243,7 @@ with pkgs;
cpcfs = callPackage ../tools/filesystems/cpcfs { };
- coreutils = callPackage ../tools/misc/coreutils { };
+ coreutils = callPackage ../tools/misc/coreutils { };
coreutils-full = coreutils.override { minimal = false; };
coreutils-prefixed = coreutils.override { withPrefix = true; singleBinary = false; };
@@ -8735,7 +8737,7 @@ with pkgs;
pycangjie = pythonPackages.pycangjie;
- pycflow2dot = with python.pkgs; toPythonApplication pycflow2dot;
+ pycflow2dot = with python3.pkgs; toPythonApplication pycflow2dot;
pydb = callPackage ../development/tools/pydb { };
@@ -13431,12 +13433,6 @@ with pkgs;
bluezSupport = true;
x11Support = true;
};
- python36Full = python36.override {
- self = python36Full;
- pythonAttr = "python36Full";
- bluezSupport = true;
- x11Support = true;
- };
python37Full = python37.override {
self = python37Full;
pythonAttr = "python37Full";
@@ -13462,11 +13458,10 @@ with pkgs;
python3Packages = python3.pkgs;
pythonInterpreters = callPackage ./../development/interpreters/python { };
- inherit (pythonInterpreters) python27 python36 python37 python38 python39 python310 python3Minimal pypy27 pypy37;
+ inherit (pythonInterpreters) python27 python37 python38 python39 python310 python3Minimal pypy27 pypy37;
# Python package sets.
python27Packages = python27.pkgs;
- python36Packages = python36.pkgs;
python37Packages = python37.pkgs;
python38Packages = recurseIntoAttrs python38.pkgs;
python39Packages = recurseIntoAttrs python39.pkgs;
@@ -13667,7 +13662,9 @@ with pkgs;
# Needed for autogen
guile_2_0 = callPackage ../development/interpreters/guile/2.0.nix { };
- guile_2_2 = callPackage ../development/interpreters/guile { };
+ guile_2_2 = callPackage ../development/interpreters/guile/2.2.nix { };
+
+ guile_3_0 = callPackage ../development/interpreters/guile/3.0.nix { };
guile = guile_2_2;
@@ -15644,7 +15641,6 @@ with pkgs;
bobcat = callPackage ../development/libraries/bobcat { };
boehmgc = callPackage ../development/libraries/boehm-gc { };
- boehmgc_766 = callPackage ../development/libraries/boehm-gc/7.6.6.nix { };
boolstuff = callPackage ../development/libraries/boolstuff { };
@@ -18329,6 +18325,7 @@ with pkgs;
libxml2 = callPackage ../development/libraries/libxml2 {
python = python3;
+ inherit (darwin) libiconv;
};
libxml2Python = let
@@ -20507,9 +20504,7 @@ with pkgs;
dex2jar = callPackage ../development/tools/java/dex2jar { };
- doh-proxy = callPackage ../servers/dns/doh-proxy {
- python3Packages = python36Packages;
- };
+ doh-proxy = callPackage ../servers/dns/doh-proxy { };
doh-proxy-rust = callPackage ../servers/dns/doh-proxy-rust {
inherit (darwin.apple_sdk.frameworks) Security;
@@ -21878,9 +21873,9 @@ with pkgs;
iputils = hiPrio (callPackage ../os-specific/linux/iputils { });
# hiPrio for collisions with inetutils (ping and tftpd.8.gz)
- iptables = iptables-legacy;
- iptables-legacy = callPackage ../os-specific/linux/iptables { };
- iptables-nftables-compat = callPackage ../os-specific/linux/iptables { nftablesCompat = true; };
+ iptables = callPackage ../os-specific/linux/iptables { };
+ iptables-legacy = callPackage ../os-specific/linux/iptables { nftablesCompat = false; };
+ iptables-nftables-compat = iptables;
iptstate = callPackage ../os-specific/linux/iptstate { } ;
@@ -22673,9 +22668,8 @@ with pkgs;
util-linuxCurses = util-linux;
util-linuxMinimal = if stdenv.isLinux then appendToName "minimal" (util-linux.override {
- minimal = true;
+ nlsSupport = false;
ncurses = null;
- perl = null;
systemd = null;
}) else util-linux;
@@ -31620,9 +31614,9 @@ with pkgs;
} // (config.caffe or {}));
caffe2 = callPackage ../development/libraries/science/math/caffe2 (rec {
- inherit (python36Packages) python future six numpy pydot;
+ inherit (python3Packages) python future six numpy pydot;
protobuf = protobuf3_1;
- python-protobuf = python36Packages.protobuf.override { inherit protobuf; };
+ python-protobuf = python3Packages.protobuf.override { inherit protobuf; };
opencv3 = opencv3WithoutCuda; # Used only for image loading.
});
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 9d7bf43cc8ef..f61a92249c0c 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -1320,6 +1320,8 @@ in {
build = callPackage ../development/python-modules/build { };
+ buildcatrust = callPackage ../development/python-modules/buildcatrust { };
+
bumps = callPackage ../development/python-modules/bumps { };
bunch = callPackage ../development/python-modules/bunch { };
@@ -2436,6 +2438,8 @@ in {
routerFeatures = true;
};
+ entry-points-txt = callPackage ../development/python-modules/entry-points-txt { };
+
entrypoint2 = callPackage ../development/python-modules/entrypoint2 { };
entrypoints = callPackage ../development/python-modules/entrypoints { };
@@ -3436,6 +3440,8 @@ in {
hdmedians = callPackage ../development/python-modules/hdmedians { };
+ headerparser = callPackage ../development/python-modules/headerparser { };
+
heapdict = callPackage ../development/python-modules/heapdict { };
helpdev = callPackage ../development/python-modules/helpdev { };
@@ -9799,6 +9805,10 @@ in {
wheel = callPackage ../development/python-modules/wheel { };
+ wheel-filename = callPackage ../development/python-modules/wheel-filename { };
+
+ wheel-inspect = callPackage ../development/python-modules/wheel-inspect { };
+
whichcraft = callPackage ../development/python-modules/whichcraft { };
whirlpool-sixth-sense = callPackage ../development/python-modules/whirlpool-sixth-sense { };
diff --git a/pkgs/top-level/release-python.nix b/pkgs/top-level/release-python.nix
index 485410356048..af492cc4b987 100644
--- a/pkgs/top-level/release-python.nix
+++ b/pkgs/top-level/release-python.nix
@@ -4,7 +4,10 @@
*/
{ # The platforms for which we build Nixpkgs.
- supportedSystems ? [ "x86_64-linux" ]
+ supportedSystems ? [
+ "aarch64-linux"
+ "x86_64-linux"
+ ]
, # Attributes passed to nixpkgs. Don't build packages marked as unfree.
nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; }
}: