Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 700 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, unittestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "pyotp"; 10 version = "2.8.0"; 11 disabled = pythonOlder "3.7"; 12 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-wvXhfZ2pLY7B995jMasIEWuRFa26vLpuII1G/EmpjFo="; 18 }; 19 20 nativeCheckInputs = [ 21 unittestCheckHook 22 ]; 23 24 pythonImportsCheck = [ "pyotp" ]; 25 26 meta = with lib; { 27 changelog = "https://github.com/pyauth/pyotp/blob/v${version}/Changes.rst"; 28 description = "Python One Time Password Library"; 29 homepage = "https://github.com/pyauth/pyotp"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ dotlambda ]; 32 }; 33}