depot/third_party/nixpkgs/pkgs/development/python-modules/adjusttext/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

51 lines
975 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, numpy
, packaging
, pythonOlder
, scipy
, setuptools
}:
buildPythonPackage rec {
pname = "adjusttext";
version = "1.0.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Phlya";
repo = "adjusttext";
rev = "refs/tags/v${version}";
hash = "sha256-Lhl6ykx5ynf+pBub5tBUaALm1w/88jbuSXPigE216NY=";
};
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 ];
};
}