nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 60 lines 1.1 kB view raw
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 (finalAttrs: { 16 pname = "pyhive-integration"; 17 version = "1.0.8"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "Pyhass"; 22 repo = "Pyhiveapi"; 23 tag = finalAttrs.version; 24 hash = "sha256-9qcRvkRV/3GT66jlnkdKk+J3frEcsJ3C+Oio5gbRi5s="; 25 }; 26 27 pythonRemoveDeps = [ "pre-commit" ]; 28 29 build-system = [ 30 setuptools 31 unasync 32 ]; 33 34 dependencies = [ 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/${finalAttrs.src.tag}"; 57 license = lib.licenses.mit; 58 maintainers = with lib.maintainers; [ dotlambda ]; 59 }; 60})