Files
nixpkgs/pkgs/development/python-modules/gaphas/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
873 B
Nix

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