2020-10-08 11:54:23 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27 }:
|
2018-08-30 17:33:05 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyotp";
|
2021-02-01 12:47:01 +01:00
|
|
|
version = "2.5.1";
|
2020-10-08 11:54:23 +02:00
|
|
|
disabled = isPy27;
|
2018-08-30 17:33:05 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-01 12:47:01 +01:00
|
|
|
sha256 = "2a54d393aff3a244b566d78d597c9cb42e91b3b12f3169cec89d9dfff1c9c5bc";
|
2018-08-30 17:33:05 +02:00
|
|
|
};
|
|
|
|
|
2020-10-08 11:54:23 +02:00
|
|
|
pythonImportsCheck = [ "pyotp" ];
|
|
|
|
|
2018-08-30 17:33:05 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python One Time Password Library";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/pyotp/pyotp";
|
2018-08-30 17:33:05 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|