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";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.10.3";
|
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;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-I+/DsXppY//KOZgydDR4/Ks5qEsL4hLIiH+GaaFZHpA=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|