python312Packages.duration-parser: init at 1.0.1

This commit is contained in:
Martin Weinelt
2025-03-06 00:43:03 +01:00
parent 8e590dd68c
commit 30ad414f52
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "duration-parser";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "adriansahlman";
repo = "duration-parser";
tag = "v${version}";
hash = "sha256-Vn3H2JEMrJ6b/7eNG+h9tG5QzslGvaV3sunM7UO9Bok=";
};
build-system = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"duration_parser"
];
meta = {
description = "A minimal duration parser written in python";
homepage = "https://github.com/adriansahlman/duration-parser";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
+2
View File
@@ -4036,6 +4036,8 @@ self: super: with self; {
duo-client = callPackage ../development/python-modules/duo-client { };
duration-parser = callPackage ../development/python-modules/duration-parser { };
durationpy = callPackage ../development/python-modules/durationpy { };
durus = callPackage ../development/python-modules/durus { };