depot/third_party/nixpkgs/pkgs/development/python-modules/pyotp/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

33 lines
694 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=";
};
checkInputs = [
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 ];
};
}