git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.bash_kernel: init at 0.7.1
commit6e52c1f7ba37ecde218d2492321e164d7bdb8e33 authorzimbatm <zimbatm@zimbatm.com> dateSat 25 Nov 2017, 15:20 (9 years ago) parent4a643ce
2 files changed+49
pkgs/development/python-modules/bash_kernel/default.nix+47 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/bash_kernel/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, fetchpatch
5+, ipykernel
6+, isPy27
7+, pexpect
8+}:
9+buildPythonPackage rec {
10+ pname = "bash_kernel";
11+ version = "0.7.1";
12+ name = "${pname}-${version}";
13+ format = "flit";
14+ disabled = isPy27;
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "1s2kc7m52kq28b4j1q3456g5ani6nmq4n0rpbqi3yvh7ks0rby19";
19+ };
20+
21+ patches = [
22+ (fetchpatch {
23+ url = "https://patch-diff.githubusercontent.com/raw/takluyver/bash_kernel/pull/69.diff";
24+ sha256 = "1qd7qjjmcph4dk6j0bl31h2fdmfiyyazvrc9xqqj8y21ki2sl33j";
25+ })
26+ ];
27+
28+ propagatedBuildInputs = [ ipykernel pexpect ];
29+
30+ doCheck = false;
31+
32+ preBuild = ''
33+ mkdir tmp
34+ export HOME=$PWD/tmp
35+ '';
36+
37+ postInstall = ''
38+ python -m bash_kernel.install --prefix $out
39+ '';
40+
41+ meta = {
42+ description = "Bash Kernel for Jupyter";
43+ homepage = "https://github.com/takluyver/bash_kernel";
44+ license = lib.licenses.bsd3;
45+ maintainers = with lib.maintainers; [ zimbatm ];
46+ };
47+}
pkgs/top-level/python-packages.nix+2
@@ -182,6 +182,8 @@ in {
182182 bap = pkgs.ocamlPackages_4_02.bap;
183183 };
184184
185+ bash_kernel = callPackage ../development/python-modules/bash_kernel { };
186+
185187 bayespy = callPackage ../development/python-modules/bayespy { };
186188
187189 bitcoin-price-api = callPackage ../development/python-modules/bitcoin-price-api { };