From 68f1bebe967dc2103aa7ed09493723f8ba2f1af4 Mon Sep 17 00:00:00 2001 From: Pavel Anpin Date: Wed, 27 Nov 2024 09:22:00 -0300 Subject: [PATCH] fix poetry overrides for template --- lib/overrides.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/overrides.nix b/lib/overrides.nix index 4f28e96a..423ed79d 100644 --- a/lib/overrides.nix +++ b/lib/overrides.nix @@ -12,6 +12,9 @@ pkgs: let pbs-installer = ["pdm-backend"]; unearth = ["pdm-backend"]; hishel = ["hatch-fancy-pypi-readme"]; + jinja2 = ["flit-core"]; + pyzmq = ["scikit-build-core"]; + urllib3 = ["hatchling" "hatch-vcs"]; }; postOverlay = final: prev: (builtins.mapAttrs ( @@ -47,5 +50,19 @@ pkgs: let hash = "sha256-VOmMNEdKHrPKJzs+D735Y52y47MubPwLlfkvB7Glh14="; }; }); + rfc3986-validator = prev.rfc3986-validator.overridePythonAttrs (old: { + nativeBuildInputs = (old.buildInputs or []) ++ [prev.setuptools prev.wheel pkgs.patchutils]; + patchPhase = '' + # Patch setup.py to remove pytest-runner + substituteInPlace setup.py \ + --replace-fail "setup_requirements = ['pytest-runner', ]" "setup_requirements = []" \ + ''; + buildPhase = '' + python setup.py sdist bdist_wheel + ''; + }); + tinycss2 = prev.tinycss2.overridePythonAttrs (old: { + buildInputs = []; + }); }; in [preOverlay pkgs.poetry2nix.defaultPoetryOverrides postOverlay]