nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 55 lines 1.0 kB view raw
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 33 checkInputs = [ 34 pytestCheckHook 35 betamax 36 betamax-matchers 37 ]; 38 39 # Solves "__main__.py: error: unrecognized arguments: -nauto" 40 preCheck = '' 41 rm tox.ini 42 ''; 43 44 disabledTests = [ 45 # FileNotFoundError: [Errno 2] No such file or directory: 'tests/id_rsa.pub' 46 "test_delete_key" 47 ]; 48 49 meta = with lib; { 50 homepage = "https://github3py.readthedocs.org/en/master/"; 51 description = "A wrapper for the GitHub API written in python"; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ pSub ]; 54 }; 55}