From 3fca3bc7e7797de58cfc4a0f207e417e747c53ea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 19 Dec 2022 17:08:21 +0100 Subject: [PATCH 1/3] python310Packages.w3lib: add changelog to meta --- .../python-modules/w3lib/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/w3lib/default.nix b/pkgs/development/python-modules/w3lib/default.nix index 9c98f4d0926c..786bc7e9f260 100644 --- a/pkgs/development/python-modules/w3lib/default.nix +++ b/pkgs/development/python-modules/w3lib/default.nix @@ -11,21 +11,29 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "sha256-E98V+MF7Fj3g/V+qiSwa0UPhkN/L25hTS7l16zfGx9Y="; + hash = "sha256-E98V+MF7Fj3g/V+qiSwa0UPhkN/L25hTS7l16zfGx9Y="; }; - propagatedBuildInputs = [ six ]; + propagatedBuildInputs = [ + six + ]; - checkInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ "w3lib" ]; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "w3lib" + ]; disabledTests = [ "test_add_or_replace_parameter" ]; meta = with lib; { - description = "A library of web-related functions"; + description = "Library of web-related functions"; homepage = "https://github.com/scrapy/w3lib"; + changelog = "https://github.com/scrapy/w3lib/blob/v${version}/NEWS"; license = licenses.bsd3; maintainers = with maintainers; [ ]; }; From 6ec77211c7e40a362079f58486861be3b3b839f1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 19 Dec 2022 17:12:05 +0100 Subject: [PATCH 2/3] python310Packages.w3lib: 2.0.1 -> 2.1.1 Changelog: https://github.com/scrapy/w3lib/blob/v2.1.1/NEWS --- pkgs/development/python-modules/w3lib/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/w3lib/default.nix b/pkgs/development/python-modules/w3lib/default.nix index 786bc7e9f260..ea878ac4890e 100644 --- a/pkgs/development/python-modules/w3lib/default.nix +++ b/pkgs/development/python-modules/w3lib/default.nix @@ -1,23 +1,22 @@ { lib , buildPythonPackage , fetchPypi -, six , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "w3lib"; - version = "2.0.1"; + version = "2.1.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-E98V+MF7Fj3g/V+qiSwa0UPhkN/L25hTS7l16zfGx9Y="; + hash = "sha256-DhGY8bdFGVtrPdGkzWYBH7+C8wpNnauu4fnlyG8CAnQ="; }; - propagatedBuildInputs = [ - six - ]; - checkInputs = [ pytestCheckHook ]; From ffc203e4ba7cd61aaf8a0722d4a0c276494d06c5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 19 Dec 2022 19:27:52 +0100 Subject: [PATCH 3/3] python310Packages.scrapy: disable failing tests --- pkgs/development/python-modules/scrapy/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/scrapy/default.nix b/pkgs/development/python-modules/scrapy/default.nix index 3571a783af8d..4ac91771a473 100644 --- a/pkgs/development/python-modules/scrapy/default.nix +++ b/pkgs/development/python-modules/scrapy/default.nix @@ -95,6 +95,7 @@ buildPythonPackage rec { "test_nested_css" "test_nested_xpath" "test_flavor_detection" + "test_follow_whitespace" # Requires network access "AnonymousFTPTestCase" "FTPFeedStorageTest"