2020-10-08 10:54:23 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27 }:
|
2018-08-30 16:33:05 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyotp";
|
2021-02-07 10:09:06 +00:00
|
|
|
version = "2.6.0";
|
2020-10-08 10:54:23 +01:00
|
|
|
disabled = isPy27;
|
2018-08-30 16:33:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-07 10:09:06 +00:00
|
|
|
sha256 = "d28ddfd40e0c1b6a6b9da961c7d47a10261fb58f378cb00f05ce88b26df9c432";
|
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";
|
2021-02-07 10:09:06 +00:00
|
|
|
homepage = "https://github.com/pyauth/pyotp";
|
2018-08-30 16:33:05 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|