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.7.2"; 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 = "refs/tags/v${version}"; 20 sha256 = "sha256-RU/GyNYV05iYVNanMqKMmoksXWrxTQ2H2XvaIwSSslA="; 21 }; 22 23 propagatedBuildInputs = [ requests ]; 24 25 nativeCheckInputs = [ 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}