2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, poetry-core
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, pycairo
|
|
|
|
, pygobject3
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gaphas";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.0.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-x4CVY2i/SCjq/c1Xfx3gdx7jTims1aKd05ziN4DdE1g=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2023-08-10 07:59:29 +00:00
|
|
|
gobject-introspection
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gaphas"
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GTK+ based diagramming widget";
|
|
|
|
homepage = "https://github.com/gaphor/gaphas";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/gaphor/gaphas/releases/tag/${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.asl20;
|
2022-12-28 21:21:41 +00:00
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|