about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix b/nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix
index edf15661dfec..33bd43c7043b 100644
--- a/nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix
@@ -31,6 +31,14 @@ buildPythonPackage rec {
   ];
 
   postPatch = ''
+    # The line below is in the [build-system] section, which is invalid and
+    # rejected by PyPA's build tool. It belongs in [project] but upstream has
+    # had problems with putting that there (see comment in pyproject.toml).
+    sed -i '/requires-python/d' pyproject.toml
+
+    substituteInPlace pyproject.toml \
+      --replace '"poetry>=1.3.2",' ""
+
     patchShebangs tests
   '';