Merge pull request #206033 from dotlambda/pyotp-2.8.0

python310Packages.pyotp: 2.7.0 -> 2.8.0
This commit is contained in:
Jörg Thalheim 2022-12-14 22:27:47 +00:00 committed by GitHub
commit f9c5d92b43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,30 @@
{ lib, buildPythonPackage, fetchPypi, isPy27 }:
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "pyotp";
version = "2.7.0";
disabled = isPy27;
version = "2.8.0";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-zpifq6Dfd9wDK0XlHGzKQrzyCJbI09HnzXWaU9x9bLU=";
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;