2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
43 lines
799 B
Nix
43 lines
799 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, matplotlib
|
|
, numpy
|
|
, packaging
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adjusttext";
|
|
version = "0.8.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Phlya";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Lhl6ykx5ynf+pBub5tBUaALm1w/88jbuSXPigE216NY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
packaging
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
numpy
|
|
];
|
|
|
|
# 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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ samuela ];
|
|
};
|
|
}
|