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

This reverts commit b041b2e1b2, reversing
changes made to 5b6c2380ad.
This commit is contained in:
Martin Weinelt 2021-09-05 15:02:25 +02:00
parent b041b2e1b2
commit 7f732aca66
381 changed files with 1554 additions and 2632 deletions

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ lib, fetchurl, python27Packages, python3Packages, wmctrl,
{ lib, fetchurl, python27Packages, python36Packages, wmctrl,
qtbase, mkDerivationWith }:
{
@ -24,9 +24,9 @@
];
};
dev = with python3Packages; mkDerivationWith buildPythonPackage rec {
dev = with python36Packages; mkDerivationWith buildPythonPackage rec {
pname = "plover";
version = "4.0.0.dev10";
version = "4.0.0.dev8";
meta = with lib; {
description = "OpenSteno Plover stenography software";
@ -36,7 +36,7 @@
src = fetchurl {
url = "https://github.com/openstenoproject/plover/archive/v${version}.tar.gz";
sha256 = "sha256-Eun+ZgmOIjYw6FS/2OGoBvYh52U/Ue0+NtIqrvV2Tqc=";
sha256 = "1wxkmik1zyw5gqig5r0cas5v6f5408fbnximzw610rdisqy09rxp";
};
# 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
, python3Packages
, python37Packages
, fehSupport ? false, feh
, imagemagickSupport ? true, imagemagick
, intltool
@ -13,7 +13,7 @@
, makeWrapper
}:
with python3Packages;
with python37Packages;
buildPythonApplication rec {
pname = "variety";

View File

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

View File

@ -1,37 +1,22 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, testfixtures
}:
{ buildPythonApplication, fetchFromGitHub, isPy27, pytest, testfixtures, lib }:
buildPythonApplication rec {
pname = "bump2version";
version = "1.0.1";
disabled = pythonOlder "3.6";
version = "1.0.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "c4urself";
repo = pname;
rev = "v${version}";
sha256 = "sha256-j6HKi3jTwSgGBrA8PCJJNg+yQqRMo1aqaLgPGf4KAKU=";
rev = "refs/tags/v${version}";
sha256 = "10p7rg569rk3qvzs5kjj17894bqlsg3ihhbln6ciwwfhkfq1kpja";
};
checkInputs = [
pytestCheckHook
testfixtures
];
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" ];
checkInputs = [ pytest testfixtures ];
# X's in pytest are git tests which won't run in sandbox
checkPhase = ''
pytest tests/ -k 'not usage_string_fork'
'';
meta = with lib; {
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}
'' else if stdenv.hostPlatform.isDarwin then ''
install_name_tool \
-id $out/lib/libblas${canonicalExtension} \
-id libblas${canonicalExtension} \
-add_rpath ${lib.getLib blasProvider}/lib \
$out/lib/libblas${canonicalExtension}
'' else "") + ''

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,5 @@
{ stdenv, lib, python3
, fetchFromGitHub
, fetchPypi
, git
, spdx-license-list-data
, version, src
@ -21,15 +20,6 @@ let
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 {
version = "7.1.2";
src = oldAttrs.src.override {
@ -38,18 +28,6 @@ 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 {
version = "0.13.2";
src = fetchFromGitHub {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -42,7 +42,7 @@
let
version = "2.33";
patchSuffix = "-50";
patchSuffix = "-49";
sha256 = "sha256-LiVWAA4QXb1X8Layoy/yzxc73k8Nhd/8z9i35RoGd/8=";
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.
$ git fetch --all -p && git checkout origin/release/2.33/master && git describe
glibc-2.33-50-gc6cadbf83a
glibc-2.33-49-g22d37364ae
$ git show --minimal --reverse glibc-2.33.. | gzip -9n --rsyncable - > 2.33-master.patch.gz
To compare the archive contents zdiff can be used.

View File

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

View File

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

View File

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

View File

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

View File

@ -139,9 +139,5 @@ stdenv.mkDerivation rec {
platforms = with lib.platforms; linux;
license = lib.licenses.asl20;
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 {
url = "mirror://sourceforge/tcl/tk${tcl.version}.1-src.tar.gz"; # TODO: remove '.1' for v8.6.10 or v8.7.x
sha256 = "1gh9k7l76qg9l0sb78ijw9xz4xl1af47aqbdifb6mjpf3cbsnv00";
sha256 = "1d7bfkxpacy33w5nahf73lkwxqpff44w1jplg7i2gmwgiaawvjwg";
};
patches = [ ./different-prefix-with-tcl.patch ] ++ lib.optionals stdenv.isDarwin [ ./Fix-bad-install_name-for-libtk8.6.dylib.patch ];

View File

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

View File

@ -1,11 +1,9 @@
{ lib
, buildPythonPackage
, fetchPypi
{ lib, buildPythonPackage, fetchPypi
, cryptography
, invoke
, mock
, paramiko
, pytestCheckHook
, pytest
, pytest-relaxed
}:
@ -25,21 +23,20 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [ invoke paramiko cryptography ];
checkInputs = [ pytest mock pytest-relaxed ];
checkInputs = [ pytestCheckHook pytest-relaxed mock ];
# ==================================== 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.
# requires pytest_relaxed, which doesnt have official support for pytest>=5
# https://github.com/bitprophet/pytest-relaxed/issues/12
doCheck = false;
checkPhase = ''
pytest tests
'';
pythonImportsCheck = [ "fabric" ];
meta = with lib; {
description = "Pythonic remote execution";
homepage = "https://www.fabfile.org/";
license = licenses.bsd2;
homepage = "https://www.fabfile.org/";
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,35 +0,0 @@
{ 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 {
pname = "chart-studio";
version = "5.3.0";
version = "4.14.3";
# chart-studio was split from plotly
src = fetchFromGitHub {
owner = "plotly";
repo = "plotly.py";
rev = "v${version}";
sha256 = "059rq278r5zb2sngby7jzh8kd9c48sd82b6b7s5bbrmzj42sds3n";
sha256 = "1yrrcn9032r3l8y2cc1wvpydg4rkqvgkpyv1s7znby5mrxa1rjma";
};
sourceRoot = "source/packages/python/chart-studio";

View File

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

View File

@ -1,58 +1,21 @@
{ lib
, stdenv
, attrs
, buildPythonPackage
, colorama
, fetchPypi
, glibcLocales
, importlib-metadata
, pyperclip
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools-scm
, typing-extensions
, vim
, wcwidth
{ lib, stdenv, fetchPypi, buildPythonPackage, pythonOlder, isPy3k
, pyperclip, six, pyparsing, vim, wcwidth, colorama, attrs
, contextlib2 ? null, typing ? null, setuptools-scm
, pytest, mock ? null, pytest-mock
, which, glibcLocales
}:
buildPythonPackage rec {
pname = "cmd2";
version = "2.1.2";
disabled = pythonOlder "3.6";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "25dbb2e9847aaa686a8a21e84e3d101db8b79f5cb992e044fc54210ab8c0ad41";
sha256 = "701a8c9975c4abc45e5d13906ab149f959f812869106347323a3f89ac0e82a62";
};
LC_ALL = "en_US.UTF-8";
LC_ALL="en_US.UTF-8";
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 ''
postPatch = lib.optionalString stdenv.isDarwin ''
# Fake the impure dependencies pbpaste and pbcopy
mkdir bin
echo '#!${stdenv.shell}' > bin/pbpaste
@ -61,9 +24,33 @@ buildPythonPackage rec {
export PATH=$(realpath bin):$PATH
'';
doCheck = !stdenv.isDarwin;
disabled = !isPy3k;
pythonImportsCheck = [ "cmd2" ];
buildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
colorama
pyperclip
six
pyparsing
wcwidth
attrs
]
++ lib.optionals (pythonOlder "3.5") [contextlib2 typing]
;
doCheck = !stdenv.isDarwin;
# pytest-cov
# argcomplete will generate errors
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; {
description = "Enhancements for standard library's cmd module";

View File

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

View File

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

View File

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

View File

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

View File

@ -1,23 +0,0 @@
{ 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 {
pname = "contextlib2";
version = "21.6.0";
version = "0.6.0.post1";
src = fetchPypi {
inherit pname version;
sha256 = "ab1e2bfe1d01d968e1b7e8d9023bc51ef3509bba217bb730cee3827e1ee82869";
sha256 = "01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e";
};
checkInputs = [ unittest2 ];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,25 +0,0 @@
{ 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";
"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";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")}
}.${stdenv.hostPlatform.system}}
)'';
checkInputs = [

View File

@ -1,21 +0,0 @@
{ 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 {
pname = "decorator";
version = "5.0.9";
version = "4.4.2";
src = fetchPypi {
inherit pname version;
sha256 = "72ecfba4320a893c53f9706bebb2d55c270c1e51a28789361aa93e4a21319ed5";
sha256 = "1rxzhk5zwiggk45hl53zydvy70lk654kg0nc1p54090p402jz9p3";
};
meta = with lib; {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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