Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyhiveapi / default.nix
blob341e08186470c76df60e8ed83da8d8345a503f97
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , setuptools
6 , unasync
7 , boto3
8 , botocore
9 , requests
10 , aiohttp
11 , pyquery
12 , loguru
15 buildPythonPackage rec {
16   pname = "pyhiveapi";
17   version = "0.5.16";
18   pyproject = true;
20   disabled = pythonOlder "3.6";
22   src = fetchFromGitHub {
23     owner = "Pyhass";
24     repo = "Pyhiveapi";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-gPou5KGLFEFP29qSpRg+6sCiXOwfoF1gyhBVERYJ1LI=";
27   };
29   postPatch = ''
30     substituteInPlace requirements.txt \
31       --replace "pre-commit" ""
32   '';
34   nativeBuildInputs = [
35     setuptools
36     unasync
37   ];
39   propagatedBuildInputs = [
40     boto3
41     botocore
42     requests
43     aiohttp
44     pyquery
45     loguru
46   ];
48   # tests are not functional yet
49   doCheck = false;
51   postBuild = ''
52     # pyhiveapi accesses $HOME upon importing
53     export HOME=$TMPDIR
54   '';
56   pythonImportsCheck = [ "pyhiveapi" ];
58   meta = with lib; {
59     description = "Python library to interface with the Hive API";
60     homepage = "https://github.com/Pyhass/Pyhiveapi";
61     changelog = "https://github.com/Pyhass/Pyhiveapi/releases/tag/v${version}";
62     license = licenses.mit;
63     maintainers = with maintainers; [ dotlambda ];
64   };