1{ lib
2, buildPythonPackage
3, fetchPypi
4, imagemagick
5, matplotlib
6}:
7
8buildPythonPackage rec {
9 pname = "matplotlib-sixel";
10 version = "0.0.2";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-JXOb1/IacJV8bhDvF+OPs2Yg1tgRDOqwiAQfiSKTlew=";
15 };
16
17 propagatedBuildInputs = [ matplotlib ];
18
19 postPatch = ''
20 substituteInPlace sixel/sixel.py \
21 --replace 'Popen(["convert",' 'Popen(["${imagemagick}/bin/convert",'
22 '';
23
24 pythonImportsCheck = [ "sixel" ];
25
26 meta = with lib; {
27 description = "A sixel graphics backend for matplotlib";
28 homepage = "https://github.com/jonathf/matplotlib-sixel";
29 license = licenses.bsd3;
30 maintainers = with maintainers; [ GaetanLepage ];
31 };
32}