summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-12-15 20:27:52 -0800
committerJon <jonringer@users.noreply.github.com>2019-12-18 09:04:55 -0800
commit503ca8f788911c46d9081a467b7606ae7de8e4f6 (patch)
tree33d8860855762a5b1b04b2ee46219f26d0be758d
parent0c3cfd5c076d78dfea0abdeb09026529c3560bed (diff)
downloadnixpkgs-503ca8f788911c46d9081a467b7606ae7de8e4f6.tar
nixpkgs-503ca8f788911c46d9081a467b7606ae7de8e4f6.tar.gz
nixpkgs-503ca8f788911c46d9081a467b7606ae7de8e4f6.tar.bz2
nixpkgs-503ca8f788911c46d9081a467b7606ae7de8e4f6.tar.lz
nixpkgs-503ca8f788911c46d9081a467b7606ae7de8e4f6.tar.xz
nixpkgs-503ca8f788911c46d9081a467b7606ae7de8e4f6.tar.zst
nixpkgs-503ca8f788911c46d9081a467b7606ae7de8e4f6.zip
python3Packages.ics: fix build
-rw-r--r--pkgs/development/python-modules/ics/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/ics/default.nix b/pkgs/development/python-modules/ics/default.nix
index 20fb38b187c..b642bdf311e 100644
--- a/pkgs/development/python-modules/ics/default.nix
+++ b/pkgs/development/python-modules/ics/default.nix
@@ -6,6 +6,7 @@
 buildPythonPackage rec {
   pname = "ics";
   version = "0.6";
+  disabled = pythonOlder "3.6";
 
   src = fetchFromGitHub {
     owner = "C4ptainCrunch";
@@ -15,9 +16,16 @@ buildPythonPackage rec {
   };
 
   propagatedBuildInputs = [ tatsu arrow ];
-  checkInputs = [ pytest-sugar pytestpep8 pytest-flakes pytestcov ];
 
-  disabled = pythonOlder "3.6";
+  postPatch = ''
+    substituteInPlace requirements.txt \
+      --replace "arrow>=0.11,<0.15" "arrow"
+  '';
+
+  checkInputs = [ pytest-sugar pytestpep8 pytest-flakes pytestcov ];
+  checkPhase = ''
+    pytest
+  '';
 
   meta = with stdenv.lib; {
     description = "Pythonic and easy iCalendar library (RFC 5545)";