# HG changeset patch # User Milka Kuzminski # Date 2021-01-26 22:46:46 # Node ID 537039702c527ad456395d620a14d052ae2f5ebd # Parent 35fb8d8f31b53f4321ef5720c46f59693c86a966 pytest: fixed package requirements for latest setuptools which breaks backward compat. diff --git a/pkgs/patches/pytest/setuptools.patch b/pkgs/patches/pytest/setuptools.patch new file mode 100644 --- /dev/null +++ b/pkgs/patches/pytest/setuptools.patch @@ -0,0 +1,12 @@ +diff -rup pytest-4.6.5-orig/setup.py pytest-4.6.5/setup.py +--- pytest-4.6.5-orig/setup.py 2018-04-10 10:23:04.000000000 +0200 ++++ pytest-4.6.5/setup.py 2018-04-10 10:23:34.000000000 +0200 +@@ -24,7 +24,7 @@ INSTALL_REQUIRES = [ + def main(): + setup( + use_scm_version={"write_to": "src/_pytest/_version.py"}, +- setup_requires=["setuptools-scm", "setuptools>=40.0"], ++ setup_requires=["setuptools-scm", "setuptools<=42.0"], + package_dir={"": "src"}, + # fmt: off + extras_require={ \ No newline at end of file diff --git a/pkgs/python-packages-overrides.nix b/pkgs/python-packages-overrides.nix --- a/pkgs/python-packages-overrides.nix +++ b/pkgs/python-packages-overrides.nix @@ -274,6 +274,12 @@ self: super: { ]; }); + "pytest" = super."pytest".override (attrs: { + patches = [ + ./patches/pytest/setuptools.patch + ]; + }); + # Avoid that base packages screw up the build process inherit (basePythonPackages) setuptools;