2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, python
|
|
|
|
, pygobject3
|
2021-05-20 23:08:51 +00:00
|
|
|
, xvfb-run
|
2020-08-20 17:08:02 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "3.2.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
pname = "liblarch";
|
|
|
|
disabled = pythonOlder "3.5.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getting-things-gnome";
|
|
|
|
repo = "liblarch";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-A2qChe2z6rAhjRVX5VoHQitebf/nMATdVZQgtlquuYg=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
gobject-introspection # for setup hook
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
buildInputs = [ gtk3 ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2021-05-20 23:08:51 +00:00
|
|
|
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' \
|
2020-08-20 17:08:02 +00:00
|
|
|
${python.interpreter} nix_run_setup test
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00: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";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ oyren ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|