pythonPackages.bash_kernel: refactor pinning bash package

This commit is contained in:
Chris Ostrouchov 2020-08-07 13:11:13 -04:00 committed by Jon
parent eacff247fd
commit b1934ec6e9
2 changed files with 10 additions and 1 deletions

View File

@ -6,6 +6,7 @@
, isPy27 , isPy27
, python , python
, pexpect , pexpect
, bash
}: }:
buildPythonPackage rec { 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 ]; propagatedBuildInputs = [ ipykernel pexpect ];
# no tests # no tests

View File

@ -509,7 +509,9 @@ in {
baselines = callPackage ../development/python-modules/baselines { }; 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 { }; bashlex = callPackage ../development/python-modules/bashlex { };