Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ics / default.nix
blobf6e86242c612f2e6c7737db1789df4c62dd59bfb
1 { lib
2 , arrow
3 , attrs
4 , buildPythonPackage
5 , fetchFromGitHub
6 , pytest-flakes
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
10 , tatsu
13 buildPythonPackage rec {
14   pname = "ics";
15   version = "0.7.2";
16   pyproject = true;
18   disabled = pythonOlder "3.6";
20   src = fetchFromGitHub {
21     owner = "ics-py";
22     repo = "ics-py";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8=";
25   };
27   nativeBuildInputs = [
28     setuptools
29   ];
31   propagatedBuildInputs = [
32     attrs
33     arrow
34     tatsu
35   ];
37   nativeCheckInputs = [
38     pytest-flakes
39     pytestCheckHook
40   ];
42   postPatch = ''
43     # 0.8 will move to python-dateutil
44     substituteInPlace requirements.txt \
45       --replace "arrow>=0.11,<0.15" "arrow"
46     substituteInPlace setup.cfg --replace "--pep8" ""
47   '';
49   disabledTests = [
50     # Failure seems to be related to arrow > 1.0
51     "test_event"
52     # Broke with TatSu 5.7:
53     "test_many_lines"
54   ];
56   pythonImportsCheck = [
57     "ics"
58   ];
60   meta = with lib; {
61     description = "Pythonic and easy iCalendar library (RFC 5545)";
62     longDescription = ''
63       Ics.py is a pythonic and easy iCalendar library. Its goals are to read and
64       write ics data in a developer friendly way.
65     '';
66     homepage = "http://icspy.readthedocs.org/";
67     changelog = "https://github.com/ics-py/ics-py/releases/tag/v${version}";
68     license = licenses.asl20;
69     maintainers = with maintainers; [ ];
70   };