at 24.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, pyfakefs 7, tzlocal 8, google-api-python-client 9, google-auth-httplib2 10, google-auth-oauthlib 11, python-dateutil 12, beautiful-date 13}: 14 15buildPythonPackage rec { 16 pname = "gcsa"; 17 version = "2.1.0"; 18 format = "setuptools"; 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = "kuzmoyev"; 23 repo = "google-calendar-simple-api"; 24 rev = "v${version}"; 25 hash = "sha256-Ye8mQSzgaEZx0vUpt5xiMrJTFh2AmSB7ZZlKaEj/YpM="; 26 }; 27 28 propagatedBuildInputs = [ 29 tzlocal 30 google-api-python-client 31 google-auth-httplib2 32 google-auth-oauthlib 33 python-dateutil 34 beautiful-date 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook pyfakefs ]; 38 pythonImportsCheck = [ "gcsa" ]; 39 40 meta = with lib; { 41 description = "Pythonic wrapper for the Google Calendar API"; 42 homepage = "https://github.com/kuzmoyev/google-calendar-simple-api"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ mbalatsko ]; 45 }; 46}