Files
nixpkgs/pkgs/development/python-modules/icalendar/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

49 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
backports-zoneinfo,
python-dateutil,
pytz,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "5.0.12";
pname = "icalendar";
pyproject = true;
src = fetchFromGitHub {
owner = "collective";
repo = "icalendar";
rev = "refs/tags/v${version}";
hash = "sha256-313NcknY2zad4lI+/P0szDVjEQ8VatnSiBiaG/Ta1Bw=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
pytz
] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
pytestFlagsArray = [ "src/icalendar" ];
meta = with lib; {
changelog = "https://github.com/collective/icalendar/blob/v${version}/CHANGES.rst";
description = "Parser/generator of iCalendar files";
mainProgram = "icalendar";
homepage = "https://github.com/collective/icalendar";
license = licenses.bsd2;
maintainers = with maintainers; [ olcai ];
};
}