mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
f975769295
Diff: https://github.com/allenporter/ical/compare/refs/tags/5.0.1...5.1.0 Changelog: https://github.com/allenporter/ical/releases/tag/5.1.0
70 lines
1.2 KiB
Nix
70 lines
1.2 KiB
Nix
{ lib
|
|
, python-dateutil
|
|
, buildPythonPackage
|
|
, emoji
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, tzdata
|
|
, pyparsing
|
|
, pydantic
|
|
, pytest-asyncio
|
|
, pytest-benchmark
|
|
, pytest-golden
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ical";
|
|
version = "5.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "allenporter";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ffNgYtwErt9tzfDWQnt0h7QHQL+gMvFpP8zH6FSoHEM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"tzdata"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
emoji
|
|
python-dateutil
|
|
tzdata
|
|
pydantic
|
|
pyparsing
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pytest-asyncio
|
|
pytest-benchmark
|
|
pytest-golden
|
|
pytestCheckHook
|
|
pyyaml
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|