mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
0897afbf92
Diff: https://github.com/collective/icalendar/compare/refs/tags/v5.0.4...v5.0.7 Changelog: https://github.com/collective/icalendar/blob/v5.0.7/CHANGES.rst
45 lines
904 B
Nix
45 lines
904 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, backports-zoneinfo
|
|
, python-dateutil
|
|
, pytz
|
|
, hypothesis
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "5.0.7";
|
|
pname = "icalendar";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "collective";
|
|
repo = "icalendar";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-fblcbyctnvd7DOc+tMWzg+90NHzZvH5xiY6BfJakQVo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
python-dateutil
|
|
pytz
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
backports-zoneinfo
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytest
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/collective/icalendar/blob/v${version}/CHANGES.rst";
|
|
description = "A parser/generator of iCalendar files";
|
|
homepage = "https://github.com/collective/icalendar";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ olcai ];
|
|
};
|
|
|
|
}
|