Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyhiveapi / default.nix
blobec6d51191966fd7c15768e174f93f22ff1cd4efb
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.15";
19   format = "pyproject";
21   disabled = pythonOlder "3.6";
23   src = fetchFromGitHub {
24     owner = "Pyhass";
25     repo = "Pyhiveapi";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-tR2PCR1qGn4KnqAjEpcRTcVlMEpKCwn5RAm99AXBSnk=";
28   };
30   postPatch = ''
31     substituteInPlace requirements.txt \
32       --replace "pre-commit" ""
33   '';
35   nativeBuildInputs = [
36     setuptools
37     unasync
38   ];
40   propagatedBuildInputs = [
41     boto3
42     botocore
43     requests
44     aiohttp
45     pyquery
46     loguru
47   ];
49   # tests are not functional yet
50   doCheck = false;
52   postBuild = ''
53     # pyhiveapi accesses $HOME upon importing
54     export HOME=$TMPDIR
55   '';
57   pythonImportsCheck = [ "pyhiveapi" ];
59   meta = with lib; {
60     description = "Python library to interface with the Hive API";
61     homepage = "https://github.com/Pyhass/Pyhiveapi";
62     license = licenses.mit;
63     maintainers = with maintainers; [ dotlambda ];
64   };