nixpkgs/pkgs/development/python-modules/liblarch/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

52 lines
1.1 KiB
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, python
, pygobject3
, xvfb-run
, gobject-introspection
, gtk3
, pythonOlder
}:
buildPythonPackage rec {
version = "3.2.0";
format = "setuptools";
pname = "liblarch";
disabled = pythonOlder "3.5.0";
src = fetchFromGitHub {
owner = "getting-things-gnome";
repo = "liblarch";
rev = "v${version}";
hash = "sha256-A2qChe2z6rAhjRVX5VoHQitebf/nMATdVZQgtlquuYg=";
};
nativeCheckInputs = [
gobject-introspection # for setup hook
gtk3
];
buildInputs = [ gtk3 ];
propagatedBuildInputs = [
pygobject3
];
checkPhase = ''
runHook preCheck
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' \
${python.interpreter} nix_run_setup test
runHook postCheck
'';
meta = with lib; {
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;
};
}