2021-06-22 10:06:18 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyhcl
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
}:
|
2018-03-17 18:49:06 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hvac";
|
2021-06-22 10:06:18 +02:00
|
|
|
version = "0.10.14";
|
2018-03-17 18:49:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-22 10:06:18 +02:00
|
|
|
sha256 = "sha256-DGFvKdZkKtqrzUCKBEaTdO2DvhKyRQG7M36PN7rf7yI=";
|
2018-03-17 18:49:06 +01:00
|
|
|
};
|
|
|
|
|
2021-06-22 10:06:18 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyhcl
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
2018-03-17 18:49:06 +01:00
|
|
|
|
2018-03-17 19:19:32 +01:00
|
|
|
# Requires running a Vault server
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-07 03:10:04 +01:00
|
|
|
pythonImportsCheck = [ "hvac" ];
|
|
|
|
|
2018-03-17 18:49:06 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "HashiCorp Vault API client";
|
2020-03-15 21:32:29 +01:00
|
|
|
homepage = "https://github.com/ianunruh/hvac";
|
2018-03-17 18:49:06 +01:00
|
|
|
license = licenses.asl20;
|
2021-06-22 10:06:18 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-03-17 18:49:06 +01:00
|
|
|
};
|
|
|
|
}
|