From 5485265aa1c2f9d2c9d5709c3de9f36de4a8da7e Mon Sep 17 00:00:00 2001 From: adisbladis Date: Tue, 18 Jan 2022 14:02:58 +1200 Subject: [PATCH] Round 2 override removals --- overrides.nix | 67 ++------------------------------------------------- 1 file changed, 2 insertions(+), 65 deletions(-) diff --git a/overrides.nix b/overrides.nix index 9bdbc924c..e4d973ea0 100644 --- a/overrides.nix +++ b/overrides.nix @@ -50,12 +50,6 @@ self: super: } ); - anyio = super.anyio.overridePythonAttrs (old: { - postPatch = '' - substituteInPlace setup.py --replace 'setup()' 'setup(version=${old.version}")' - ''; - }); - argcomplete = super.argcomplete.overridePythonAttrs ( old: rec { buildInputs = (old.buildInputs or [ ]) ++ [ self.importlib-metadata ]; @@ -94,22 +88,6 @@ self: super: buildInputs = old.buildInputs or [ ] ++ [ self.flit-core ]; }); - backports-entry-points-selectable = super.backports-entry-points-selectable.overridePythonAttrs (old: { - postPatch = '' - substituteInPlace setup.py --replace \ - 'setuptools.setup()' \ - 'setuptools.setup(version="${old.version}")' - ''; - }); - - backports-functools-lru-cache = super.backports-functools-lru-cache.overridePythonAttrs (old: { - postPatch = '' - substituteInPlace setup.py --replace \ - 'setuptools.setup()' \ - 'setuptools.setup(version="${old.version}")' - ''; - }); - bcrypt = super.bcrypt.overridePythonAttrs ( old: { buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.libffi ]; @@ -423,8 +401,7 @@ self: super: old: { postPatch = '' substituteInPlace setup.py \ - --replace 'setup_requires="setupmeta"' 'setup_requires=[]' \ - --replace 'versioning="devcommit"' 'version="${old.version}"' + --replace 'setup_requires="setupmeta"' 'setup_requires=[]' ''; } ); @@ -446,12 +423,6 @@ self: super: } ); - filelock = super.filelock.overridePythonAttrs (old: { - postPatch = '' - substituteInPlace setup.py --replace 'setup()' 'setup(version="${old.version}")' - ''; - }); - fiona = super.fiona.overridePythonAttrs ( old: { buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.gdal_2 ]; @@ -643,10 +614,6 @@ self: super: importlib-metadata = super.importlib-metadata.overridePythonAttrs ( old: { propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ lib.optional self.python.isPy2 self.pathlib2; - - postPatch = old.postPatch or "" + (lib.optionalString ((old.format or "") != "wheel") '' - substituteInPlace setup.py --replace 'setuptools.setup()' 'setuptools.setup(version="${old.version}")' - ''); } ); @@ -735,9 +702,6 @@ self: super: buildInputs = (old.buildInputs or [ ]) ++ [ self.toml ]; - postPatch = '' - substituteInPlace setup.py --replace 'setuptools.setup()' 'setuptools.setup(version="${old.version}")' - ''; } ); @@ -1118,12 +1082,6 @@ self: super: } ); - platformdirs = super.platformdirs.overridePythonAttrs (old: { - postPatch = '' - substituteInPlace setup.py --replace 'setup()' 'setup(version="${old.version}")' - ''; - }); - poetry-core = super.poetry-core.overridePythonAttrs (old: { # "Vendor" dependencies (for build-system support) postPatch = '' @@ -1919,13 +1877,6 @@ self: super: })) { }; - typeguard = super.typeguard.overridePythonAttrs (old: { - postPatch = '' - substituteInPlace setup.py \ - --replace 'setup()' 'setup(version="${old.version}")' - ''; - }); - typed_ast = super.typed-ast.overridePythonAttrs (old: { nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pytest-runner @@ -2028,21 +1979,7 @@ self: super: if isWheel then wheelPackage else sourcePackage; zipp = if super.zipp == null then null else - ( - if lib.versionAtLeast super.zipp.version "2.0.0" then - ( - super.zipp.overridePythonAttrs ( - old: - if (old.format or "pyproject") != "wheel" then { - prePatch = '' - substituteInPlace setup.py --replace \ - 'setuptools.setup()' \ - 'setuptools.setup(version="${super.zipp.version}")' - ''; - } else old - ) - ) else super.zipp - ).overridePythonAttrs ( + super.zipp.overridePythonAttrs ( old: { propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.toml