1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, requests 6, uritemplate 7, python-dateutil 8, pyjwt 9, pytestCheckHook 10, betamax 11, betamax-matchers 12}: 13 14buildPythonPackage rec { 15 pname = "github3.py"; 16 version = "3.2.0"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "sha256-Cbcr4Ul9NGsJaM3oNgoNavedwgbQFJpjzT7IbGXDd8w="; 24 }; 25 26 propagatedBuildInputs = [ 27 requests 28 uritemplate 29 python-dateutil 30 pyjwt 31 ] 32 ++ pyjwt.optional-dependencies.crypto; 33 34 checkInputs = [ 35 pytestCheckHook 36 betamax 37 betamax-matchers 38 ]; 39 40 # Solves "__main__.py: error: unrecognized arguments: -nauto" 41 preCheck = '' 42 rm tox.ini 43 ''; 44 45 disabledTests = [ 46 # FileNotFoundError: [Errno 2] No such file or directory: 'tests/id_rsa.pub' 47 "test_delete_key" 48 ]; 49 50 meta = with lib; { 51 homepage = "https://github3py.readthedocs.org/en/master/"; 52 description = "A wrapper for the GitHub API written in python"; 53 license = licenses.bsd3; 54 maintainers = with maintainers; [ pSub ]; 55 }; 56}