1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, python 5, pygobject3 6, xvfb-run 7, gobject-introspection 8, gtk3 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 version = "3.2.0"; 14 pname = "liblarch"; 15 disabled = pythonOlder "3.5.0"; 16 17 src = fetchFromGitHub { 18 owner = "getting-things-gnome"; 19 repo = "liblarch"; 20 rev = "v${version}"; 21 sha256 = "sha256-A2qChe2z6rAhjRVX5VoHQitebf/nMATdVZQgtlquuYg="; 22 }; 23 24 checkInputs = [ 25 gobject-introspection # for setup hook 26 gtk3 27 ]; 28 29 buildInputs = [ gtk3 ]; 30 31 propagatedBuildInputs = [ 32 pygobject3 33 ]; 34 35 checkPhase = '' 36 runHook preCheck 37 ${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' \ 38 ${python.interpreter} nix_run_setup test 39 runHook postCheck 40 ''; 41 42 meta = with lib; { 43 description = "A python library built to easily handle data structure such are lists, trees and acyclic graphs"; 44 homepage = "https://github.com/getting-things-gnome/liblarch"; 45 downloadPage = "https://github.com/getting-things-gnome/liblarch/releases"; 46 license = licenses.lgpl3Plus; 47 maintainers = with maintainers; [ oyren ]; 48 platforms = platforms.linux; 49 }; 50}