1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, matplotlib
5, numpy
6, packaging
7}:
8
9buildPythonPackage rec {
10 pname = "adjusttext";
11 version = "0.7.3.1";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "Phlya";
16 repo = pname;
17 rev = version;
18 sha256 = "1a6hizx1cnplj0irn8idgda2lacsb61dw464cwx798pjr1gd401n";
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}