Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.4 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, tatsu 6, arrow 7, pytestCheckHook 8, pytest-flakes 9}: 10 11buildPythonPackage rec { 12 pname = "ics"; 13 version = "0.7.2"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "ics-py"; 18 repo = "ics-py"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8="; 21 }; 22 23 propagatedBuildInputs = [ 24 arrow 25 tatsu 26 ]; 27 28 nativeCheckInputs = [ 29 pytest-flakes 30 pytestCheckHook 31 ]; 32 33 postPatch = '' 34 # 0.8 will move to python-dateutil 35 substituteInPlace requirements.txt \ 36 --replace "arrow>=0.11,<0.15" "arrow" 37 substituteInPlace setup.cfg --replace "--pep8" "" 38 ''; 39 40 disabledTests = [ 41 # Failure seems to be related to arrow > 1.0 42 "test_event" 43 # Broke with TatSu 5.7: 44 "test_many_lines" 45 ]; 46 47 pythonImportsCheck = [ "ics" ]; 48 49 meta = with lib; { 50 description = "Pythonic and easy iCalendar library (RFC 5545)"; 51 longDescription = '' 52 Ics.py is a pythonic and easy iCalendar library. Its goals are to read and 53 write ics data in a developer friendly way. 54 ''; 55 homepage = "http://icspy.readthedocs.org/en/stable/"; 56 changelog = "https://github.com/ics-py/ics-py/releases/tag/v${version}"; 57 license = licenses.asl20; 58 maintainers = with maintainers; [ ]; 59 }; 60}