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