2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-08-04 23:14:29 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, python
|
|
|
|
, pygobject3
|
2021-05-08 14:45:03 +01:00
|
|
|
, xvfb-run
|
2020-08-04 23:14:29 +01:00
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "3.0.1";
|
|
|
|
pname = "liblarch";
|
|
|
|
disabled = pythonOlder "3.5.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getting-things-gnome";
|
|
|
|
repo = "liblarch";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0xv2mfvyzipbny3iz8vll77wsqxfwh28xj6bj1ff0l452waph45m";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
gobject-introspection # for setup hook
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2021-05-08 14:45:03 +01:00
|
|
|
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' \
|
2020-08-04 23:14:29 +01:00
|
|
|
${python.interpreter} nix_run_setup test
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-04 23:14:29 +01:00
|
|
|
description = "A python library built to easily handle data structure such are lists, trees and acyclic graphs";
|
|
|
|
homepage = "https://github.com/getting-things-gnome/liblarch";
|
|
|
|
downloadPage = "https://github.com/getting-things-gnome/liblarch/releases";
|
2020-08-10 18:06:12 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
2020-08-04 23:14:29 +01:00
|
|
|
maintainers = with maintainers; [ oyren ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|