Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 50 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 pygobject3, 6 xvfb-run, 7 gobject-introspection, 8 gtk3, 9 pythonOlder, 10 pytest, 11}: 12 13buildPythonPackage rec { 14 version = "3.2.0"; 15 format = "setuptools"; 16 pname = "liblarch"; 17 disabled = pythonOlder "3.5.0"; 18 19 src = fetchFromGitHub { 20 owner = "getting-things-gnome"; 21 repo = "liblarch"; 22 rev = "v${version}"; 23 hash = "sha256-A2qChe2z6rAhjRVX5VoHQitebf/nMATdVZQgtlquuYg="; 24 }; 25 26 nativeCheckInputs = [ 27 gobject-introspection # for setup hook 28 gtk3 29 pytest 30 ]; 31 32 buildInputs = [ gtk3 ]; 33 34 propagatedBuildInputs = [ pygobject3 ]; 35 36 checkPhase = '' 37 runHook preCheck 38 ${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' pytest 39 runHook postCheck 40 ''; 41 42 meta = with lib; { 43 description = "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}