1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, poetry-core 6, gobject-introspection 7, gtk3 8, pycairo 9, pygobject3 10, typing-extensions 11}: 12 13buildPythonPackage rec { 14 pname = "gaphas"; 15 version = "3.1.9"; 16 disabled = pythonOlder "3.7"; 17 18 format = "pyproject"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "sha256-S6cRsfqXYM4mSVSs2M8fET5ShFClKkGkod2w2y6F2gc="; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 buildInputs = [ gobject-introspection gtk3 ]; 30 31 propagatedBuildInputs = [ 32 pycairo 33 pygobject3 34 typing-extensions 35 ]; 36 37 pythonImportsCheck = [ "gaphas" ]; 38 39 meta = with lib; { 40 description = "GTK+ based diagramming widget"; 41 maintainers = with maintainers; [ wolfangaukang ]; 42 homepage = "https://github.com/gaphor/gaphas"; 43 license = licenses.asl20; 44 }; 45}