2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
packaging,
|
|
|
|
pythonOlder,
|
|
|
|
scipy,
|
|
|
|
setuptools,
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adjusttext";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.2.0";
|
2024-02-07 01:22:34 +00:00
|
|
|
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}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-2EaFKvRdFPGnDlO8owjP1vCIY1hTQ3tep5oXV/JeU9M=";
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|