1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6, pytestCheckHook 7, mock 8}: 9 10buildPythonPackage rec { 11 pname = "linode-api"; 12 version = "5.0.0"; 13 disabled = pythonOlder "3.6"; 14 15 # Sources from Pypi exclude test fixtures 16 src = fetchFromGitHub { 17 owner = "linode"; 18 repo = "python-linode-api"; 19 rev = version; 20 sha256 = "0lqi15vks4fxbki1l7n1bfzygjy3w17d9wchjxvp22ijmas44yai"; 21 }; 22 23 propagatedBuildInputs = [ requests ]; 24 25 checkInputs = [ 26 mock 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ "linode_api4" ]; 31 32 meta = with lib; { 33 description = "Python library for the Linode API v4"; 34 homepage = "https://github.com/linode/python-linode-api"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ glenns ]; 37 }; 38}