From 95dd4592d3d34310bf2874f4a4d030344901b506 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Feb 2022 14:23:04 +0100 Subject: [PATCH 1/2] python3Packages.python-socks: 2.0.2 -> 2.0.3 --- pkgs/development/python-modules/python-socks/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-socks/default.nix b/pkgs/development/python-modules/python-socks/default.nix index e11f5ff1eb53..9b7286fd057e 100644 --- a/pkgs/development/python-modules/python-socks/default.nix +++ b/pkgs/development/python-modules/python-socks/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "python-socks"; - version = "2.0.2"; + version = "2.0.3"; format = "setuptools"; disabled = pythonOlder "3.6.1"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "romis2012"; repo = pname; rev = "v${version}"; - sha256 = "1ixhi23x28bg45146p23z26y38rlz445xr0inwgx7avh0rs7vwfx"; + sha256 = "sha256-tVoBon9HF9MTOK+dN9g58fQO706ElNlCeULx//7hPWA="; }; propagatedBuildInputs = [ From ef828225247a472b41dca0e2e7e8120407d0290d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Feb 2022 12:37:07 +0100 Subject: [PATCH 2/2] python3Packages.enlighten: disable failing test --- .../python-modules/enlighten/default.nix | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/enlighten/default.nix b/pkgs/development/python-modules/enlighten/default.nix index 3c786d869155..b6d31ddaf947 100644 --- a/pkgs/development/python-modules/enlighten/default.nix +++ b/pkgs/development/python-modules/enlighten/default.nix @@ -5,28 +5,41 @@ , blessed , prefixed , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "enlighten"; version = "1.10.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "7a5b83cd0f4d095e59d80c648ebb5f7ffca0cd8bcf7ae6639828ee1ad000632a"; + hash = "sha256-eluDzQ9NCV5Z2Axkjrtff/ygzYvPeuZjmCjuGtAAYyo="; }; propagatedBuildInputs = [ blessed prefixed ]; - checkInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ "enlighten" ]; - disabledTests = + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "enlighten" + ]; + + disabledTests = [ + # AssertionError: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> is not... + "test_init" + ] ++ lib.optional stdenv.isDarwin [ # https://github.com/Rockhopper-Technologies/enlighten/issues/44 - lib.optional stdenv.isDarwin "test_autorefresh" - ; + "test_autorefresh" + ]; meta = with lib; { description = "Enlighten Progress Bar for Python Console Apps";