nixpkgs/pkgs/development/python-modules/icalendar/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

45 lines
904 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, backports-zoneinfo
, python-dateutil
, pytz
, hypothesis
, pytest
}:
buildPythonPackage rec {
version = "5.0.4";
pname = "icalendar";
format = "setuptools";
src = fetchFromGitHub {
owner = "collective";
repo = "icalendar";
rev = "refs/tags/v${version}";
hash = "sha256-Ch0i6hxEnHV/Xu4PqpRVt30KLOHHgtCAI2W9UyXo15E=";
};
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 ];
};
}