mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00

nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
748 B
Nix
34 lines
748 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
imagemagick,
|
|
matplotlib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "matplotlib-sixel";
|
|
version = "0.0.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-JXOb1/IacJV8bhDvF+OPs2Yg1tgRDOqwiAQfiSKTlew=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ matplotlib ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace sixel/sixel.py \
|
|
--replace '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 ];
|
|
};
|
|
}
|