mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
34 lines
700 B
Nix
34 lines
700 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyotp";
|
|
version = "2.9.0";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NGtmQuDb3eO0/1qTC2ZMqCq/oRY1btSMxCx9ZZDTb2M=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|