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