lol

Merge pull request #250689 from tjni/salt

salt: fix duplicate scripts in wheel

authored by

Theodore Ni and committed by
GitHub
fbff5555 f967c5c1

+23 -15
+23 -15
pkgs/tools/admin/salt/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , python3 4 + , fetchpatch 4 5 , fetchPypi 5 6 , openssl 6 7 # Many Salt modules require various Python modules to be installed, ··· 11 12 python3.pkgs.buildPythonApplication rec { 12 13 pname = "salt"; 13 14 version = "3006.2"; 15 + format = "setuptools"; 14 16 15 17 src = fetchPypi { 16 18 inherit pname version; 17 19 hash = "sha256-+I0aJeIw2co9/eE9rdRmB6KxdQq1WoY1nFpCUedx8Wc="; 18 20 }; 19 21 20 - propagatedBuildInputs = with python3.pkgs; [ 21 - distro 22 - jinja2 23 - jmespath 24 - looseversion 25 - markupsafe 26 - msgpack 27 - packaging 28 - psutil 29 - pycryptodomex 30 - pyyaml 31 - pyzmq 32 - requests 33 - ] ++ extraInputs; 34 - 35 22 patches = [ 23 + # https://github.com/saltstack/salt/pull/63795 24 + (fetchpatch { 25 + name = "remove-duplicate-scripts.patch"; 26 + url = "https://github.com/saltstack/salt/commit/6b9463836e70e40409dbf653f01aa94ef869dfe7.patch"; 27 + hash = "sha256-VcVdKC8EH4qoWHtq6eEPl8OviR4eA2k/S2lWNQbubJw="; 28 + }) 36 29 ./fix-libcrypto-loading.patch 37 30 ]; 38 31 ··· 50 43 substituteInPlace "requirements/zeromq.txt" \ 51 44 --replace 'pyzmq==25.0.2 ; sys_platform == "win32"' "" 52 45 ''; 46 + 47 + propagatedBuildInputs = with python3.pkgs; [ 48 + distro 49 + jinja2 50 + jmespath 51 + looseversion 52 + markupsafe 53 + msgpack 54 + packaging 55 + psutil 56 + pycryptodomex 57 + pyyaml 58 + pyzmq 59 + requests 60 + ] ++ extraInputs; 53 61 54 62 # Don't use fixed dependencies on Darwin 55 63 USE_STATIC_REQUIREMENTS = "0";