2021-12-26 17:43:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-09-26 12:46:18 +00:00
|
|
|
, fetchFromGitHub
|
2021-12-26 17:43:05 +00:00
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, packaging
|
2024-02-07 01:22:34 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
|
|
|
, setuptools
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adjusttext";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.0.4";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Phlya";
|
2024-02-07 01:22:34 +00:00
|
|
|
repo = "adjusttext";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-Lhl6ykx5ynf+pBub5tBUaALm1w/88jbuSXPigE216NY=";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
packaging
|
2024-02-07 01:22:34 +00:00
|
|
|
setuptools
|
2021-12-26 17:43:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
numpy
|
2024-02-07 01:22:34 +00:00
|
|
|
scipy
|
2021-12-26 17:43:05 +00:00
|
|
|
];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"adjustText"
|
|
|
|
];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Iteratively adjust text position in matplotlib plots to minimize overlaps";
|
|
|
|
homepage = "https://github.com/Phlya/adjustText";
|
2024-02-07 01:22:34 +00:00
|
|
|
changelog = "https://github.com/Phlya/adjustText/releases/tag/v${version}";
|
2021-09-26 12:46:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ samuela ];
|
|
|
|
};
|
|
|
|
}
|