depot/third_party/nixpkgs/pkgs/development/python-modules/squarify/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

33 lines
736 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 ];
};
}