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