Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python311Packages.scrapy: unbreak tests with upstream patch #309729

Merged
merged 1 commit into from May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pkgs/development/python-modules/scrapy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, cryptography
, cssselect
, fetchPypi
, fetchpatch
, glibcLocales
, installShellFiles
, itemadapter
Expand Down Expand Up @@ -43,6 +44,16 @@ buildPythonPackage rec {
hash = "sha256-czoDnHQj5StpvygQtTMgk9TkKoSEYDWcB7Auz/j3Pr4=";
};

patches = [
# https://github.com/scrapy/scrapy/pull/6316
# fix test_get_func_args. remove on next update
(fetchpatch {
name = "test_get_func_args.patch";
url = "https://github.com/scrapy/scrapy/commit/b1fe97dc6c8509d58b29c61cf7801eeee1b409a9.patch";
hash = "sha256-POlmsuW4SD9baKwZieKfmlp2vtdlb7aKQ62VOmNXsr0=";
})
];

nativeBuildInputs = [
installShellFiles
setuptools
Expand Down