depot/third_party/nixpkgs/pkgs/development/python-modules/gaphas/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

48 lines
879 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 = [ ];
};
}