From 355c9177be6b8887f4ebbaf08a1b911095817463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Mon, 22 Dec 2025 15:32:27 +0100 Subject: [PATCH] bikeshed: Add patch to remove pip check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- pkgs/by-name/bi/bikeshed/package.nix | 2 ++ .../bi/bikeshed/remove-install-check.patch | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/by-name/bi/bikeshed/remove-install-check.patch diff --git a/pkgs/by-name/bi/bikeshed/package.nix b/pkgs/by-name/bi/bikeshed/package.nix index f7f48af594ea..c534ee66e7ae 100644 --- a/pkgs/by-name/bi/bikeshed/package.nix +++ b/pkgs/by-name/bi/bikeshed/package.nix @@ -14,6 +14,8 @@ python3Packages.buildPythonApplication rec { hash = "sha256-QcypdeFIzEt2cx8PWWWhnMMhnc2oEWZUOm8kge4KJQY="; }; + patches = [ ./remove-install-check.patch ]; + build-system = [ python3Packages.setuptools ]; pythonRelaxDeps = true; diff --git a/pkgs/by-name/bi/bikeshed/remove-install-check.patch b/pkgs/by-name/bi/bikeshed/remove-install-check.patch new file mode 100644 index 000000000000..3b787b7069d1 --- /dev/null +++ b/pkgs/by-name/bi/bikeshed/remove-install-check.patch @@ -0,0 +1,28 @@ +diff --git i/bikeshed/__init__.py w/bikeshed/__init__.py +index 4450f6c..a697657 100644 +--- i/bikeshed/__init__.py ++++ w/bikeshed/__init__.py +@@ -32,23 +32,6 @@ def verify_python_version() -> None: + + verify_python_version() + +- +-def verify_requirements() -> None: +- try: +- subprocess.check_output([sys.executable, "-m", "pip", "check", "bikeshed"]) # noqa: S603 +- except subprocess.CalledProcessError as e: +- print("ERROR: Broken or incomplete manual installation.") +- print(str(e.output, encoding="utf-8")) +- requirements_file_path = os.path.join( +- os.path.dirname(os.path.dirname(os.path.realpath(__file__))), +- "requirements.txt", +- ) +- print(f'Run "pip3 install -r {requirements_file_path}" to complete installation') +- print("Meanwhile, attempting to run Bikeshed anyway...") +- +- +-verify_requirements() +- + from . import ( + config, + update,