Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 41 lines 1.1 kB view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder 2, tatsu, arrow 3, pytest-sugar, pytestpep8, pytest-flakes, pytestcov 4}: 5 6buildPythonPackage rec { 7 pname = "ics"; 8 version = "0.6"; 9 disabled = pythonOlder "3.6"; 10 11 src = fetchFromGitHub { 12 owner = "C4ptainCrunch"; 13 repo = "ics.py"; 14 rev = "v${version}"; 15 sha256 = "02bs9wlh40p1n33jchrl2cdpsnm5hq84070by3b6gm0vmgz6gn5v"; 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 = [ pytest-sugar pytestpep8 pytest-flakes pytestcov ]; 26 checkPhase = '' 27 pytest 28 ''; 29 30 meta = with stdenv.lib; { 31 description = "Pythonic and easy iCalendar library (RFC 5545)"; 32 longDescription = '' 33 Ics.py is a pythonic and easy iCalendar library. Its goals are to read and 34 write ics data in a developer friendly way. 35 ''; 36 homepage = "http://icspy.readthedocs.org/en/stable/"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ primeos ]; 39 }; 40 41}