summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/bash_kernel
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2017-11-25 15:20:31 +0000
committerzimbatm <zimbatm@zimbatm.com>2017-11-25 19:10:43 +0000
commit6e52c1f7ba37ecde218d2492321e164d7bdb8e33 (patch)
tree793e2f2a75b9f9e859ba08a763525c41c53769d2 /pkgs/development/python-modules/bash_kernel
parentpythonPackages.pexpect: 4.2.1 -> 4.3.0 (diff)
downloadnixpkgs-6e52c1f7ba37ecde218d2492321e164d7bdb8e33.tar.gz
python3Packages.bash_kernel: init at 0.7.1
Diffstat (limited to 'pkgs/development/python-modules/bash_kernel')
-rw-r--r--pkgs/development/python-modules/bash_kernel/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bash_kernel/default.nix b/pkgs/development/python-modules/bash_kernel/default.nix
new file mode 100644
index 000000000000..f35d8fae690c
--- /dev/null
+++ b/pkgs/development/python-modules/bash_kernel/default.nix
@@ -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 ];
+ };
+}