2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
gobject-introspection,
|
|
|
|
goocanvas2,
|
|
|
|
gtk3,
|
|
|
|
pkg-config,
|
|
|
|
pygobject3,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-08-22 20:05:09 +00:00
|
|
|
pname = "goocalendar";
|
|
|
|
version = "0.8.0";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-08-22 20:05:09 +00:00
|
|
|
pname = "GooCalendar";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-LwL5TLRkD6ALucabLUeB0k4rIX+O/aW2ebS2rZPjIUs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pygobject3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
goocanvas2
|
|
|
|
];
|
|
|
|
|
|
|
|
# No upstream tests available
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "goocalendar" ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Calendar widget for GTK using PyGoocanvas";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://goocalendar.tryton.org/";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://foss.heptapod.net/tryton/goocalendar/-/blob/${version}/CHANGELOG";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ udono ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|