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

48 lines
911 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
poetry-core,
gobject-introspection,
gtk3,
pycairo,
pygobject3,
typing-extensions,
}:
buildPythonPackage rec {
pname = "gaphas";
version = "4.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-x4CVY2i/SCjq/c1Xfx3gdx7jTims1aKd05ziN4DdE1g=";
};
nativeBuildInputs = [
poetry-core
gobject-introspection
];
buildInputs = [ gtk3 ];
propagatedBuildInputs = [
pycairo
pygobject3
typing-extensions
];
pythonImportsCheck = [ "gaphas" ];
meta = with lib; {
description = "GTK+ based diagramming widget";
homepage = "https://github.com/gaphor/gaphas";
changelog = "https://github.com/gaphor/gaphas/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ wolfangaukang ];
};
}