depot/third_party/nixpkgs/pkgs/development/python-modules/gaphas/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

45 lines
834 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, poetry-core
, gobject-introspection
, gtk3
, pycairo
, pygobject3
, typing-extensions
}:
buildPythonPackage rec {
pname = "gaphas";
version = "3.5.0";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "526f1943dd54efe91fbf45db38049103611fbac5939c42ad172ba9d2dce71fe1";
};
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;
};
}