blob: 45c0d7196c92c91d7e577527780975fffda18c7a (
about) (
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
61
62
63
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
unasync,
boto3,
botocore,
requests,
aiohttp,
pyquery,
loguru,
}:
buildPythonPackage rec {
pname = "pyhive-integration";
version = "1.0.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Pyhass";
repo = "Pyhiveapi";
tag = "v${version}";
hash = "sha256-lfBr889s6NHcos/kdzQa9HJEcQ4dfCEMjuLYiLzesfE=";
};
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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|