summary refs log tree commit diff
path: root/pkgs/development/python-modules/jupytext
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-12-20 12:18:30 +0100
committerGitHub <noreply@github.com>2018-12-20 12:18:30 +0100
commit51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0 (patch)
tree9bada9585f9b62bea8202ac0cd02ff9f00e29af0 /pkgs/development/python-modules/jupytext
parent4040b43a258adb070c37eaf05d496c333cbc14f6 (diff)
downloadnixpkgs-51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0.tar
nixpkgs-51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0.tar.gz
nixpkgs-51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0.tar.bz2
nixpkgs-51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0.tar.lz
nixpkgs-51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0.tar.xz
nixpkgs-51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0.tar.zst
nixpkgs-51fdee8b9299a66e2ae1a6a6deab4c2f67eb13e0.zip
pythonPackages.jupytext: init at 0.8.4 (#52545)
Diffstat (limited to 'pkgs/development/python-modules/jupytext')
-rw-r--r--pkgs/development/python-modules/jupytext/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/jupytext/default.nix b/pkgs/development/python-modules/jupytext/default.nix
new file mode 100644
index 00000000000..5622ee1669d
--- /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 ];
+  };
+}