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