python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / icalendar / default.nix
blob9344b51c76e46dd4ed04843292a7a3b886128146
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   replaceVars,
6   hatch-vcs,
7   hatchling,
8   python-dateutil,
9   tzdata,
10   hypothesis,
11   pytestCheckHook,
14 buildPythonPackage rec {
15   version = "6.1.0";
16   pname = "icalendar";
17   pyproject = true;
19   src = fetchFromGitHub {
20     owner = "collective";
21     repo = "icalendar";
22     tag = "v${version}";
23     hash = "sha256-P+cUwNFSBjyTzqdBnIricoM3rUWUXQc8k1912jil79Q=";
24   };
26   patches = [
27     (replaceVars ./no-dynamic-version.patch {
28       inherit version;
29     })
30   ];
32   build-system = [
33     hatch-vcs
34     hatchling
35   ];
37   dependencies = [
38     python-dateutil
39     tzdata
40   ];
42   nativeCheckInputs = [
43     hypothesis
44     pytestCheckHook
45   ];
47   pytestFlagsArray = [ "src/icalendar" ];
49   meta = with lib; {
50     changelog = "https://github.com/collective/icalendar/blob/v${version}/CHANGES.rst";
51     description = "Parser/generator of iCalendar files";
52     mainProgram = "icalendar";
53     homepage = "https://github.com/collective/icalendar";
54     license = licenses.bsd2;
55     maintainers = with maintainers; [ olcai ];
56   };