depot/third_party/nixpkgs/pkgs/development/python-modules/x-wr-timezone/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

51 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, icalendar
, pytz
, pytestCheckHook
, restructuredtext-lint
, pygments
}:
buildPythonPackage rec {
pname = "x-wr-timezone";
version = "0.0.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "niccokunzmann";
repo = "x-wr-timezone";
rev = "v${version}";
hash = "sha256-9B1gXabpZsJSHYUHLu6bBGidO3C5m/I0oOc5U/mbX0I=";
};
propagatedBuildInputs = [
icalendar
pytz
];
nativeCheckInputs = [
pytestCheckHook
restructuredtext-lint
pygments
];
preCheck = ''
export PATH=$out/bin:$PATH
'';
# https://github.com/niccokunzmann/x-wr-timezone/issues/8
doCheck = false;
pythonImportsCheck = [ "x_wr_timezone" ];
meta = {
changelog = "https://github.com/niccokunzmann/x-wr-timezone/blob/${src.rev}/README.rst#changelog";
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 ];
};
}