summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/squarify/default.nix
blob: e0fe054156c672aaf85b36c1acf3cec49f2b803b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ buildPythonPackage
, fetchFromGitHub
, lib
, pytestCheckHook
, matplotlib
}:

buildPythonPackage rec {
  pname = "squarify";
  version = "0.4.3";

  src = fetchFromGitHub {
    owner = "laserson";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-zSv+6xT9H4WyShRnwjjcNMjY19AFlQ6bw9Mh9p2rL08=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  propagatedBuildInputs = [ matplotlib ];

  pythonImportsCheck = [ "squarify" ];

  meta = with lib; {
    homepage = "https://github.com/laserson/squarify";
    description = "Pure Python implementation of the squarify treemap layout algorithm";
    license = licenses.asl20;
    maintainers = with maintainers; [ veehaitch ];
  };
}