diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-11-03 22:11:11 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-11-21 12:38:54 +0100 |
commit | 39adcea9d65681e51044dc7ac6aa3a0df7092a74 (patch) | |
tree | 79b32d6c2a0aa6d0a12e63ffb9d03e7020133367 /pkgs/development/python-modules/ipykernel | |
parent | 3dd245c5f876af39436f7d700417784ba26249b0 (diff) | |
download | nixpkgs-39adcea9d65681e51044dc7ac6aa3a0df7092a74.tar nixpkgs-39adcea9d65681e51044dc7ac6aa3a0df7092a74.tar.gz nixpkgs-39adcea9d65681e51044dc7ac6aa3a0df7092a74.tar.bz2 nixpkgs-39adcea9d65681e51044dc7ac6aa3a0df7092a74.tar.lz nixpkgs-39adcea9d65681e51044dc7ac6aa3a0df7092a74.tar.xz nixpkgs-39adcea9d65681e51044dc7ac6aa3a0df7092a74.tar.zst nixpkgs-39adcea9d65681e51044dc7ac6aa3a0df7092a74.zip |
python36Packges.ipykernel: 4.8.2 -> 5.1.0
Diffstat (limited to 'pkgs/development/python-modules/ipykernel')
-rw-r--r-- | pkgs/development/python-modules/ipykernel/4.nix | 41 | ||||
-rw-r--r-- | pkgs/development/python-modules/ipykernel/default.nix | 30 |
2 files changed, 53 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/ipykernel/4.nix b/pkgs/development/python-modules/ipykernel/4.nix new file mode 100644 index 00000000000..49dfbf6ad8e --- /dev/null +++ b/pkgs/development/python-modules/ipykernel/4.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchPypi +, nose +, isPy27 +, mock +, ipython +, jupyter_client +, pexpect +, traitlets +, tornado +}: + +buildPythonPackage rec { + pname = "ipykernel"; + version = "4.10.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "699103c8e64886e3ec7053f2a6aa83bb90426063526f63a818732ff385202bad"; + }; + + checkInputs = [ nose ] ++ lib.optional isPy27 mock; + propagatedBuildInputs = [ + ipython + jupyter_client + pexpect + traitlets + tornado + ]; + + # Tests require backends. + # I don't want to add all supported backends as propagatedBuildInputs + doCheck = false; + + meta = { + description = "IPython Kernel for Jupyter"; + homepage = http://ipython.org/; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/development/python-modules/ipykernel/default.nix b/pkgs/development/python-modules/ipykernel/default.nix index 9d4392583be..43b1c9fd034 100644 --- a/pkgs/development/python-modules/ipykernel/default.nix +++ b/pkgs/development/python-modules/ipykernel/default.nix @@ -1,37 +1,31 @@ { lib , buildPythonPackage , fetchPypi -, nose -, isPy27 -, mock , ipython , jupyter_client -, pexpect , traitlets , tornado +, pythonOlder +, pytest +, nose }: buildPythonPackage rec { pname = "ipykernel"; - version = "4.8.2"; + version = "5.1.0"; + disabled = pythonOlder "3.4"; src = fetchPypi { inherit pname version; - sha256 = "c091449dd0fad7710ddd9c4a06e8b9e15277da306590bc07a3a1afa6b4453c8f"; + sha256 = "0fc0bf97920d454102168ec2008620066878848fcfca06c22b669696212e292f"; }; - buildInputs = [ nose ] ++ lib.optional isPy27 mock; - propagatedBuildInputs = [ - ipython - jupyter_client - pexpect - traitlets - tornado - ]; + checkInputs = [ pytest nose ]; + propagatedBuildInputs = [ ipython jupyter_client traitlets tornado ]; - # Tests require backends. - # I don't want to add all supported backends as propagatedBuildInputs - doCheck = false; + checkPhase = '' + HOME=$(mktemp -d) pytest ipykernel + ''; meta = { description = "IPython Kernel for Jupyter"; @@ -39,4 +33,4 @@ buildPythonPackage rec { license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ fridh ]; }; -} \ No newline at end of file +} |