depot/third_party/nixpkgs/pkgs/development/python-modules/adjusttext/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

43 lines
801 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, numpy
, packaging
}:
buildPythonPackage rec {
pname = "adjusttext";
version = "0.8.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Phlya";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-N+eCDwK5E9zGKG7uruuhnpTlJeiXG2a15PKW0gJFAqw=";
};
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 ];
};
}