1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, pytestCheckHook 5, matplotlib 6}: 7 8buildPythonPackage rec { 9 pname = "squarify"; 10 version = "0.4.3"; 11 12 src = fetchFromGitHub { 13 owner = "laserson"; 14 repo = pname; 15 rev = "refs/tags/v${version}"; 16 hash = "sha256-zSv+6xT9H4WyShRnwjjcNMjY19AFlQ6bw9Mh9p2rL08="; 17 }; 18 19 nativeCheckInputs = [ pytestCheckHook ]; 20 21 propagatedBuildInputs = [ matplotlib ]; 22 23 pythonImportsCheck = [ "squarify" ]; 24 25 meta = with lib; { 26 homepage = "https://github.com/laserson/squarify"; 27 description = "Pure Python implementation of the squarify treemap layout algorithm"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ veehaitch ]; 30 }; 31}