2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
icalendar,
|
2024-10-11 05:15:48 +00:00
|
|
|
tzdata,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
restructuredtext-lint,
|
|
|
|
pygments,
|
2024-10-11 05:15:48 +00:00
|
|
|
pytz,
|
2022-12-02 08:20:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "x-wr-timezone";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "1.0.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "niccokunzmann";
|
|
|
|
repo = "x-wr-timezone";
|
|
|
|
rev = "v${version}";
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-MDFniFhgRuNtYITH/IUUP/HHC79coqxgXrlErj+Yrcs=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
dependencies = [
|
2022-12-02 08:20:57 +00:00
|
|
|
icalendar
|
2024-10-11 05:15:48 +00:00
|
|
|
tzdata
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
pytestCheckHook
|
2023-11-16 04:20:00 +00:00
|
|
|
restructuredtext-lint
|
2022-12-02 08:20:57 +00:00
|
|
|
pygments
|
2024-10-11 05:15:48 +00:00
|
|
|
pytz
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "x_wr_timezone" ];
|
|
|
|
|
|
|
|
meta = {
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/niccokunzmann/x-wr-timezone/blob/${src.rev}/README.rst#changelog";
|
2022-12-02 08:20:57 +00:00
|
|
|
description = "Convert calendars using X-WR-TIMEZONE to standard ones";
|
|
|
|
homepage = "https://github.com/niccokunzmann/x-wr-timezone";
|
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|