depot/third_party/nixpkgs/pkgs/development/python-modules/nethsm/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

50 lines
919 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
certifi,
cryptography,
python-dateutil,
typing-extensions,
urllib3,
}:
let
pname = "nethsm";
version = "1.2.1";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-EPxGJFCGGl3p3yLlM7NH7xtEVS2woRigKJhL57A0gAE=";
};
propagatedBuildInputs = [
certifi
cryptography
python-dateutil
typing-extensions
urllib3
];
nativeBuildInputs = [
flit-core
];
pythonRelaxDeps = true;
pythonImportsCheck = [ "nethsm" ];
meta = with lib; {
description = "Client-side Python SDK for NetHSM";
homepage = "https://github.com/Nitrokey/nethsm-sdk-py";
changelog = "https://github.com/Nitrokey/nethsm-sdk-py/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ frogamic ];
};
}