2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
poetry-core,
|
|
|
|
gobject-introspection,
|
|
|
|
gtk3,
|
|
|
|
pycairo,
|
|
|
|
pygobject3,
|
|
|
|
typing-extensions,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gaphas";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.1.1";
|
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-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-cZ25AJliym2D9SOJAg9wrAIGp32gz3aTPNGRijlT1eo=";
|
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
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ gtk3 ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +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;
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = [ ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|