nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 30 lines 652 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 unittestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "pyotp"; 10 version = "2.9.0"; 11 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-NGtmQuDb3eO0/1qTC2ZMqCq/oRY1btSMxCx9ZZDTb2M="; 17 }; 18 19 nativeCheckInputs = [ unittestCheckHook ]; 20 21 pythonImportsCheck = [ "pyotp" ]; 22 23 meta = { 24 changelog = "https://github.com/pyauth/pyotp/blob/v${version}/Changes.rst"; 25 description = "Python One Time Password Library"; 26 homepage = "https://github.com/pyauth/pyotp"; 27 license = lib.licenses.mit; 28 maintainers = with lib.maintainers; [ dotlambda ]; 29 }; 30}