about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ical/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ical/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/ical/default.nix62
1 files changed, 62 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ical/default.nix b/nixpkgs/pkgs/development/python-modules/ical/default.nix
new file mode 100644
index 000000000000..b2d5cc0bd86c
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/ical/default.nix
@@ -0,0 +1,62 @@
+{ lib
+, python-dateutil
+, buildPythonPackage
+, emoji
+, fetchFromGitHub
+, freezegun
+, tzdata
+, py
+, pyparsing
+, pydantic
+, pytest-asyncio
+, pytest-benchmark
+, pytest-golden
+, pytestCheckHook
+, pythonOlder
+, pyyaml
+}:
+
+buildPythonPackage rec {
+  pname = "ical";
+  version = "4.5.3";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.9";
+
+  src = fetchFromGitHub {
+    owner = "allenporter";
+    repo = pname;
+    rev = "refs/tags/${version}";
+    hash = "sha256-CHo6khJ8Bqej/OdQBtcfa/luO1Gj8cu7h//MwPhWrMU=";
+  };
+
+  propagatedBuildInputs = [
+    emoji
+    python-dateutil
+    tzdata
+    pydantic
+    pyparsing
+  ];
+
+  nativeCheckInputs = [
+    freezegun
+    py
+    pytest-asyncio
+    pytest-benchmark
+    pytest-golden
+    pytestCheckHook
+    pyyaml
+  ];
+
+  pythonImportsCheck = [
+    "ical"
+  ];
+
+  meta = with lib; {
+    description = "Library for handling iCalendar";
+    homepage = "https://github.com/allenporter/ical";
+    changelog = "https://github.com/allenporter/ical/releases/tag/${version}";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}