about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ics/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/ics/default.nix')
-rw-r--r--pkgs/development/python-modules/ics/default.nix49
1 files changed, 23 insertions, 26 deletions
diff --git a/pkgs/development/python-modules/ics/default.nix b/pkgs/development/python-modules/ics/default.nix
index f6e86242c612..b1d4dd9a1f05 100644
--- a/pkgs/development/python-modules/ics/default.nix
+++ b/pkgs/development/python-modules/ics/default.nix
@@ -1,13 +1,14 @@
-{ lib
-, arrow
-, attrs
-, buildPythonPackage
-, fetchFromGitHub
-, pytest-flakes
-, pytestCheckHook
-, pythonOlder
-, setuptools
-, tatsu
+{
+  lib,
+  arrow,
+  attrs,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pytest-flakes,
+  pytestCheckHook,
+  pythonOlder,
+  setuptools,
+  tatsu,
 }:
 
 buildPythonPackage rec {
@@ -15,7 +16,7 @@ buildPythonPackage rec {
   version = "0.7.2";
   pyproject = true;
 
-  disabled = pythonOlder "3.6";
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "ics-py";
@@ -24,11 +25,14 @@ buildPythonPackage rec {
     hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8=";
   };
 
-  nativeBuildInputs = [
-    setuptools
-  ];
+  postPatch = ''
+    substituteInPlace setup.cfg \
+      --replace-fail "--pep8" ""
+  '';
+
+  build-system = [ setuptools ];
 
-  propagatedBuildInputs = [
+  dependencies = [
     attrs
     arrow
     tatsu
@@ -39,23 +43,16 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
-  postPatch = ''
-    # 0.8 will move to python-dateutil
-    substituteInPlace requirements.txt \
-      --replace "arrow>=0.11,<0.15" "arrow"
-    substituteInPlace setup.cfg --replace "--pep8" ""
-  '';
-
   disabledTests = [
     # Failure seems to be related to arrow > 1.0
     "test_event"
     # Broke with TatSu 5.7:
     "test_many_lines"
+    # AssertionError: 'Europe/Berlin' not found in "tzfile('Atlantic/Jan_Mayen')"
+    "test_timezone_not_dropped"
   ];
 
-  pythonImportsCheck = [
-    "ics"
-  ];
+  pythonImportsCheck = [ "ics" ];
 
   meta = with lib; {
     description = "Pythonic and easy iCalendar library (RFC 5545)";
@@ -66,6 +63,6 @@ buildPythonPackage rec {
     homepage = "http://icspy.readthedocs.org/";
     changelog = "https://github.com/ics-py/ics-py/releases/tag/v${version}";
     license = licenses.asl20;
-    maintainers = with maintainers; [ ];
+    maintainers = [ ];
   };
 }