1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 06:19:10 +03:00
nixpkgs/pkgs/development/python-modules/pyotp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
694 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, unittestCheckHook
}:
2018-08-30 17:33:05 +02:00
buildPythonPackage rec {
pname = "pyotp";
version = "2.8.0";
disabled = pythonOlder "3.7";
format = "setuptools";
2018-08-30 17:33:05 +02:00
src = fetchPypi {
inherit pname version;
hash = "sha256-wvXhfZ2pLY7B995jMasIEWuRFa26vLpuII1G/EmpjFo=";
2018-08-30 17:33:05 +02:00
};
checkInputs = [
unittestCheckHook
];
pythonImportsCheck = [ "pyotp" ];
2018-08-30 17:33:05 +02:00
meta = with lib; {
changelog = "https://github.com/pyauth/pyotp/blob/v${version}/Changes.rst";
2018-08-30 17:33:05 +02:00
description = "Python One Time Password Library";
2021-02-07 11:09:06 +01:00
homepage = "https://github.com/pyauth/pyotp";
2018-08-30 17:33:05 +02:00
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}