pythonPackages.bash_kernel: refactor pinning bash package
This commit is contained in:
parent
eacff247fd
commit
b1934ec6e9
@ -6,6 +6,7 @@
|
||||
, isPy27
|
||||
, python
|
||||
, pexpect
|
||||
, bash
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -26,6 +27,12 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace bash_kernel/kernel.py \
|
||||
--replace "'bash'" "'${bash}/bin/bash'" \
|
||||
--replace "\"bash\"" "'${bash}/bin/bash'"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ ipykernel pexpect ];
|
||||
|
||||
# no tests
|
||||
|
@ -509,7 +509,9 @@ in {
|
||||
|
||||
baselines = callPackage ../development/python-modules/baselines { };
|
||||
|
||||
bash_kernel = callPackage ../development/python-modules/bash_kernel { };
|
||||
bash_kernel = callPackage ../development/python-modules/bash_kernel {
|
||||
inherit (pkgs) bash;
|
||||
};
|
||||
|
||||
bashlex = callPackage ../development/python-modules/bashlex { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user