1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 unasync, 8 boto3, 9 botocore, 10 requests, 11 aiohttp, 12 pyquery, 13 loguru, 14}: 15 16buildPythonPackage rec { 17 pname = "pyhive-integration"; 18 version = "1.0.2"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchFromGitHub { 24 owner = "Pyhass"; 25 repo = "Pyhiveapi"; 26 tag = "v${version}"; 27 hash = "sha256-lfBr889s6NHcos/kdzQa9HJEcQ4dfCEMjuLYiLzesfE="; 28 }; 29 30 pythonRemoveDeps = [ "pre-commit" ]; 31 32 nativeBuildInputs = [ 33 setuptools 34 unasync 35 ]; 36 37 propagatedBuildInputs = [ 38 boto3 39 botocore 40 requests 41 aiohttp 42 pyquery 43 loguru 44 ]; 45 46 # tests are not functional yet 47 doCheck = false; 48 49 postBuild = '' 50 # pyhiveapi accesses $HOME upon importing 51 export HOME=$TMPDIR 52 ''; 53 54 pythonImportsCheck = [ "pyhiveapi" ]; 55 56 meta = with lib; { 57 description = "Python library to interface with the Hive API"; 58 homepage = "https://github.com/Pyhass/Pyhiveapi"; 59 changelog = "https://github.com/Pyhass/Pyhiveapi/releases/tag/${src.tag}"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ dotlambda ]; 62 }; 63}