mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python311Packages.matplotlib-sixel: modernize
This commit is contained in:
parent
cdfe7cc796
commit
7b60a1f42e
1 changed files with 6 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
|
setuptools,
|
||||||
imagemagick,
|
imagemagick,
|
||||||
matplotlib,
|
matplotlib,
|
||||||
}:
|
}:
|
||||||
|
@ -9,18 +10,20 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "matplotlib-sixel";
|
pname = "matplotlib-sixel";
|
||||||
version = "0.0.2";
|
version = "0.0.2";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-JXOb1/IacJV8bhDvF+OPs2Yg1tgRDOqwiAQfiSKTlew=";
|
hash = "sha256-JXOb1/IacJV8bhDvF+OPs2Yg1tgRDOqwiAQfiSKTlew=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ matplotlib ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [ matplotlib ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace sixel/sixel.py \
|
substituteInPlace sixel/sixel.py \
|
||||||
--replace 'Popen(["convert",' 'Popen(["${imagemagick}/bin/convert",'
|
--replace-fail 'Popen(["convert",' 'Popen(["${imagemagick}/bin/convert",'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "sixel" ];
|
pythonImportsCheck = [ "sixel" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue