mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
python311Packages.adjusttext: refactor
This commit is contained in:
parent
aacf584689
commit
a201bcf5cf
@ -4,27 +4,34 @@
|
||||
, matplotlib
|
||||
, numpy
|
||||
, packaging
|
||||
, pythonOlder
|
||||
, scipy
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adjusttext";
|
||||
version = "0.8.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Phlya";
|
||||
repo = pname;
|
||||
repo = "adjusttext";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-Lhl6ykx5ynf+pBub5tBUaALm1w/88jbuSXPigE216NY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
packaging
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
matplotlib
|
||||
numpy
|
||||
scipy
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
@ -37,6 +44,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Iteratively adjust text position in matplotlib plots to minimize overlaps";
|
||||
homepage = "https://github.com/Phlya/adjustText";
|
||||
changelog = "https://github.com/Phlya/adjustText/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ samuela ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user