about summary refs log tree commit diff
path: root/pkgs/development/python-modules/matplotlib-inline
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2021-06-18 19:03:01 -0700
committerMartin Weinelt <hexa@darmstadt.ccc.de>2021-06-22 13:42:50 +0200
commit535901f904a1fc0e3252db5323b97e9102b3bfcf (patch)
tree483544fefaad6c8216173ebb14a7c23ddf7a7aea /pkgs/development/python-modules/matplotlib-inline
parentcfcdc3859e7831361a10cced0b41047e9985b4da (diff)
python3Packages.matplotlib-inline: init at 0.1.2
Diffstat (limited to 'pkgs/development/python-modules/matplotlib-inline')
-rw-r--r--pkgs/development/python-modules/matplotlib-inline/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/matplotlib-inline/default.nix b/pkgs/development/python-modules/matplotlib-inline/default.nix
new file mode 100644
index 0000000000000..f4c220dea6c6d
--- /dev/null
+++ b/pkgs/development/python-modules/matplotlib-inline/default.nix
@@ -0,0 +1,35 @@
+{ lib, buildPythonPackage, fetchPypi
+, matplotlib
+, traitlets
+
+# tests
+, ipython
+}:
+
+buildPythonPackage rec {
+  pname = "matplotlib-inline";
+  version = "0.1.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0glrhcv1zqck1whsh3p75x0chda588xw22swbmvqalwz7kvmy7gl";
+  };
+
+  propagatedBuildInputs = [
+    matplotlib # not documented, but required
+    traitlets
+  ];
+
+  # wants to import ipython, which creates a circular dependency
+  doCheck = false;
+  pythonImportsCheck = [ "matplotlib_inline" ];
+
+  passthru.tests = { inherit ipython; };
+
+  meta = with lib; {
+    description = "Matplotlib Inline Back-end for IPython and Jupyter";
+    homepage = "https://github.com/ipython/matplotlib-inline";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ jonringer ];
+  };
+}