1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "duration-parser"; 11 version = "1.0.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "adriansahlman"; 16 repo = "duration-parser"; 17 tag = "v${version}"; 18 hash = "sha256-Vn3H2JEMrJ6b/7eNG+h9tG5QzslGvaV3sunM7UO9Bok="; 19 }; 20 21 build-system = [ 22 setuptools 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ 30 "duration_parser" 31 ]; 32 33 meta = { 34 description = "Minimal duration parser written in python"; 35 homepage = "https://github.com/adriansahlman/duration-parser"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ hexa ]; 38 }; 39}