depot/third_party/nixpkgs/pkgs/development/python-modules/gaphas/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

45 lines
821 B
Nix

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