504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
32 lines
729 B
Nix
32 lines
729 B
Nix
{ buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lib
|
|
, pytestCheckHook
|
|
, matplotlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "squarify";
|
|
version = "0.4.3";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|