depot/third_party/nixpkgs/pkgs/development/python-modules/pyotp/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

33 lines
700 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "pyotp";
version = "2.8.0";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-wvXhfZ2pLY7B995jMasIEWuRFa26vLpuII1G/EmpjFo=";
};
nativeCheckInputs = [
unittestCheckHook
];
pythonImportsCheck = [ "pyotp" ];
meta = with lib; {
changelog = "https://github.com/pyauth/pyotp/blob/v${version}/Changes.rst";
description = "Python One Time Password Library";
homepage = "https://github.com/pyauth/pyotp";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}