depot/third_party/nixpkgs/pkgs/development/python-modules/onetimepass/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

31 lines
712 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, six, timecop }:
buildPythonPackage rec {
pname = "onetimepass";
version = "1.0.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "tadeck";
repo = pname;
rev = "v${version}";
sha256 = "0wmv62l3r8r4428gdzyj80lhgadfqvj220khz1wnm9alyzg60wkh";
};
propagatedBuildInputs = [
six
];
nativeCheckInputs = [
timecop
];
pythonImportsCheck = [ "onetimepass" ];
meta = with lib; {
description = "One-time password library for HMAC-based (HOTP) and time-based (TOTP) passwords";
homepage = "https://github.com/tadeck/onetimepass";
license = licenses.mit;
maintainers = with maintainers; [ zakame ];
};
}