python3.pkgs.python-swiftclient: patch out duplicate script

This commit is contained in:
Theodore Ni 2023-08-17 17:59:57 -07:00
parent b2d45d788a
commit 982923c3e5
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -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
];