pythonPackages.bash_kernel: refactor pinning bash package
This commit is contained in:
parent
eacff247fd
commit
b1934ec6e9
@ -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
|
||||||
|
@ -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 { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user