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