From daf29b1ebad3ab95676901c7fe5a31272bbee55f Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 14 Feb 2024 04:20:00 +0000 Subject: [PATCH 1/2] python311Packages.scrapy: 2.11.0 -> 2.11.1 Changelog: https://github.com/scrapy/scrapy/raw/2.11.1/docs/news.rst --- .../python-modules/scrapy/default.nix | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/scrapy/default.nix b/pkgs/development/python-modules/scrapy/default.nix index 72a3957723ea..d6516a890de9 100644 --- a/pkgs/development/python-modules/scrapy/default.nix +++ b/pkgs/development/python-modules/scrapy/default.nix @@ -5,7 +5,6 @@ , cryptography , cssselect , fetchPypi -, fetchpatch , glibcLocales , installShellFiles , itemadapter @@ -32,7 +31,7 @@ buildPythonPackage rec { pname = "scrapy"; - version = "2.11.0"; + version = "2.11.1"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -40,21 +39,9 @@ buildPythonPackage rec { src = fetchPypi { inherit version; pname = "Scrapy"; - hash = "sha256-PL3tzgw/DgSC1hvi10WGg758188UsO5q37rduA9bNqU="; + hash = "sha256-czoDnHQj5StpvygQtTMgk9TkKoSEYDWcB7Auz/j3Pr4="; }; - patches = [ - # Fix compatiblity with Twisted>=23.8. Remove with the next release. - (fetchpatch { - url = "https://github.com/scrapy/scrapy/commit/aa95ada42cdf570f840f55c463375f8a81b303f8.patch"; - hash = "sha256-LuhA5BqtjSUgkotplvUCtvGNYOTrl0MJRCXiSBMDFzY="; - excludes = [ - "tests/CrawlerProcess/sleeping.py" - "tests/test_crawler.py" - ]; - }) - ]; - nativeBuildInputs = [ installShellFiles ]; From c389b763534d9656136e2f3c6b48d06fd6ba69fd Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 14 Feb 2024 04:20:00 +0000 Subject: [PATCH 2/2] python311Packages.scrapy: refactor --- pkgs/development/python-modules/scrapy/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/scrapy/default.nix b/pkgs/development/python-modules/scrapy/default.nix index d6516a890de9..9548f9136e8c 100644 --- a/pkgs/development/python-modules/scrapy/default.nix +++ b/pkgs/development/python-modules/scrapy/default.nix @@ -21,6 +21,7 @@ , pythonOlder , queuelib , service-identity +, setuptools , sybil , testfixtures , tldextract @@ -32,7 +33,7 @@ buildPythonPackage rec { pname = "scrapy"; version = "2.11.1"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -44,6 +45,7 @@ buildPythonPackage rec { nativeBuildInputs = [ installShellFiles + setuptools ]; propagatedBuildInputs = [