From 51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Thu, 20 Dec 2018 12:18:30 +0100 Subject: [PATCH] pythonPackages.jupytext: init at 0.8.4 (#52545) --- .../python-modules/jupytext/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/jupytext/default.nix diff --git a/pkgs/development/python-modules/jupytext/default.nix b/pkgs/development/python-modules/jupytext/default.nix new file mode 100644 index 000000000000..5622ee1669df --- /dev/null +++ b/pkgs/development/python-modules/jupytext/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchPypi +, testfixtures +, pyyaml +, mock +, nbformat +, pytest +}: + +buildPythonPackage rec { + pname = "jupytext"; + version = "0.8.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "1m35m9z4vy480d2200nd4lk9n5s4z3zcnq0d9rdlh4yv5264mrgf"; + }; + + propagatedBuildInputs = [ + pyyaml + nbformat + testfixtures + ]; + checkInputs = [ + pytest + ]; + # setup.py checks for those even though they're not needed at runtime (only + # for tests), thus not propagated + buildInputs = [ + mock + pytest + ]; + + # requires test notebooks which are not shipped with the pypi release + doCheck = false; + checkPhase = '' + py.test + ''; + + meta = with lib; { + description = "Jupyter notebooks as Markdown documents, Julia, Python or R scripts"; + homepage = https://github.com/mwouts/jupytext; + license = licenses.mit; + maintainers = with maintainers; [ timokau ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 66ca01dc7b48..3f5ae962697b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1871,6 +1871,8 @@ in { jupyterlab = callPackage ../development/python-modules/jupyterlab {}; + jupytext = callPackage ../development/python-modules/jupytext { }; + PyLTI = callPackage ../development/python-modules/pylti { }; lmdb = callPackage ../development/python-modules/lmdb { };