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