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