From 841819b8db2a7ffb45cd81484cb312b17ee67534 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Nov 2023 16:09:03 +0100 Subject: [PATCH] python311Packages.warcio: refactor --- .../python-modules/warcio/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/warcio/default.nix b/pkgs/development/python-modules/warcio/default.nix index 3f29153c0a10..47af36478133 100644 --- a/pkgs/development/python-modules/warcio/default.nix +++ b/pkgs/development/python-modules/warcio/default.nix @@ -2,14 +2,14 @@ , buildPythonPackage , fetchFromGitHub , fetchpatch -, six -, setuptools -, pytestCheckHook , httpbin -, requests -, wsgiprox , multidict +, pytestCheckHook , pythonOlder +, requests +, setuptools +, six +, wsgiprox }: buildPythonPackage rec { @@ -40,16 +40,20 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - pytestCheckHook httpbin + multidict # Optional. Without this, one test in test/test_utils.py is skipped. + pytestCheckHook requests wsgiprox - multidict # Optional. Without this, one test in test/test_utils.py is skipped. ]; - pytestFlagsArray = [ "--offline" ]; + pytestFlagsArray = [ + "--offline" + ]; - pythonImportsCheck = [ "warcio" ]; + pythonImportsCheck = [ + "warcio" + ]; meta = with lib; { description = "Streaming WARC/ARC library for fast web archive IO";