Merge pull request #100023 from IvarWithoutBones/pyotp-fix

pythonPackages.pyotp: Disable on Python27
This commit is contained in:
Martin Weinelt 2020-10-23 04:21:35 +02:00 committed by GitHub
commit f2358204b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,17 @@
{ lib, buildPythonPackage, fetchPypi }: { lib, buildPythonPackage, fetchPypi, isPy27 }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyotp"; pname = "pyotp";
version = "2.4.0"; version = "2.4.0";
disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "01eceab573181188fe038d001e42777884a7f5367203080ef5bda0e30fe82d28"; sha256 = "01eceab573181188fe038d001e42777884a7f5367203080ef5bda0e30fe82d28";
}; };
pythonImportsCheck = [ "pyotp" ];
meta = with lib; { meta = with lib; {
description = "Python One Time Password Library"; description = "Python One Time Password Library";
homepage = "https://github.com/pyotp/pyotp"; homepage = "https://github.com/pyotp/pyotp";