diff --git a/pkgs/patches/channelstream/setuptools.patch b/pkgs/patches/channelstream/setuptools.patch new file mode 100644 --- /dev/null +++ b/pkgs/patches/channelstream/setuptools.patch @@ -0,0 +1,13 @@ +diff -rup channelstream-0.6.14-orig/setup.py channelstream-0.6.14/setup.py + +--- channelstream-0.6.14/setup-orig.py 2021-03-11 12:34:45.000000000 +0100 ++++ channelstream-0.6.14/setup.py 2021-03-11 12:34:56.000000000 +0100 +@@ -52,7 +52,7 @@ setup( + include_package_data=True, + install_requires=requires, + python_requires=">=2.7", +- setup_requires=["pytest-runner"], ++ setup_requires=["pytest-runner==5.1.0"], + extras_require={ + "dev": ["coverage", "pytest", "pyramid", "tox", "mock", "webtest"], + "lint": ["black"], diff --git a/pkgs/patches/pyramid_apispec/setuptools.patch b/pkgs/patches/pyramid_apispec/setuptools.patch new file mode 100644 --- /dev/null +++ b/pkgs/patches/pyramid_apispec/setuptools.patch @@ -0,0 +1,12 @@ +diff -rup pyramid-apispec-0.3.2-orig/setup.py pyramid-apispec-0.3.2/setup.py +--- pyramid-apispec-0.3.2-orig/setup.py 2021-03-11 11:19:26.000000000 +0100 ++++ pyramid-apispec-0.3.2/setup.py 2021-03-11 11:19:51.000000000 +0100 +@@ -44,7 +44,7 @@ setup( + packages=find_packages(exclude=["contrib", "docs", "tests"]), + package_data={"pyramid_apispec": ["static/*.*"], "": ["LICENSE"]}, + install_requires=["apispec[yaml]==1.0.0"], +- setup_requires=["pytest-runner"], ++ setup_requires=["pytest-runner==5.1"], + extras_require={ + "dev": ["coverage", "pytest", "pyramid", "tox", "webtest"], + "demo": ["marshmallow==2.15.3", "pyramid", "apispec", "webtest"], \ 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 @@ -280,6 +280,18 @@ self: super: { ]; }); + "pyramid-apispec" = super."pyramid-apispec".override (attrs: { + patches = [ + ./patches/pyramid_apispec/setuptools.patch + ]; + }); + + "channelstream" = super."channelstream".override (attrs: { + patches = [ + ./patches/channelstream/setuptools.patch + ]; + }); + # Avoid that base packages screw up the build process inherit (basePythonPackages) setuptools;