From 982923c3e58b2a4eb1b3ffb8f1bd03b209bdf678 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:59:57 -0700 Subject: [PATCH] python3.pkgs.python-swiftclient: patch out duplicate script --- .../python-modules/python-swiftclient/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/python-swiftclient/default.nix b/pkgs/development/python-modules/python-swiftclient/default.nix index 72bfd35c8ca6..bb8320846862 100644 --- a/pkgs/development/python-modules/python-swiftclient/default.nix +++ b/pkgs/development/python-modules/python-swiftclient/default.nix @@ -22,6 +22,13 @@ buildPythonPackage rec { hash = "sha256-Hj3fmYzL6n3CWqbfjrPffTi/S8lrBl8vhEMeglmBezM="; }; + # remove duplicate script that will be created by setuptools from the + # entry_points section of setup.cfg + postPatch = '' + sed -i '/^scripts =/d' setup.cfg + sed -i '/bin\/swift/d' setup.cfg + ''; + nativeBuildInputs = [ installShellFiles ];