2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pytestCheckHook,
|
|
|
|
matplotlib,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "squarify";
|
|
|
|
version = "0.4.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|