mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 18:44:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
31 lines
687 B
Nix
31 lines
687 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, six, timecop }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "onetimepass";
|
|
version = "1.0.1";
|
|
|
|
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 ];
|
|
};
|
|
}
|