Merge remote-tracking branch 'origin/python-unstable' into staging-next

This commit is contained in:
Martin Weinelt 2021-09-05 14:51:26 +02:00
commit b041b2e1b2
381 changed files with 2631 additions and 1553 deletions

View File

@ -18,13 +18,13 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "imagemagick"; pname = "imagemagick";
version = "7.1.0-4"; version = "7.1.0-5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ImageMagick"; owner = "ImageMagick";
repo = "ImageMagick"; repo = "ImageMagick";
rev = version; rev = version;
sha256 = "sha256-CvrSeoKaTigR+4egelwLRr2++CQ5OWUePwX9e1/G1GM="; sha256 = "sha256-iXE3kVpJHMuZ+H6aaZ1GuOUHnP0lO/Q1F5yK8sPPS3M=";
}; };
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big

View File

@ -3,18 +3,18 @@
, desktop-file-utils, gsettings-desktop-schemas, libnotify, libhandy , desktop-file-utils, gsettings-desktop-schemas, libnotify, libhandy
, python3Packages, gettext , python3Packages, gettext
, appstream-glib, gdk-pixbuf, glib, gobject-introspection, gspell, gtk3 , appstream-glib, gdk-pixbuf, glib, gobject-introspection, gspell, gtk3
, steam-run-native , steam-run, xdg-utils, pciutils, cabextract, wineWowPackages
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "bottles"; pname = "bottles";
version = "2021.7.14-treviso"; version = "2021.7.28-treviso-2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bottlesdevs"; owner = "bottlesdevs";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0xhfk1ll8vacgrr0kkhynq4bryjhfjs29j824bark5mj9b6lkbix"; sha256 = "0kvwcajm9izvkwfg7ir7bks39bpc665idwa8mc8d536ajyjriysn";
}; };
postPatch = '' postPatch = ''
@ -52,7 +52,14 @@ python3Packages.buildPythonApplication rec {
dbus-python dbus-python
gst-python gst-python
liblarch liblarch
] ++ [ steam-run-native ]; patool
] ++ [
steam-run
xdg-utils
pciutils
cabextract
wineWowPackages.minimal
];
format = "other"; format = "other";
strictDeps = false; # broken with gobject-introspection setup hook, see https://github.com/NixOS/nixpkgs/issues/56943 strictDeps = false; # broken with gobject-introspection setup hook, see https://github.com/NixOS/nixpkgs/issues/56943
@ -62,8 +69,10 @@ python3Packages.buildPythonApplication rec {
substituteInPlace build-aux/meson/postinstall.py \ substituteInPlace build-aux/meson/postinstall.py \
--replace "'update-desktop-database'" "'${desktop-file-utils}/bin/update-desktop-database'" --replace "'update-desktop-database'" "'${desktop-file-utils}/bin/update-desktop-database'"
substituteInPlace src/runner.py \ substituteInPlace src/runner.py \
--replace " {runner}" " ${steam-run-native}/bin/steam-run {runner}" \ --replace " {runner}" " ${steam-run}/bin/steam-run {runner}" \
--replace " {dxvk_setup}" " ${steam-run-native}/bin/steam-run {dxvk_setup}" --replace " {dxvk_setup}" " ${steam-run}/bin/steam-run {dxvk_setup}"
substituteInPlace src/runner_utilities.py \
--replace " {runner}" " ${steam-run}/bin/steam-run {runner}" \
''; '';
preFixup = '' preFixup = ''

View File

@ -1,4 +1,4 @@
{ lib, fetchurl, python27Packages, python36Packages, wmctrl, { lib, fetchurl, python27Packages, python3Packages, wmctrl,
qtbase, mkDerivationWith }: qtbase, mkDerivationWith }:
{ {
@ -24,9 +24,9 @@
]; ];
}; };
dev = with python36Packages; mkDerivationWith buildPythonPackage rec { dev = with python3Packages; mkDerivationWith buildPythonPackage rec {
pname = "plover"; pname = "plover";
version = "4.0.0.dev8"; version = "4.0.0.dev10";
meta = with lib; { meta = with lib; {
description = "OpenSteno Plover stenography software"; description = "OpenSteno Plover stenography software";
@ -36,7 +36,7 @@
src = fetchurl { src = fetchurl {
url = "https://github.com/openstenoproject/plover/archive/v${version}.tar.gz"; url = "https://github.com/openstenoproject/plover/archive/v${version}.tar.gz";
sha256 = "1wxkmik1zyw5gqig5r0cas5v6f5408fbnximzw610rdisqy09rxp"; sha256 = "sha256-Eun+ZgmOIjYw6FS/2OGoBvYh52U/Ue0+NtIqrvV2Tqc=";
}; };
# I'm not sure why we don't find PyQt5 here but there's a similar # I'm not sure why we don't find PyQt5 here but there's a similar

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub { stdenv, lib, fetchFromGitHub
, python37Packages , python3Packages
, fehSupport ? false, feh , fehSupport ? false, feh
, imagemagickSupport ? true, imagemagick , imagemagickSupport ? true, imagemagick
, intltool , intltool
@ -13,7 +13,7 @@
, makeWrapper , makeWrapper
}: }:
with python37Packages; with python3Packages;
buildPythonApplication rec { buildPythonApplication rec {
pname = "variety"; pname = "variety";

View File

@ -32,8 +32,7 @@
, openssl , openssl
, pango , pango
, procps , procps
, python37 , python3
, python37Packages
, stdenv , stdenv
, systemd , systemd
, xdg-utils , xdg-utils
@ -101,8 +100,8 @@ stdenv.mkDerivation rec {
dontBuild = true; dontBuild = true;
buildInputs = [ buildInputs = [
python37 python3
python37Packages.dbus-python python3.pkgs.dbus-python
]; ];
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1,22 +1,37 @@
{ buildPythonApplication, fetchFromGitHub, isPy27, pytest, testfixtures, lib }: { lib
, buildPythonApplication
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, testfixtures
}:
buildPythonApplication rec { buildPythonApplication rec {
pname = "bump2version"; pname = "bump2version";
version = "1.0.0"; version = "1.0.1";
disabled = isPy27;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "c4urself"; owner = "c4urself";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "v${version}";
sha256 = "10p7rg569rk3qvzs5kjj17894bqlsg3ihhbln6ciwwfhkfq1kpja"; sha256 = "sha256-j6HKi3jTwSgGBrA8PCJJNg+yQqRMo1aqaLgPGf4KAKU=";
}; };
checkInputs = [ pytest testfixtures ]; checkInputs = [
# X's in pytest are git tests which won't run in sandbox pytestCheckHook
checkPhase = '' testfixtures
pytest tests/ -k 'not usage_string_fork' ];
'';
disabledTests = [
# X's in pytest are git tests which won't run in sandbox
"usage_string_fork"
"test_usage_string"
"test_defaults_in_usage_with_config"
];
pythonImportsCheck = [ "bumpversion" ];
meta = with lib; { meta = with lib; {
description = "Version-bump your software with a single command"; description = "Version-bump your software with a single command";

View File

@ -83,7 +83,7 @@ stdenv.mkDerivation {
patchelf --set-rpath "$(patchelf --print-rpath $out/lib/libblas${canonicalExtension}):${lib.getLib blasProvider}/lib" $out/lib/libblas${canonicalExtension} patchelf --set-rpath "$(patchelf --print-rpath $out/lib/libblas${canonicalExtension}):${lib.getLib blasProvider}/lib" $out/lib/libblas${canonicalExtension}
'' else if stdenv.hostPlatform.isDarwin then '' '' else if stdenv.hostPlatform.isDarwin then ''
install_name_tool \ install_name_tool \
-id libblas${canonicalExtension} \ -id $out/lib/libblas${canonicalExtension} \
-add_rpath ${lib.getLib blasProvider}/lib \ -add_rpath ${lib.getLib blasProvider}/lib \
$out/lib/libblas${canonicalExtension} $out/lib/libblas${canonicalExtension}
'' else "") + '' '' else "") + ''

View File

@ -6,7 +6,7 @@ preFixupHooks+=(_moveToShare)
_moveToShare() { _moveToShare() {
forceShare=${forceShare:=man doc info} forceShare=${forceShare:=man doc info}
if [ -z "$forceShare" -o -z "$out" ]; then return; fi if [[ -z "$out" ]]; then return; fi
for d in $forceShare; do for d in $forceShare; do
if [ -d "$out/$d" ]; then if [ -d "$out/$d" ]; then

View File

@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
pname = "shared-mime-info"; pname = "shared-mime-info";
version = "2.1"; version = "2.1";
outputs = [ "out" "dev" ];
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.freedesktop.org"; domain = "gitlab.freedesktop.org";
owner = "xdg"; owner = "xdg";

View File

@ -116,18 +116,18 @@ in rec {
}; };
vala_0_48 = generic { vala_0_48 = generic {
version = "0.48.18"; version = "0.48.19";
sha256 = "1pbz4nyrrf9wp8rp953sczx545s4g0h5mars9ynkn788dzs2h3wy"; sha256 = "sha256-gLdlijfZhE/NG0Mdr8WATeYWpYGW5PHxGeWyrraLSgE=";
}; };
vala_0_50 = generic { vala_0_50 = generic {
version = "0.50.9"; version = "0.50.10";
sha256 = "0w5ngs90rq7vy21nqfq8drqyb33kxm17j161qvakwpsbjsidv1mn"; sha256 = "sha256-vnIf8/AYHqttM+zKzygfZvMI+qHl5VTwj99nFZpFlRU=";
}; };
vala_0_52 = generic { vala_0_52 = generic {
version = "0.52.4"; version = "0.52.5";
sha256 = "0cfz3xshc9azxx4fn25x9gadnph6jvf1r2wzd7p5krk0a4755ppc"; sha256 = "sha256-hKG7MSs+Xcrkt7JcRVmNN14stpIzzvtZoV0jUMdr3ZE=";
}; };
vala = vala_0_52; vala = vala_0_52;

View File

@ -23,7 +23,8 @@ in buildFHSUserEnv {
name = "platformio"; name = "platformio";
targetPkgs = pio-pkgs; targetPkgs = pio-pkgs;
multiPkgs = pio-pkgs; # disabled temporarily because fastdiff no longer support 32bit
# multiPkgs = pio-pkgs;
meta = with lib; { meta = with lib; {
description = "An open source ecosystem for IoT development"; description = "An open source ecosystem for IoT development";

View File

@ -1,5 +1,6 @@
{ stdenv, lib, python3 { stdenv, lib, python3
, fetchFromGitHub , fetchFromGitHub
, fetchPypi
, git , git
, spdx-license-list-data , spdx-license-list-data
, version, src , version, src
@ -20,6 +21,15 @@ let
doCheck = false; doCheck = false;
}); });
ajsonrpc = super.ajsonrpc.overridePythonAttrs (oldAttrs: rec {
pname = "ajsonrpc";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-CgHCtW0gxZho7ZavvEaODNc+KbFW4sAsHtM2Xk5Cuaw=";
};
});
click = super.click.overridePythonAttrs (oldAttrs: rec { click = super.click.overridePythonAttrs (oldAttrs: rec {
version = "7.1.2"; version = "7.1.2";
src = oldAttrs.src.override { src = oldAttrs.src.override {
@ -28,6 +38,18 @@ let
}; };
}); });
starlette = super.starlette.overridePythonAttrs (oldAttrs: rec {
pname = "starlette";
version = "0.14.2";
src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "sha256-Ki5jTEr5w6CrGK6F60E9uvdUlGx8pxdHMpxHvj9D4js=";
};
doCheck = false;
});
uvicorn = super.uvicorn.overridePythonAttrs (oldAttrs: rec { uvicorn = super.uvicorn.overridePythonAttrs (oldAttrs: rec {
version = "0.13.2"; version = "0.13.2";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "zef"; pname = "zef";
version = "0.11.10"; version = "0.11.11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ugexe"; owner = "ugexe";
repo = "zef"; repo = "zef";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-snnvREM2RLssmE55Ea0Imcw12pmyD6+/11ZXmmUY36U="; sha256 = "sha256-IOConYPH+t84INXaHw8OVp0mLNucSDS2RT2AlZOUoEs=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -4,6 +4,8 @@ callPackage ./generic.nix (args // rec {
release = "8.5"; release = "8.5";
version = "${release}.18"; version = "${release}.18";
# Note: when updating, the hash in pkgs/development/libraries/tk/8.5.nix must also be updated!
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz"; url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz";
sha256 = "1jfkqp2fr0xh6xvaqx134hkfa5kh7agaqbxm6lhjbpvvc1xfaaq3"; sha256 = "1jfkqp2fr0xh6xvaqx134hkfa5kh7agaqbxm6lhjbpvvc1xfaaq3";

View File

@ -4,6 +4,8 @@ callPackage ./generic.nix (args // rec {
release = "8.6"; release = "8.6";
version = "${release}.11"; version = "${release}.11";
# Note: when updating, the hash in pkgs/development/libraries/tk/8.6.nix must also be updated!
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz"; url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz";
sha256 = "0n4211j80mxr6ql0xx52rig8r885rcbminfpjdb2qrw6hmk8c14c"; sha256 = "0n4211j80mxr6ql0xx52rig8r885rcbminfpjdb2qrw6hmk8c14c";

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, python37Packages }: { lib, stdenv, fetchFromGitHub, meson, ninja, python3Packages }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "unstable-2019-10-09"; version = "unstable-2019-10-09";
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
patchShebangs ci/isdir.py patchShebangs ci/isdir.py
''; '';
checkInputs = with python37Packages; [ cram ]; checkInputs = with python3Packages; [ cram ];
doCheck = true; doCheck = true;

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "c-blosc"; pname = "c-blosc";
version = "1.20.1"; version = "1.21.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Blosc"; owner = "Blosc";
repo = "c-blosc"; repo = "c-blosc";
rev = "v${version}"; rev = "v${version}";
sha256 = "0a3yrig78plzjbazfqcfrzqhnw17xd0dcayvp4z4kp415kgs2a3s"; sha256 = "sha256-B8SFOc1oGgU5AGAbkqe5oz045H08TnymNAbzz2oOKoo=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, boxfort, cmake, libcsptr, pkg-config, gettext { lib, stdenv, fetchFromGitHub, boxfort, cmake, libcsptr, pkg-config, gettext
, dyncall , nanomsg, python37Packages }: , dyncall , nanomsg, python3Packages }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.3.3"; version = "2.3.3";
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
nanomsg nanomsg
]; ];
checkInputs = with python37Packages; [ cram ]; checkInputs = with python3Packages; [ cram ];
cmakeFlags = [ "-DCTESTS=ON" ]; cmakeFlags = [ "-DCTESTS=ON" ];
doCheck = true; doCheck = true;

View File

@ -45,11 +45,11 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "glib"; pname = "glib";
version = "2.68.3"; version = "2.68.4";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0f1iprj7v0b5wn9njj39dkl25g6filfs7i4ybk20jq821k1a7qg7"; sha256 = "sha256-Yv0GHQinVJJhfmJac+LAXiWfgxrLuOH4ucgfI/eZOjs=";
}; };
patches = optionals stdenv.isDarwin [ patches = optionals stdenv.isDarwin [

View File

@ -42,7 +42,7 @@
let let
version = "2.33"; version = "2.33";
patchSuffix = "-49"; patchSuffix = "-50";
sha256 = "sha256-LiVWAA4QXb1X8Layoy/yzxc73k8Nhd/8z9i35RoGd/8="; sha256 = "sha256-LiVWAA4QXb1X8Layoy/yzxc73k8Nhd/8z9i35RoGd/8=";
in in
@ -61,7 +61,7 @@ stdenv.mkDerivation ({
[ [
/* No tarballs for stable upstream branch, only https://sourceware.org/git/glibc.git and using git would complicate bootstrapping. /* No tarballs for stable upstream branch, only https://sourceware.org/git/glibc.git and using git would complicate bootstrapping.
$ git fetch --all -p && git checkout origin/release/2.33/master && git describe $ git fetch --all -p && git checkout origin/release/2.33/master && git describe
glibc-2.33-49-g22d37364ae glibc-2.33-50-gc6cadbf83a
$ git show --minimal --reverse glibc-2.33.. | gzip -9n --rsyncable - > 2.33-master.patch.gz $ git show --minimal --reverse glibc-2.33.. | gzip -9n --rsyncable - > 2.33-master.patch.gz
To compare the archive contents zdiff can be used. To compare the archive contents zdiff can be used.

View File

@ -32,7 +32,8 @@ let
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "harfbuzz${optionalString withIcu "-icu"}-${version}"; pname = "harfbuzz${optionalString withIcu "-icu"}";
inherit version;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "harfbuzz"; owner = "harfbuzz";
@ -42,8 +43,7 @@ stdenv.mkDerivation {
}; };
postPatch = '' postPatch = ''
patchShebangs src/*.py patchShebangs src/*.py test
patchShebangs test
'' + lib.optionalString stdenv.isDarwin '' '' + lib.optionalString stdenv.isDarwin ''
# ApplicationServices.framework headers have cast-align warnings. # ApplicationServices.framework headers have cast-align warnings.
substituteInPlace src/hb.hh \ substituteInPlace src/hb.hh \

View File

@ -12,11 +12,11 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "imlib2"; pname = "imlib2";
version = "1.7.2"; version = "1.7.3";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/enlightenment/${pname}-${version}.tar.bz2"; url = "mirror://sourceforge/enlightenment/${pname}-${version}.tar.bz2";
sha256 = "sha256-Ul1OMYknRxveRSB4bcJVC1mriFM4SNstdcYPW05YIaE="; sha256 = "sha256-FY0LjCC8ESIa+ed6ZKEW/KcFGwPN6ixPMdMfRpOC+Zc=";
}; };
buildInputs = [ buildInputs = [

View File

@ -5,14 +5,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libglvnd"; pname = "libglvnd";
version = "1.3.3"; version = "1.3.4";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.freedesktop.org"; domain = "gitlab.freedesktop.org";
owner = "glvnd"; owner = "glvnd";
repo = "libglvnd"; repo = "libglvnd";
rev = "v${version}"; rev = "v${version}";
sha256 = "0gjk6m3gkdm12bmih2jflp0v5s1ibkixk7mrzrk0cj884m3hy1z6"; sha256 = "0phvgg2h3pcz3x39gaymwb37bnw1s26clq9wsj0zx398zmp3dwpk";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config python3 addOpenGLRunpath ]; nativeBuildInputs = [ autoreconfHook pkg-config python3 addOpenGLRunpath ];

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libssh"; pname = "libssh";
version = "0.8.9"; version = "0.9.6";
src = fetchurl { src = fetchurl {
url = "https://www.libssh.org/files/0.8/${pname}-${version}.tar.xz"; url = "https://www.libssh.org/files/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "09b8w9m5qiap8wbvz4613nglsynpk8hn0q9b929ny2y4l2fy2nc5"; sha256 = "sha256-hrz4hb2bgEZv4OBUU8WLh332GvqLqUeljDVtfw+rgps=";
}; };
postPatch = '' postPatch = ''

View File

@ -139,5 +139,9 @@ stdenv.mkDerivation rec {
platforms = with lib.platforms; linux; platforms = with lib.platforms; linux;
license = lib.licenses.asl20; license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ yuriaisaka ]; maintainers = with lib.maintainers; [ yuriaisaka ];
# fails to compile with
# error: invalid conversion from 'const char*' to 'char*'
# TODO: Remove usage of python2, protobuf overwrite
broken = true;
}; };
} }

View File

@ -4,7 +4,7 @@ callPackage ./generic.nix (args // {
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/tcl/tk${tcl.version}.1-src.tar.gz"; # TODO: remove '.1' for v8.6.10 or v8.7.x url = "mirror://sourceforge/tcl/tk${tcl.version}.1-src.tar.gz"; # TODO: remove '.1' for v8.6.10 or v8.7.x
sha256 = "1d7bfkxpacy33w5nahf73lkwxqpff44w1jplg7i2gmwgiaawvjwg"; sha256 = "1gh9k7l76qg9l0sb78ijw9xz4xl1af47aqbdifb6mjpf3cbsnv00";
}; };
patches = [ ./different-prefix-with-tcl.patch ] ++ lib.optionals stdenv.isDarwin [ ./Fix-bad-install_name-for-libtk8.6.dylib.patch ]; patches = [ ./different-prefix-with-tcl.patch ] ++ lib.optionals stdenv.isDarwin [ ./Fix-bad-install_name-for-libtk8.6.dylib.patch ];

View File

@ -12,8 +12,7 @@
}: }:
let let
excludedTests = [] excludedTests = [ "reimport_from_subinterpreter" ]
++ [ "reimport_from_subinterpreter" ]
# cython's testsuite is not working very well with libc++ # cython's testsuite is not working very well with libc++
# We are however optimistic about things outside of testsuite still working # We are however optimistic about things outside of testsuite still working
++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ] ++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ]
@ -26,19 +25,21 @@ let
in buildPythonPackage rec { in buildPythonPackage rec {
pname = "Cython"; pname = "Cython";
version = "0.29.22"; version = "0.29.24";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-32uDx6bR2WfqiaKQPkqTE3djSil0WWUuRVFzTEgZVAY="; sha256 = "sha256-zfBNB8NgCGDowuuq1Oj1KsP+shJFPBdkpJrAjIJ+hEM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
]; ];
checkInputs = [ checkInputs = [
gdb numpy ncurses gdb numpy ncurses
]; ];
buildInputs = [ glibcLocales ]; buildInputs = [ glibcLocales ];
LC_ALL = "en_US.UTF-8"; LC_ALL = "en_US.UTF-8";
@ -71,9 +72,7 @@ in buildPythonPackage rec {
# https://github.com/cython/cython/issues/2785 # https://github.com/cython/cython/issues/2785
# Temporary solution # Temporary solution
doCheck = false; doCheck = false;
# doCheck = !stdenv.isDarwin;
# doCheck = !stdenv.isDarwin;
meta = { meta = {
description = "An optimising static compiler for both the Python programming language and the extended Cython programming language"; description = "An optimising static compiler for both the Python programming language and the extended Cython programming language";

View File

@ -1,9 +1,11 @@
{ lib, buildPythonPackage, fetchPypi { lib
, buildPythonPackage
, fetchPypi
, cryptography , cryptography
, invoke , invoke
, mock , mock
, paramiko , paramiko
, pytest , pytestCheckHook
, pytest-relaxed , pytest-relaxed
}: }:
@ -23,20 +25,21 @@ buildPythonPackage rec {
''; '';
propagatedBuildInputs = [ invoke paramiko cryptography ]; propagatedBuildInputs = [ invoke paramiko cryptography ];
checkInputs = [ pytest mock pytest-relaxed ];
# requires pytest_relaxed, which doesnt have official support for pytest>=5 checkInputs = [ pytestCheckHook pytest-relaxed mock ];
# https://github.com/bitprophet/pytest-relaxed/issues/12
# ==================================== ERRORS ====================================
# ________________________ ERROR collecting test session _________________________
# Direct construction of SpecModule has been deprecated, please use SpecModule.from_parent
# See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
doCheck = false; doCheck = false;
checkPhase = ''
pytest tests
'';
pythonImportsCheck = [ "fabric" ]; pythonImportsCheck = [ "fabric" ];
meta = with lib; { meta = with lib; {
description = "Pythonic remote execution"; description = "Pythonic remote execution";
homepage = "https://www.fabfile.org/"; homepage = "https://www.fabfile.org/";
license = licenses.bsd2; license = licenses.bsd2;
maintainers = [ maintainers.costrouc ]; maintainers = [ maintainers.costrouc ];
}; };
} }

View File

@ -9,11 +9,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "Mako"; pname = "Mako";
version = "1.1.4"; version = "1.1.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "17831f0b7087c313c0ffae2bcbbd3c1d5ba9eeac9c38f2eb7b50e8c99fe9d5ab"; sha256 = "169fa52af22a91900d852e937400e79f535496191c63712e3b9fda5a9bed6fc3";
}; };
propagatedBuildInputs = [ markupsafe ]; propagatedBuildInputs = [ markupsafe ];

View File

@ -6,11 +6,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "Pygments"; pname = "Pygments";
version = "2.9.0"; version = "2.10.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "a18f47b506a429f6f4b9df81bb02beab9ca21d0a5fee38ed15aef65f0545519f"; sha256 = "f398865f7eb6874156579fdf36bc840a03cab64d1cde9e93d68f46a425ec52c6";
}; };
propagatedBuildInputs = [ docutils ]; propagatedBuildInputs = [ docutils ];

View File

@ -3,11 +3,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ROPGadget"; pname = "ROPGadget";
version = "6.5"; version = "6.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "4c0e56f2ba0aef13b2c8ca286aad663525b92020b11bacd16791f5236247905c"; sha256 = "dc61186e0114ec67ec7ce374df8fd2ddc2a7cba129a1242338e900a7483fba22";
}; };
propagatedBuildInputs = [ capstone ]; propagatedBuildInputs = [ capstone ];

View File

@ -1,27 +1,35 @@
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, fusepy, fuse { lib
, openssl }: , buildPythonPackage
, fetchPypi
, setuptools-scm
, fusepy
, fuse
, openssl
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "acme-tiny"; pname = "acme-tiny";
version = "4.1.0"; version = "4.1.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0jmg525n4n98hwy3hf303jbnq23z79sqwgliji9j7qcnph47gkgq"; sha256 = "b7050b9428d45319e14ab9ea77f0ff4eb40451e5a68325d4c5358a87cff0e793";
}; };
patchPhase = '' patchPhase = ''
substituteInPlace acme_tiny.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"' substituteInPlace acme_tiny.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
substituteInPlace tests/monkey.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
substituteInPlace tests/test_module.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"' substituteInPlace tests/test_module.py --replace '"openssl"' '"${openssl.bin}/bin/openssl"'
substituteInPlace tests/monkey.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf substituteInPlace tests/utils.py --replace /etc/ssl/openssl.cnf ${openssl.out}/etc/ssl/openssl.cnf
''; '';
buildInputs = [ setuptools-scm ]; buildInputs = [ setuptools-scm ];
checkInputs = [ fusepy fuse ]; checkInputs = [ fusepy fuse ];
doCheck = false; # seems to hang, not sure doCheck = false; # seems to hang, not sure
pythonImportsCheck = [ "acme_tiny" ];
meta = with lib; { meta = with lib; {
description = "A tiny script to issue and renew TLS certs from Let's Encrypt"; description = "A tiny script to issue and renew TLS certs from Let's Encrypt";
homepage = "https://github.com/diafygi/acme-tiny"; homepage = "https://github.com/diafygi/acme-tiny";

View File

@ -1,32 +1,57 @@
{ lib, buildPythonPackage, fetchPypi { lib
, pytest, numpy, scipy, matplotlib, pandas, tabulate, pythonOlder }: , buildPythonPackage
, fetchPypi
, matplotlib
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, scipy
, tabulate
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "acoustics"; pname = "acoustics";
version = "0.2.4.post0"; version = "0.2.4.post0";
checkInputs = [ pytest ]; disabled = pythonOlder "3.6";
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d"; sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d";
}; };
checkPhase = '' propagatedBuildInputs = [
matplotlib
numpy
pandas
scipy
tabulate
];
checkInputs = [
pytestCheckHook
];
preCheck = ''
export HOME=$TMPDIR export HOME=$TMPDIR
mkdir -p $HOME/.matplotlib mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
pushd tests
py.test -Wignore::DeprecationWarning ./.
popd
''; '';
disabled = pythonOlder "3.6"; pytestFlagsArray = [
"-Wignore::DeprecationWarning"
];
disabledTestPaths = [
# All tests fail with TypeError
"tests/test_aio.py"
];
pythonImportsCheck = [ "acoustics" ];
meta = with lib; { meta = with lib; {
description = "A package for acousticians"; description = "Python package for acousticians";
maintainers = with maintainers; [ fridh ]; maintainers = with maintainers; [ fridh ];
license = with licenses; [ bsd3 ]; license = with licenses; [ bsd3 ];
homepage = "https://github.com/python-acoustics/python-acoustics"; homepage = "https://github.com/python-acoustics/python-acoustics";

View File

@ -4,11 +4,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "agate-excel"; pname = "agate-excel";
version = "0.2.3"; version = "0.2.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "8f255ef2c87c436b7132049e1dd86c8e08bf82d8c773aea86f3069b461a17d52"; sha256 = "62315708433108772f7f610ca769996b468a4ead380076dbaf6ffe262831b153";
}; };
propagatedBuildInputs = [ agate openpyxl xlrd ]; propagatedBuildInputs = [ agate openpyxl xlrd ];

View File

@ -10,12 +10,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiobotocore"; pname = "aiobotocore";
version = "1.3.1"; version = "1.4.1";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "8ecee55346651e0f4cbda883e3e16cfe11460b8d7adcc08d0017cbb867636ae1"; sha256 = "09f06723d1d69c6d407d9a356ca65ab42a5b7b73a45be4b1ed0ed1a6b6057a9f";
}; };
# relax version constraints: aiobotocore works with newer botocore versions # relax version constraints: aiobotocore works with newer botocore versions

View File

@ -7,7 +7,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioprocessing"; pname = "aioprocessing";
version = "2.0.0"; version = "2.0.0";
disabled = pythonOlder "3.4"; disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;

View File

@ -1,20 +1,27 @@
{ lib, buildPythonPackage, fetchPypi { lib
, pkgs, async-timeout, hiredis, isPyPy, isPy27 , buildPythonPackage
, fetchPypi
, async-timeout
, typing-extensions
, hiredis
, isPyPy
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aioredis"; pname = "aioredis";
version = "1.3.1"; version = "2.0.0";
disabled = isPy27; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0fi7jd5hlx8cnv1m97kv9hc4ih4l8v15wzkqwsp73is4n0qazy0m"; sha256 = "3a2de4b614e6a5f8e104238924294dc4e811aefbe17ddf52c04a93cbf06e67db";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
async-timeout async-timeout
typing-extensions
] ++ lib.optional (!isPyPy) hiredis; ] ++ lib.optional (!isPyPy) hiredis;
# Wants to run redis-server, hardcoded FHS paths, too much trouble. # Wants to run redis-server, hardcoded FHS paths, too much trouble.

View File

@ -2,13 +2,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ajsonrpc"; pname = "ajsonrpc";
version = "1.1.0"; version = "1.2.0";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1b5r8975wdnk3qnc1qjnn4lkxmqcir3brbwnxml9ii90dnsw408a"; sha256 = "791bac18f0bf0dee109194644f151cf8b7ff529c4b8d6239ac48104a3251a19f";
}; };
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];

View File

@ -1,26 +1,56 @@
{ lib, buildPythonPackage, fetchPypi { lib
, pytest, pytest-cov, mock, coverage, setuptools , buildPythonPackage
, Mako, sqlalchemy, python-editor, python-dateutil , fetchPypi
, pythonOlder
, Mako
, python-dateutil
, sqlalchemy
, importlib-metadata
, importlib-resources
, pytest-xdist
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "alembic"; pname = "alembic";
version = "1.6.5"; version = "1.7.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "a21fedebb3fb8f6bbbba51a11114f08c78709377051384c9c5ead5705ee93a51"; sha256 = "aea964d3dcc9c205b8759e4e9c1c3935ea3afeee259bffd7ed8414f8085140fb";
}; };
buildInputs = [ pytest pytest-cov mock coverage ]; propagatedBuildInputs = [
propagatedBuildInputs = [ Mako sqlalchemy python-editor python-dateutil setuptools ]; Mako
python-dateutil
sqlalchemy
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
# no traditional test suite pythonImportsCheck = [
doCheck = false; "alembic"
];
checkInputs = [
pytestCheckHook
pytest-xdist
];
pytestFlagsArray = [
"--numprocesses" "auto"
];
meta = with lib; { meta = with lib; {
homepage = "https://bitbucket.org/zzzeek/alembic"; homepage = "https://bitbucket.org/zzzeek/alembic";
description = "A database migration tool for SQLAlchemy"; description = "A database migration tool for SQLAlchemy";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ];
}; };
} }

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools-scm, toml }: { lib, buildPythonPackage, fetchPypi, isPy3k, six, mock, pytestCheckHook, setuptools, setuptools-scm }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansi2html"; pname = "ansi2html";
@ -11,7 +11,7 @@ buildPythonPackage rec {
sha256 = "0f124ea7efcf3f24f1f9398e527e688c9ae6eab26b0b84e1299ef7f94d92c596"; sha256 = "0f124ea7efcf3f24f1f9398e527e688c9ae6eab26b0b84e1299ef7f94d92c596";
}; };
nativeBuildInputs = [ setuptools-scm toml ]; nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ six setuptools ]; propagatedBuildInputs = [ six setuptools ];
preCheck = "export PATH=$PATH:$out/bin"; preCheck = "export PATH=$PATH:$out/bin";

View File

@ -14,11 +14,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansible-runner"; pname = "ansible-runner";
version = "1.4.7"; version = "2.0.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1bb56f9061c3238d89ec8871bc842f5b8d0e868f892347e8455c98d5b6fa58a1"; sha256 = "c02b690803ec0be4453411c53743cd3fdca1dfc66dfa075794e14e717c5b61b3";
}; };
checkInputs = [ pytest mock ]; checkInputs = [ pytest mock ];

View File

@ -12,12 +12,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "apispec"; pname = "apispec";
version = "4.7.1"; version = "5.1.0";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1yf71c9nq1rfb5pkgmfw486fvywi1bjnmgwxcly7y3basf3980kr"; sha256 = "9ac7a7a6000339a02d05404ef561e013375f170de01d8b238782f8fb83082b5b";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -12,13 +12,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "arrow"; pname = "arrow";
version = "1.1.0"; version = "1.1.1";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1n2vzyrirfj7fp0zn6iipm3i8bch0g4m14z02nrvlyjiyfmi7zmq"; sha256 = "dee7602f6c60e3ec510095b5e301441bc56288cb8f51def14dcb3079f623823a";
}; };
postPatch = '' postPatch = ''

View File

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, future
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "asn1";
version = "2.4.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "andrivet";
repo = "python-asn1";
rev = "v${version}";
sha256 = "0g2d5cr1pxsm5ackba7padf7gvlgrgv807kh0312s5axjd2cww2l";
};
propagatedBuildInputs = [
future
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "enum-compat" ""
'';
pytestFlagsArray = [ "tests/test_asn1.py" ];
pythonImportsCheck = [ "asn1" ];
meta = with lib; {
description = "Python ASN.1 encoder and decoder";
homepage = "https://github.com/andrivet/python-asn1";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "astroid"; pname = "astroid";
version = "2.5.6"; # Check whether the version is compatible with pylint version = "2.7.3"; # Check whether the version is compatible with pylint
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "PyCQA"; owner = "PyCQA";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-/nWXzuWkerUDvFT/tJTZuhfju46MAM0cwosVH9BXoY8="; sha256 = "08qxw58cdyglkni6ahyil4cmnb48zz0wr4v05gzqk4r5ifs4gl2m";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION=version; SETUPTOOLS_SCM_PRETEND_VERSION=version;

View File

@ -1,29 +1,35 @@
{ lib, fetchPypi, fetchpatch, buildPythonPackage, { lib
setuptools-scm, toml, six, astroid, pytest , fetchPypi
, buildPythonPackage
, setuptools-scm
, six
, astroid
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "asttokens"; pname = "asttokens";
version = "2.0.4"; version = "2.0.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0a2ixiz04aw4p0aivxh47k3fa9ql804l3y5iv5gcih9aizi5fbm4"; sha256 = "sha256-mlTBFPAsepSA1WVQkyVGo/H+cdigLxvHzNDuPuNc9NU=";
}; };
patches = [ nativeBuildInputs = [
# Fixes compatibility with python 3.9, will be included in the next release setuptools-scm
# after 2.0.4
(fetchpatch {
url = "https://github.com/gristlabs/asttokens/commit/d8ff80ee7d2e64c5e1daf50cc38eb99663f1b1ac.patch";
sha256 = "19y8n8vpzr2ijldbq5rh19sf0vz5azqqpkb9bx0ljjg98h6k7kjj";
excludes = [ "setup.cfg" ];
})
]; ];
propagatedBuildInputs = [ setuptools-scm toml six astroid ]; propagatedBuildInputs = [
six
astroid
];
checkInputs = [ pytest ]; checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "asttokens" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/gristlabs/asttokens"; homepage = "https://github.com/gristlabs/asttokens";

View File

@ -9,11 +9,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "auth0-python"; pname = "auth0-python";
version = "3.16.2"; version = "3.17.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-Slpwml1GDdxAZ4P6Vn2brrupRofiOHvmQF26l0gtTJM="; sha256 = "7b21bf91859ea56ac3b665efe5e73340c65dfd30de01081ff334a18a35a188a6";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -15,14 +15,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "authcaptureproxy"; pname = "authcaptureproxy";
version = "1.0.1"; version = "1.0.2";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alandtse"; owner = "alandtse";
repo = "auth_capture_proxy"; repo = "auth_capture_proxy";
rev = "v${version}"; rev = "v${version}";
sha256 = "1fbrmh6qa3dm3q3zdxaa0fls94wardbcvnjgwxk686wpjgs1xrs4"; sha256 = "1cg63qhf823nf785kyl96r7vyxfl6dlbwsmhcpny8vb65pl9gng5";
}; };
postPatch = '' postPatch = ''

View File

@ -2,7 +2,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "awscrt"; pname = "awscrt";
version = "0.11.24"; version = "0.12.0";
buildInputs = lib.optionals stdenv.isDarwin buildInputs = lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [ CoreFoundation Security ]); (with darwin.apple_sdk.frameworks; [ CoreFoundation Security ]);
@ -23,7 +23,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "b8aa68bca404bf0085be0570eff5b542d01f7e8e3c0f9b0859abfe5e070162ff"; sha256 = "65fa09ce78902319392bbb62991ddd3b33cebc0e3bbc81ad2c176072ab40de52";
}; };
meta = with lib; { meta = with lib; {

View File

@ -15,14 +15,14 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "1.16.0"; version = "1.17.0";
pname = "azure-core"; pname = "azure-core";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "b1c7d2e01846074f258c8b2e592239aef836a2b1c27d8d0e8491a2c7e2906ef4"; sha256 = "25407390dde142d3e41ecf78bb18cedda9b7f7a0af558d082dec711c4a334f46";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -6,23 +6,25 @@
, msrest , msrest
, msrestazure , msrestazure
, azure-common , azure-common
, azure-mgmt-core
, azure-mgmt-nspkg , azure-mgmt-nspkg
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-mgmt-iothubprovisioningservices"; pname = "azure-mgmt-iothubprovisioningservices";
version = "0.2.0"; version = "1.0.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "8c37acfd1c33aba845f2e0302ef7266cad31cba503cc990a48684659acb7b91d"; sha256 = "e5871b03488b5ae6dfc441cdbda40cb39c000635ee57c513053792b3c15826a9";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
msrest msrest
msrestazure msrestazure
azure-common azure-common
azure-mgmt-core
azure-mgmt-nspkg azure-mgmt-nspkg
]; ];

View File

@ -5,13 +5,13 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.3.0"; version = "2.1.0";
pname = "azure-mgmt-apimanagement"; pname = "azure-mgmt-apimanagement";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ec363581ef950945447e45d259441cb690a4b790057c7b8470ad8a6eeca04feb"; sha256 = "58296bd45e876df33f93f3a41c866c36476f5f3bd46818e8891308794f041c94";
extension = "zip"; extension = "zip";
}; };

View File

@ -11,12 +11,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-mgmt-recoveryservices"; pname = "azure-mgmt-recoveryservices";
version = "1.0.0"; version = "2.0.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "ab87108c0d5ce27d80583b4bfad966ad07049dcbc0e9ac28c64aa6bbdae64e22"; sha256 = "a7d3137d5c460f50ac2d44061d60a70b4f2779d4ca844b77419b5725e65e09be";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, setuptools-scm, importlib-metadata }:
buildPythonPackage rec {
pname = "backports-entry-points-selectable";
version = "1.1.0";
src = fetchPypi {
pname = "backports.entry_points_selectable";
inherit version;
sha256 = "988468260ec1c196dab6ae1149260e2f5472c9110334e5d51adcb77867361f6a";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
# no tests
doCheck = false;
pythonImportsCheck = [ "backports.entry_points_selectable" ];
meta = with lib; {
description = "Compatibility shim providing selectable entry points for older implementations";
homepage = "https://github.com/jaraco/backports.entry_points_selectable";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -46,10 +46,9 @@ buildPythonPackage rec {
]; ];
disabledTests = [ disabledTests = [
# RuntimeError: coroutine 'test_remigrate_forcibly_downgraded_v4' was never awaited # AssertionError: assert 65534 is None
#"test_remigrate_forcibly_downgraded_v4" # https://github.com/zigpy/bellows/issues/436
# RuntimeError: Event loop is closed "test_startup_nwk_params"
"test_thread_already_stopped"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [

View File

@ -6,11 +6,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "beniget"; pname = "beniget";
version = "0.4.0"; version = "0.4.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "72bbd47b1ae93690f5fb2ad3902ce1ae61dcd868ce6cfbf33e9bad71f9ed8749"; sha256 = "75554b3b8ad0553ce2f607627dad3d95c60c441189875b98e097528f8e23ac0c";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -2,11 +2,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "block-io"; pname = "block-io";
version = "1.1.15"; version = "2.0.4";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "97ea037a67af72037cb08cec7e0a9f7866ecdfaa1a8c8ebcc0f4b9359a1516d7"; sha256 = "817c9cd2ff76659caca4bb3d6758d5782a85f8c0ea13b08c4e14f0c2a8b7586d";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -34,11 +34,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bokeh"; pname = "bokeh";
# update together with panel which is not straightforward # update together with panel which is not straightforward
version = "2.3.2"; version = "2.3.3";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "fcc0d0a3129ae457cdb0a4f503843a4d13d1f5d07af7748424ea8c7ddfc321f1"; sha256 = "a5fdcc181835561447fcc5a371300973fce4114692d5853addec284d1cdeb677";
}; };
patches = [ patches = [

View File

@ -13,11 +13,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "boto3"; pname = "boto3";
version = "1.17.97"; # N.B: if you change this, change botocore and awscli to a matching version version = "1.17.106"; # N.B: if you change this, change botocore and awscli to a matching version
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0ab5afc51461c30f27aebef944211d16f47697b98ff8d2e2f6e49e59584853bb"; sha256 = "sha256-wHQDeLkTylP1/A26kemadSxaMK57WKDF5U4+KmjfJsU=";
}; };
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ]; propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];

View File

@ -13,11 +13,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "botocore"; pname = "botocore";
version = "1.20.97"; # N.B: if you change this, change boto3 and awscli to a matching version version = "1.20.106"; # N.B: if you change this, change boto3 and awscli to a matching version
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "f7e119cf3e0f4a36100f0e983583afa91a84fb27c479a1716820aee4f2e190ab"; sha256 = "sha256-bVyYOAix0AQ39W0MCEEr2C2fgBL9t35VX5cneh/U1d8=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -6,11 +6,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "braintree"; pname = "braintree";
version = "4.10.0"; version = "4.12.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "f934a329c7a2b3f7058d5c733cc95da694f66afb5a789162ec701ba4d26a0d90"; sha256 = "946abd50fe2843eec586ac3cec285d27dfae0cc5a43a64b505e8a2800b8a74a6";
}; };
propagatedBuildInputs = [ requests ]; propagatedBuildInputs = [ requests ];

View File

@ -1,4 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest }: { lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "brotli"; pname = "brotli";
@ -16,15 +19,18 @@ buildPythonPackage rec {
dontConfigure = true; dontConfigure = true;
checkInputs = [ pytest ]; checkInputs = [
pytestCheckHook
];
checkPhase = '' pytestFlagsArray = [
pytest python/tests "python/tests"
''; ];
meta = { meta = with lib; {
homepage = "https://github.com/google/brotli"; homepage = "https://github.com/google/brotli";
description = "Generic-purpose lossless compression algorithm"; description = "Generic-purpose lossless compression algorithm";
license = lib.licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ];
}; };
} }

View File

@ -1,5 +1,11 @@
{ lib, buildPythonPackage, fetchPypi { lib
, frozendict, simplejson, six, isPy27 , buildPythonPackage
, fetchPypi
, frozendict
, simplejson
, six
, isPy27
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -13,7 +19,15 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
frozendict simplejson six frozendict
simplejson
six
];
checkInputs = [ pytestCheckHook ];
disabledTests = [
"test_frozen_dict"
]; ];
meta = with lib; { meta = with lib; {

View File

@ -8,7 +8,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "casbin"; pname = "casbin";
version = "0.20.0"; version = "1.7.0";
disabled = isPy27; disabled = isPy27;
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = pname; owner = pname;
repo = "pycasbin"; repo = "pycasbin";
rev = "v${version}"; rev = "v${version}";
sha256 = "1j7kd4rvf4myg4x4sm4njlhzkxm2m3cva9wmp9vx0nnpfdlyb67f"; sha256 = "1qwns8ph8w5bb26hzkk1dadm2bjq74g65wm6g971llb5jdq9a8z9";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -2,11 +2,11 @@
if isPyPy then null else buildPythonPackage rec { if isPyPy then null else buildPythonPackage rec {
pname = "cffi"; pname = "cffi";
version = "1.14.5"; version = "1.14.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "fd78e5fee591709f32ef6edb9a015b4aa1a5022598e36227500c8f4e02328d9c"; sha256 = "c9a875ce9d7fe32887784274dd533c57909b7b1dcadcc128a2ac21331a9765dd";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View File

@ -21,13 +21,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cfn-lint"; pname = "cfn-lint";
version = "0.53.0"; version = "0.53.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aws-cloudformation"; owner = "aws-cloudformation";
repo = "cfn-python-lint"; repo = "cfn-python-lint";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-UHcbbBoByoxW7+AUxu5mQmcvC3irHPQvBv4CbBXPTNo="; sha256 = "1wj2pzrrmrdf3mkhnz1qx41rshvfpgwlrxrb80d63r098pnq6df8";
}; };
postPatch = '' postPatch = ''

View File

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "charset-normalizer";
version = "2.0.1";
src = fetchFromGitHub {
owner = "Ousret";
repo = "charset_normalizer";
rev = version;
sha256 = "04rnyrqay11kma9pzagi1mzhc0sq37ggpv39kad2d4ynm35v2hfq";
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=charset_normalizer --cov-report=term-missing" ""
'';
pythonImportsCheck = [ "charset_normalizer" ];
meta = with lib; {
description = "Python module for encoding and language detection";
homepage = "https://charset-normalizer.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -10,14 +10,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "chart-studio"; pname = "chart-studio";
version = "4.14.3"; version = "5.3.0";
# chart-studio was split from plotly # chart-studio was split from plotly
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "plotly"; owner = "plotly";
repo = "plotly.py"; repo = "plotly.py";
rev = "v${version}"; rev = "v${version}";
sha256 = "1yrrcn9032r3l8y2cc1wvpydg4rkqvgkpyv1s7znby5mrxa1rjma"; sha256 = "059rq278r5zb2sngby7jzh8kd9c48sd82b6b7s5bbrmzj42sds3n";
}; };
sourceRoot = "source/packages/python/chart-studio"; sourceRoot = "source/packages/python/chart-studio";

View File

@ -16,11 +16,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cliff"; pname = "cliff";
version = "3.8.0"; version = "3.9.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "8dd215d0a84c9a3ab2fa2aa700849f4e7b786639f66caa0ad4108c85dca95a7c"; sha256 = "95363e9b43e2ec9599e33b5aea27a6953beda2d0673557916fa4f5796857daa3";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,21 +1,58 @@
{ lib, stdenv, fetchPypi, buildPythonPackage, pythonOlder, isPy3k { lib
, pyperclip, six, pyparsing, vim, wcwidth, colorama, attrs , stdenv
, contextlib2 ? null, typing ? null, setuptools-scm , attrs
, pytest, mock ? null, pytest-mock , buildPythonPackage
, which, glibcLocales , colorama
, fetchPypi
, glibcLocales
, importlib-metadata
, pyperclip
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools-scm
, typing-extensions
, vim
, wcwidth
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cmd2"; pname = "cmd2";
version = "1.5.0"; version = "2.1.2";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "701a8c9975c4abc45e5d13906ab149f959f812869106347323a3f89ac0e82a62"; sha256 = "25dbb2e9847aaa686a8a21e84e3d101db8b79f5cb992e044fc54210ab8c0ad41";
}; };
LC_ALL="en_US.UTF-8"; LC_ALL = "en_US.UTF-8";
postPatch = lib.optionalString stdenv.isDarwin '' buildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
attrs
colorama
pyperclip
wcwidth
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
importlib-metadata
];
checkInputs = [
pytestCheckHook
glibcLocales
pytest-mock
vim
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
'' + lib.optionalString stdenv.isDarwin ''
# Fake the impure dependencies pbpaste and pbcopy # Fake the impure dependencies pbpaste and pbcopy
mkdir bin mkdir bin
echo '#!${stdenv.shell}' > bin/pbpaste echo '#!${stdenv.shell}' > bin/pbpaste
@ -24,33 +61,9 @@ buildPythonPackage rec {
export PATH=$(realpath bin):$PATH export PATH=$(realpath bin):$PATH
''; '';
disabled = !isPy3k;
buildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
colorama
pyperclip
six
pyparsing
wcwidth
attrs
]
++ lib.optionals (pythonOlder "3.5") [contextlib2 typing]
;
doCheck = !stdenv.isDarwin; doCheck = !stdenv.isDarwin;
# pytest-cov
# argcomplete will generate errors pythonImportsCheck = [ "cmd2" ];
checkInputs= [ pytest mock which vim glibcLocales pytest-mock ]
++ lib.optional (pythonOlder "3.6") [ mock ];
checkPhase = ''
# test_path_completion_user_expansion might be fixed in the next release
py.test -k 'not test_path_completion_user_expansion'
'';
meta = with lib; { meta = with lib; {
description = "Enhancements for standard library's cmd module"; description = "Enhancements for standard library's cmd module";

View File

@ -6,11 +6,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "colorlog"; pname = "colorlog";
version = "5.0.1"; version = "6.4.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-8XwBOgaWKwL0RJ7gfP2+ayh98p78LJoVFbSjdvTliOo="; sha256 = "af99440154a01f27c09256760ea3477982bf782721feaa345904e806879df4d8";
}; };
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];

View File

@ -14,11 +14,11 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "commoncode"; pname = "commoncode";
version = "21.6.11"; version = "21.8.27";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "d6c8c985746a541913d5bb534c770f2422e5b4ac7a4ef765abc05c287a40ff4b"; sha256 = "789ee1798cd74ab4516d2e547473d69717d3b2ed7ee180ab2746e0bdfd0d88a4";
}; };
dontConfigure = true; dontConfigure = true;

View File

@ -7,13 +7,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "configargparse"; pname = "configargparse";
version = "1.4.1"; version = "1.5.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bw2"; owner = "bw2";
repo = "ConfigArgParse"; repo = "ConfigArgParse";
rev = "v${version}"; rev = version;
sha256 = "sha256-hzhjrdrXxjksvbHlTnQVsT350g0yuG1F21fElv6bLSA="; sha256 = "1hgd0gfxycfnlddwsr8sl6ybxzp8rqhin16vphbl8q32wp5hhjd2";
}; };
checkInputs = [ checkInputs = [

View File

@ -1,6 +1,4 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, setuptools-scm { lib, stdenv, buildPythonPackage, fetchPypi, setuptools-scm }:
, toml
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "configparser"; pname = "configparser";
@ -14,7 +12,7 @@ buildPythonPackage rec {
# No tests available # No tests available
doCheck = false; doCheck = false;
nativeBuildInputs = [ setuptools-scm toml ]; nativeBuildInputs = [ setuptools-scm ];
preConfigure = '' preConfigure = ''
export LC_ALL=${if stdenv.isDarwin then "en_US" else "C"}.UTF-8 export LC_ALL=${if stdenv.isDarwin then "en_US" else "C"}.UTF-8

View File

@ -0,0 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
, unittest2
}:
buildPythonPackage rec {
pname = "contextlib2";
version = "0.6.0.post1";
src = fetchPypi {
inherit pname version;
sha256 = "01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e";
};
checkInputs = [ unittest2 ];
meta = {
description = "Backports and enhancements for the contextlib module";
homepage = "https://contextlib2.readthedocs.org/";
license = lib.licenses.psfl;
};
}

View File

@ -6,11 +6,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "contextlib2"; pname = "contextlib2";
version = "0.6.0.post1"; version = "21.6.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e"; sha256 = "ab1e2bfe1d01d968e1b7e8d9023bc51ef3509bba217bb730cee3827e1ee82869";
}; };
checkInputs = [ unittest2 ]; checkInputs = [ unittest2 ];

View File

@ -3,11 +3,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cryptacular"; pname = "cryptacular";
version = "1.5.5"; version = "1.6.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "fb4d48716e88e4d050255ff0f065f6d437caa358ceef16ba5840c95cece224f9"; sha256 = "7b529cb2b8a3c7e5be77921bf1ebc653d4d3a8f791375cc6f971b20db2404176";
}; };
buildInputs = [ coverage nose ]; buildInputs = [ coverage nose ];

View File

@ -23,18 +23,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cryptography"; pname = "cryptography";
version = "3.4.7"; # Also update the hash in vectors.nix version = "3.4.8"; # Also update the hash in vectors.nix
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "04x7bhjkglxpllad10821vxddlmxdkd3gjvp35iljmnj2s0xw41x"; sha256 = "072awar70cwfd2hnx0pvp1dkc7gw45mbm3wcyddvxz5frva5xk4l";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
sourceRoot = "${pname}-${version}/${cargoRoot}"; sourceRoot = "${pname}-${version}/${cargoRoot}";
name = "${pname}-${version}"; name = "${pname}-${version}";
sha256 = "1m6smky4nahwlp4hn6yzibrcxlbsw4nx162dsq48vlw8h1lgjl62"; sha256 = "01h511h6l4qvjxbaw662m1l84pb4wrhwxmnb3qj6ik13mx2m477m";
}; };
cargoRoot = "src/rust"; cargoRoot = "src/rust";

View File

@ -7,7 +7,7 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1hh4j88ywil3jf62ppj1blygmdirbqz86pynd9lqfijiaym3mb57"; sha256 = "1wl0ynh3lzhc6q59g8mybvijmnp195x7fjxlb3h3sgcraw14312c";
}; };
# No tests included # No tests included

View File

@ -7,12 +7,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cupy"; pname = "cupy";
version = "8.6.0"; version = "9.4.0";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "f3ed02ba18e38b4f3ed2c324fa08967e6714f59357ccb0b28badd9572e77500b"; sha256 = "4402bd33a051e82f6888dab088a8d657714ca6d1e945b513dcc513a95a435bd5";
}; };
preConfigure = '' preConfigure = ''

View File

@ -2,11 +2,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cx_Freeze"; pname = "cx_Freeze";
version = "6.6"; version = "6.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "c4af8ad3f7e7d71e291c1dec5d0fb26bbe92df834b098ed35434c901fbd6762f"; sha256 = "050f1dd133a04810bd7f38ac7ae3b290054acb2ff4f6e73f7a286266d153495d";
}; };
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";

View File

@ -6,11 +6,11 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cxxfilt"; pname = "cxxfilt";
version = "0.2.2"; version = "0.3.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ef6810e76d16c95c11b96371e2d8eefd1d270ec03f9bcd07590e8dcc2c69e92b"; sha256 = "7df6464ba5e8efbf0d8974c0b2c78b32546676f06059a83515dbdfa559b34214";
}; };
postPatch = let postPatch = let

View File

@ -8,12 +8,12 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.7.2"; version = "0.7.3";
pname = "dask-jobqueue"; pname = "dask-jobqueue";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1767f4146b2663d9d2eaef62b882a86e1df0bccdb8ae68ae3e5e546aa6796d35"; sha256 = "682d7cc0e6b319b6ab83a7a898680c12e9c77ddc77df380b40041290f55d4e79";
}; };
checkInputs = [ pytest ]; checkInputs = [ pytest ];

View File

@ -7,12 +7,12 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.1.11"; version = "0.2.0";
pname = "dask-xgboost"; pname = "dask-xgboost";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "3fbe1bf4344dc74edfbe9f928c7e3e6acc26dc57cefd8da8ae56a15469c6941c"; sha256 = "6d9c491dc4099f74a0df66c4d439d296c0f1fba97009fe93e21b2350f295b4ca";
}; };
propagatedBuildInputs = [ xgboost dask distributed ]; propagatedBuildInputs = [ xgboost dask distributed ];

View File

@ -2,44 +2,51 @@
, stdenv , stdenv
, bokeh , bokeh
, buildPythonPackage , buildPythonPackage
, cloudpickle
, distributed
, fetchFromGitHub , fetchFromGitHub
, fsspec , fsspec
, pytestCheckHook , jinja2
, pytest-rerunfailures
, pythonOlder
, cloudpickle
, numpy , numpy
, toolz , packaging
, dill
, pandas , pandas
, partd , partd
, pytest-rerunfailures
, pytest-xdist , pytest-xdist
, pytestCheckHook
, pythonOlder
, pyyaml
, toolz
, withExtraComplete ? false , withExtraComplete ? false
, distributed
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "dask"; pname = "dask";
version = "2021.06.2"; version = "2021.08.1";
disabled = pythonOlder "3.5"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dask"; owner = "dask";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-qvfjdijzlqaJQrDztRAVr5PudTaVd3WOTBid2ElZQgg="; sha256 = "sha256-HnrHOp3Y/iLYaK3KVp6NJrK68BMqX8lTl/wLosiGc7k=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
bokeh
cloudpickle cloudpickle
dill
fsspec fsspec
numpy packaging
pandas
partd partd
pyyaml
toolz toolz
] ++ lib.optionals withExtraComplete [ pandas
jinja2
bokeh
numpy
] ++ lib.optionals (withExtraComplete) [
# infinite recursion between distributed and dask
distributed distributed
]; ];
@ -63,7 +70,11 @@ buildPythonPackage rec {
''; '';
pytestFlagsArray = [ pytestFlagsArray = [
"-n $NIX_BUILD_CORES" # parallelize
"--numprocesses auto"
# rerun failed tests up to three times
"--reruns 3"
# don't run tests that require network access
"-m 'not network'" "-m 'not network'"
]; ];
@ -81,7 +92,16 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "dask.dataframe" "dask" "dask.array" ]; pythonImportsCheck = [
"dask"
"dask.array"
"dask.bag"
"dask.bytes"
"dask.dataframe"
"dask.dataframe.io"
"dask.dataframe.tseries"
"dask.diagnostics"
];
meta = with lib; { meta = with lib; {
description = "Minimal task scheduling abstraction"; description = "Minimal task scheduling abstraction";

View File

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, python-dateutil, pytz }:
buildPythonPackage rec {
pname = "dateutils";
version = "0.6.12";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-A92QvLIVQb1OtLATY35PG1+USIHEbMbktnpgWeNw4/E=";
};
propagatedBuildInputs = [
python-dateutil
pytz
];
pythonImportsCheck = [ "dateutils" ];
meta = with lib; {
description = "Utilities for working with datetime objects.";
homepage = "https://github.com/jmcantrell/python-dateutils";
license = licenses.bsd0;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -62,7 +62,7 @@ buildPythonPackage rec {
"x86_64-darwin" = "-std=c++11 -lc -D_REENTRANT -dynamiclib -arch x86_64 -o attach_x86_64.dylib"; "x86_64-darwin" = "-std=c++11 -lc -D_REENTRANT -dynamiclib -arch x86_64 -o attach_x86_64.dylib";
"i686-darwin" = "-std=c++11 -lc -D_REENTRANT -dynamiclib -arch i386 -o attach_x86.dylib"; "i686-darwin" = "-std=c++11 -lc -D_REENTRANT -dynamiclib -arch i386 -o attach_x86.dylib";
"aarch64-darwin" = "-std=c++11 -lc -D_REENTRANT -dynamiclib -arch arm64 -o attach_arm64.dylib"; "aarch64-darwin" = "-std=c++11 -lc -D_REENTRANT -dynamiclib -arch arm64 -o attach_arm64.dylib";
}.${stdenv.hostPlatform.system}} }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")}
)''; )'';
checkInputs = [ checkInputs = [

View File

@ -0,0 +1,21 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "decorator";
version = "4.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "1rxzhk5zwiggk45hl53zydvy70lk654kg0nc1p54090p402jz9p3";
};
meta = with lib; {
homepage = "https://pypi.python.org/pypi/decorator";
description = "Better living through Python with decorators";
license = lib.licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -5,11 +5,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "decorator"; pname = "decorator";
version = "4.4.2"; version = "5.0.9";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1rxzhk5zwiggk45hl53zydvy70lk654kg0nc1p54090p402jz9p3"; sha256 = "72ecfba4320a893c53f9706bebb2d55c270c1e51a28789361aa93e4a21319ed5";
}; };
meta = with lib; { meta = with lib; {

View File

@ -19,13 +19,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "distributed"; pname = "distributed";
version = "2021.6.2"; version = "2021.8.1";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
# get full repository need conftest.py to run tests # get full repository need conftest.py to run tests
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-19ESqGqwSdzvo7If0brqQhKiwD0iwkvVWtONIaf10Ug="; sha256 = "c13ac10ecd9ee5f0ff67f5697149062d6e483f23a079918df1ab2e19b11fa77d";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -2,11 +2,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "distro"; pname = "distro";
version = "1.5.0"; version = "1.6.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0e58756ae38fbd8fc3020d54badb8eae17c5b9dcbed388b17bb55b8a5928df92"; sha256 = "83f5e5a09f9c5f68f60173de572930effbcc0287bb84fdc4426cb4168c088424";
}; };
# tests are very targeted at individual linux distributions # tests are very targeted at individual linux distributions

View File

@ -9,11 +9,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-cacheops"; pname = "django-cacheops";
version = "5.1"; version = "6.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-1YUc178whzhKH87PqN3bj1UDDu39b98SciW3W8oPmd0="; sha256 = "78e161ebd96a32e28e19ec7da31f2afed9e62a79726b8b5f0ed12dd16c2e5841";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -7,11 +7,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-environ"; pname = "django-environ";
version = "0.4.5"; version = "0.5.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "6c9d87660142608f63ec7d5ce5564c49b603ea8ff25da595fd6098f6dc82afde"; sha256 = "a8726675c1ebefa4706b36398c4d3c5c790d335ffe55c4a10378f6bfd57ad8d0";
}; };
# The testsuite fails to modify the base environment # The testsuite fails to modify the base environment

View File

@ -11,12 +11,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-taggit"; pname = "django-taggit";
version = "1.4.0"; version = "1.5.1";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "b9ed6e94bad0bed3bf062a6be7ee3db117fda02c6419c680d614197364ea018b"; sha256 = "e5bb62891f458d55332e36a32e19c08d20142c43f74bc5656c803f8af25c084a";
}; };
propagatedBuildInputs = [ isort django ]; propagatedBuildInputs = [ isort django ];

View File

@ -2,11 +2,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "djangorestframework_simplejwt"; pname = "djangorestframework_simplejwt";
version = "4.7.1"; version = "4.8.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "c0e9b617da337becb55e67935eb992fad84f861418e7ab5fb3e77a3fd18d4137"; sha256 = "153c973c5c154baf566be431de8527c2bd62557fde7373ebcb0f02b73b28e07a";
}; };
propagatedBuildInputs = [ django djangorestframework pyjwt ]; propagatedBuildInputs = [ django djangorestframework pyjwt ];

View File

@ -5,11 +5,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "dpkt"; pname = "dpkt";
version = "1.9.7.1"; version = "1.9.7.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "74899d557ec4e337db29cecc80548b23a1205384d30ee407397cfb9ab178e3d4"; sha256 = "80f977667ebbad2b5c4f7b7f45ee8bea6622fb71723f68a9a8fe6274520c853b";
}; };
# Project has no tests # Project has no tests

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "elmax"; pname = "elmax";
version = "0.1.2"; version = "0.1.3";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "home-assistant-ecosystem"; owner = "home-assistant-ecosystem";
repo = "python-elmax"; repo = "python-elmax";
rev = version; rev = version;
sha256 = "sha256-Aq/OHxOmtUUmBNlFPu892C8AkTX+Ee0oca7D79InPXQ="; sha256 = "sha256-OiVPjWqQw1u0OL6/uYlT+FP2XDh7l3OZyVtQfycHICI=";
}; };
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [ poetry-core ];

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, setuptools-scm
, asttokens , asttokens
}: }:
@ -15,6 +16,10 @@ buildPythonPackage rec {
sha256 = "1hqx94h6l2wg9sljiaajfay2nr62sqa819w3bxrz8cdki1abdygv"; sha256 = "1hqx94h6l2wg9sljiaajfay2nr62sqa819w3bxrz8cdki1abdygv";
}; };
nativeBuildInputs = [
setuptools-scm
];
preBuild = '' preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
''; '';

View File

@ -11,11 +11,11 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "extractcode"; pname = "extractcode";
version = "21.6.2"; version = "21.7.23";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "e665501438fedeb6e75335d880c8913a8cd894fd8adcf9c243eb6d48fad2d01c"; sha256 = "58aa16d60cfcbd3695d7ea84a1e30d5ba9fa6f614b2ef4a6d0565b2ac5d4f757";
}; };
dontConfigure = true; dontConfigure = true;

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