at master 882 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 setuptools-scm, 7 autocommand, 8 importlib-resources, 9 path, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "oathtool"; 15 version = "2.4.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "jaraco"; 20 repo = "oathtool"; 21 tag = "v${version}"; 22 hash = "sha256-Qa4/fVa7Ws8t42MxZpEVKI7Wyux/uN77VP0JBnrmgq0="; 23 }; 24 25 build-system = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 dependencies = [ 31 autocommand 32 path 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "oathtool" ]; 38 39 meta = { 40 description = "One-time password generator"; 41 homepage = "https://github.com/jaraco/oathtool"; 42 changelog = "https://github.com/jaraco/oathtool/releases/tag/v${version}"; 43 license = lib.licenses.mit; 44 maintainers = [ lib.maintainers.jamiemagee ]; 45 }; 46}