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