mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
b5efcf2ae6
Diff: https://github.com/collective/icalendar/compare/refs/tags/v6.0.0...v6.0.1 Changelog: https://github.com/collective/icalendar/blob/v6.0.1/CHANGES.rst
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
replaceVars,
|
|
pythonOlder,
|
|
hatch-vcs,
|
|
hatchling,
|
|
backports-zoneinfo,
|
|
python-dateutil,
|
|
tzdata,
|
|
hypothesis,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "6.0.1";
|
|
pname = "icalendar";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "collective";
|
|
repo = "icalendar";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-pcTiXRiHtx7jVzxDkY6WDhzo8sg8fPecqTpRSRIdvfs=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./no-dynamic-version.patch {
|
|
inherit version;
|
|
})
|
|
];
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
python-dateutil
|
|
tzdata
|
|
] ++ 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 ];
|
|
};
|
|
}
|