depot/third_party/nixpkgs/pkgs/development/python-modules/ical/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

56 lines
1 KiB
Nix

{ lib
, python-dateutil
, buildPythonPackage
, fetchFromGitHub
, freezegun
, tzdata
, pyparsing
, pydantic
, pytest-asyncio
, pytest-benchmark
, pytest-golden
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "ical";
version = "4.1.1";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "allenporter";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-yPFFOhAscLvhKo7sgXtH1HwcDYq8kWKHzrr3ep857Io=";
};
propagatedBuildInputs = [
python-dateutil
tzdata
pydantic
pyparsing
];
checkInputs = [
freezegun
pytest-asyncio
pytest-benchmark
pytest-golden
pytestCheckHook
];
pythonImportsCheck = [
"ical"
];
meta = with lib; {
description = "Library for handling iCalendar";
homepage = "https://github.com/allenporter/ical";
changelog = "https://github.com/allenporter/ical/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}