1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, matplotlib
5, numpy
6, packaging
7}:
8
9buildPythonPackage rec {
10 pname = "adjusttext";
11 version = "0.8.1";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "Phlya";
16 repo = pname;
17 rev = "refs/tags/${version}";
18 hash = "sha256-Lhl6ykx5ynf+pBub5tBUaALm1w/88jbuSXPigE216NY=";
19 };
20
21 nativeBuildInputs = [
22 packaging
23 ];
24
25 propagatedBuildInputs = [
26 matplotlib
27 numpy
28 ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "adjustText"
35 ];
36
37 meta = with lib; {
38 description = "Iteratively adjust text position in matplotlib plots to minimize overlaps";
39 homepage = "https://github.com/Phlya/adjustText";
40 license = licenses.mit;
41 maintainers = with maintainers; [ samuela ];
42 };
43}