2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
45 lines
808 B
Nix
45 lines
808 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pyhcl
|
|
, requests
|
|
, poetry-core
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hvac";
|
|
version = "1.2.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-x4bj36HzUjmBDlMXzMrb41j0m4yQAaHy9ot5olC5+KE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyhcl
|
|
requests
|
|
];
|
|
|
|
# Requires running a Vault server
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"hvac"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "HashiCorp Vault API client";
|
|
homepage = "https://github.com/ianunruh/hvac";
|
|
changelog = "https://github.com/hvac/hvac/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|