mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
Merge pull request #206033 from dotlambda/pyotp-2.8.0
python310Packages.pyotp: 2.7.0 -> 2.8.0
This commit is contained in:
commit
f9c5d92b43
@ -1,18 +1,30 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy27 }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, unittestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyotp";
|
||||
version = "2.7.0";
|
||||
disabled = isPy27;
|
||||
version = "2.8.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-zpifq6Dfd9wDK0XlHGzKQrzyCJbI09HnzXWaU9x9bLU=";
|
||||
hash = "sha256-wvXhfZ2pLY7B995jMasIEWuRFa26vLpuII1G/EmpjFo=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user