mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
39 lines
813 B
Nix
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 ];
|
|
};
|
|
})
|