Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder 2, tatsu, arrow 3, pytestCheckHook, pytestpep8, pytest-flakes 4}: 5 6buildPythonPackage rec { 7 pname = "ics"; 8 version = "0.7"; 9 disabled = pythonOlder "3.6"; 10 11 src = fetchFromGitHub { 12 owner = "C4ptainCrunch"; 13 repo = "ics.py"; 14 rev = "v${version}"; 15 sha256 = "0rrdc9rcxc3ys6rml81b8m8qdlisk78a34bdib0wy65hlkmyyykn"; 16 }; 17 18 propagatedBuildInputs = [ tatsu arrow ]; 19 20 postPatch = '' 21 substituteInPlace requirements.txt \ 22 --replace "arrow>=0.11,<0.15" "arrow" 23 ''; 24 25 checkInputs = [ pytestCheckHook pytestpep8 pytest-flakes ]; 26 27 meta = with stdenv.lib; { 28 description = "Pythonic and easy iCalendar library (RFC 5545)"; 29 longDescription = '' 30 Ics.py is a pythonic and easy iCalendar library. Its goals are to read and 31 write ics data in a developer friendly way. 32 ''; 33 homepage = "http://icspy.readthedocs.org/en/stable/"; 34 changelog = "https://github.com/C4ptainCrunch/ics.py/releases/tag/v${version}"; 35 license = licenses.asl20; 36 maintainers = with maintainers; [ primeos ]; 37 }; 38 39}