python3Packages.bash_kernel: init at 0.7.1

This commit is contained in:
zimbatm 2017-11-25 15:20:31 +00:00
parent 4a643ce7db
commit 6e52c1f7ba
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, ipykernel
, isPy27
, pexpect
}:
buildPythonPackage rec {
pname = "bash_kernel";
version = "0.7.1";
name = "${pname}-${version}";
format = "flit";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1s2kc7m52kq28b4j1q3456g5ani6nmq4n0rpbqi3yvh7ks0rby19";
};
patches = [
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/takluyver/bash_kernel/pull/69.diff";
sha256 = "1qd7qjjmcph4dk6j0bl31h2fdmfiyyazvrc9xqqj8y21ki2sl33j";
})
];
propagatedBuildInputs = [ ipykernel pexpect ];
doCheck = false;
preBuild = ''
mkdir tmp
export HOME=$PWD/tmp
'';
postInstall = ''
python -m bash_kernel.install --prefix $out
'';
meta = {
description = "Bash Kernel for Jupyter";
homepage = "https://github.com/takluyver/bash_kernel";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ zimbatm ];
};
}

View File

@ -182,6 +182,8 @@ in {
bap = pkgs.ocamlPackages_4_02.bap;
};
bash_kernel = callPackage ../development/python-modules/bash_kernel { };
bayespy = callPackage ../development/python-modules/bayespy { };
bitcoin-price-api = callPackage ../development/python-modules/bitcoin-price-api { };