f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
50 lines
980 B
Nix
50 lines
980 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
matplotlib,
|
|
numpy,
|
|
packaging,
|
|
pythonOlder,
|
|
scipy,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adjusttext";
|
|
version = "1.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Phlya";
|
|
repo = "adjusttext";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-2EaFKvRdFPGnDlO8owjP1vCIY1hTQ3tep5oXV/JeU9M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
packaging
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "adjustText" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|