lol

Merge pull request #122684 from fabaff/fix-ics

python3Packages.ics: fix build

authored by

Maximilian Bosch and committed by
GitHub
03afdb69 e997fd24

+27 -9
+27 -9
pkgs/development/python-modules/ics/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, pythonOlder 2 - , tatsu, arrow 3 - , pytestCheckHook, pytest-flakes 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , tatsu 6 + , arrow 7 + , pytestCheckHook 8 + , pytest-flakes 4 9 }: 5 10 6 11 buildPythonPackage rec { ··· 9 14 disabled = pythonOlder "3.6"; 10 15 11 16 src = fetchFromGitHub { 12 - owner = "C4ptainCrunch"; 13 - repo = "ics.py"; 17 + owner = "ics-py"; 18 + repo = "ics-py"; 14 19 rev = "v${version}"; 15 20 sha256 = "0rrdc9rcxc3ys6rml81b8m8qdlisk78a34bdib0wy65hlkmyyykn"; 16 21 }; 17 22 18 - propagatedBuildInputs = [ tatsu arrow ]; 23 + propagatedBuildInputs = [ 24 + arrow 25 + tatsu 26 + ]; 27 + 28 + checkInputs = [ 29 + pytest-flakes 30 + pytestCheckHook 31 + ]; 19 32 20 33 postPatch = '' 34 + # 0.8 will move to python-dateutil 21 35 substituteInPlace requirements.txt \ 22 36 --replace "arrow>=0.11,<0.15" "arrow" 23 37 substituteInPlace setup.cfg --replace "--pep8" "" 24 38 ''; 25 39 26 - checkInputs = [ pytestCheckHook pytest-flakes ]; 40 + disabledTests = [ 41 + # Failure seems to be related to arrow > 1.0 42 + "test_event" 43 + ]; 44 + 45 + pythonImportsCheck = [ "ics" ]; 27 46 28 47 meta = with lib; { 29 48 description = "Pythonic and easy iCalendar library (RFC 5545)"; ··· 32 51 write ics data in a developer friendly way. 33 52 ''; 34 53 homepage = "http://icspy.readthedocs.org/en/stable/"; 35 - changelog = "https://github.com/C4ptainCrunch/ics.py/releases/tag/v${version}"; 54 + changelog = "https://github.com/ics-py/ics-py/releases/tag/v${version}"; 36 55 license = licenses.asl20; 37 56 maintainers = with maintainers; [ primeos ]; 38 57 }; 39 - 40 58 }