depot/third_party/nixpkgs/pkgs/development/python-modules/gaphas/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

51 lines
912 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, poetry-core
, gobject-introspection
, gtk3
, pycairo
, pygobject3
, typing-extensions
}:
buildPythonPackage rec {
pname = "gaphas";
version = "3.10.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-I+/DsXppY//KOZgydDR4/Ks5qEsL4hLIiH+GaaFZHpA=";
};
nativeBuildInputs = [
poetry-core
];
buildInputs = [
gobject-introspection
gtk3
];
propagatedBuildInputs = [
pycairo
pygobject3
typing-extensions
];
pythonImportsCheck = [
"gaphas"
];
meta = with lib; {
description = "GTK+ based diagramming widget";
homepage = "https://github.com/gaphor/gaphas";
changelog = "https://github.com/gaphor/gaphas/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ wolfangaukang ];
};
}