2021-11-01 00:17:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, poetry-core
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, pycairo
|
|
|
|
, pygobject3
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gaphas";
|
2022-03-24 04:57:41 +00:00
|
|
|
version = "3.6.0";
|
2021-11-01 00:17:04 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-24 04:57:41 +00:00
|
|
|
sha256 = "sha256-yleYbAJdDVzZrMQ3izi9UX3Ji1vIuQDc+RK5+wzrMi4=";
|
2021-11-01 00:17:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ gobject-introspection gtk3 ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "gaphas" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GTK+ based diagramming widget";
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
homepage = "https://github.com/gaphor/gaphas";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|