mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
Merge pull request #250689 from tjni/salt
salt: fix duplicate scripts in wheel
This commit is contained in:
commit
fbff555535
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, python3
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, openssl
|
||||
# Many Salt modules require various Python modules to be installed,
|
||||
@ -11,28 +12,20 @@
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "salt";
|
||||
version = "3006.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-+I0aJeIw2co9/eE9rdRmB6KxdQq1WoY1nFpCUedx8Wc=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
distro
|
||||
jinja2
|
||||
jmespath
|
||||
looseversion
|
||||
markupsafe
|
||||
msgpack
|
||||
packaging
|
||||
psutil
|
||||
pycryptodomex
|
||||
pyyaml
|
||||
pyzmq
|
||||
requests
|
||||
] ++ extraInputs;
|
||||
|
||||
patches = [
|
||||
# https://github.com/saltstack/salt/pull/63795
|
||||
(fetchpatch {
|
||||
name = "remove-duplicate-scripts.patch";
|
||||
url = "https://github.com/saltstack/salt/commit/6b9463836e70e40409dbf653f01aa94ef869dfe7.patch";
|
||||
hash = "sha256-VcVdKC8EH4qoWHtq6eEPl8OviR4eA2k/S2lWNQbubJw=";
|
||||
})
|
||||
./fix-libcrypto-loading.patch
|
||||
];
|
||||
|
||||
@ -51,6 +44,21 @@ python3.pkgs.buildPythonApplication rec {
|
||||
--replace 'pyzmq==25.0.2 ; sys_platform == "win32"' ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
distro
|
||||
jinja2
|
||||
jmespath
|
||||
looseversion
|
||||
markupsafe
|
||||
msgpack
|
||||
packaging
|
||||
psutil
|
||||
pycryptodomex
|
||||
pyyaml
|
||||
pyzmq
|
||||
requests
|
||||
] ++ extraInputs;
|
||||
|
||||
# Don't use fixed dependencies on Darwin
|
||||
USE_STATIC_REQUIREMENTS = "0";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user