nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchPypi
2, traitlets
3
4# tests
5, ipython
6}:
7
8buildPythonPackage rec {
9 pname = "matplotlib-inline";
10 version = "0.1.3";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "a04bfba22e0d1395479f866853ec1ee28eea1485c1d69a6faf00dc3e24ff34ee";
15 };
16
17 propagatedBuildInputs = [
18 traitlets
19 ];
20
21 # wants to import ipython, which creates a circular dependency
22 doCheck = false;
23 pythonImportsCheck = [ "matplotlib_inline" ];
24
25 passthru.tests = { inherit ipython; };
26
27 meta = with lib; {
28 description = "Matplotlib Inline Back-end for IPython and Jupyter";
29 homepage = "https://github.com/ipython/matplotlib-inline";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ jonringer ];
32 };
33}