1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyhcl
5, requests
6, six
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "hvac";
12 version = "1.1.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-B53KWIVt7mZG7VovIoOAnBbS3u3eHp6WFbKRAySkuWk=";
20 };
21
22 propagatedBuildInputs = [
23 pyhcl
24 requests
25 six
26 ];
27
28 # Requires running a Vault server
29 doCheck = false;
30
31 pythonImportsCheck = [ "hvac" ];
32
33 meta = with lib; {
34 description = "HashiCorp Vault API client";
35 homepage = "https://github.com/ianunruh/hvac";
36 changelog = "https://github.com/hvac/hvac/blob/v${version}/CHANGELOG.md";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ ];
39 };
40}