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