Files
nixpkgs/pkgs/development/python-modules/squarify/default.nix
2026-09-17 15:16:10 +00:00

39 lines
813 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
setuptools,
pytestCheckHook,
matplotlib,
}:
buildPythonPackage (finalAttrs: {
pname = "squarify";
version = "0.4.5";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "laserson";
repo = "squarify";
tag = "v${finalAttrs.version}";
hash = "sha256-4c04HXtw5BcdKf+MhwKnYBoMqLlvaxQy2/qCZP6u8bg=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
dependencies = [ matplotlib ];
pythonImportsCheck = [ "squarify" ];
meta = {
homepage = "https://github.com/laserson/squarify";
description = "Pure Python implementation of the squarify treemap layout algorithm";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ veehaitch ];
};
})