1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
41 lines
827 B
Nix
41 lines
827 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
six,
|
|
timecop,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "onetimepass";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tadeck";
|
|
repo = "onetimepass";
|
|
tag = "v${version}";
|
|
hash = "sha256-cHJg3vdUpWp5+HACIeTGrqkHKUDS//aQICSjPKgwu3I=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ six ];
|
|
|
|
nativeCheckInputs = [
|
|
timecop
|
|
unittestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "onetimepass" ];
|
|
|
|
meta = {
|
|
description = "One-time password library for HMAC-based (HOTP) and time-based (TOTP) passwords";
|
|
homepage = "https://github.com/tadeck/onetimepass";
|
|
changelog = "https://github.com/tadeck/onetimepass/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|