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