python3Packages.tunit: init at 1.7.2

This commit is contained in:
Fabian Affolter
2026-04-14 22:50:25 +02:00
parent 7b98158560
commit d5067b0ccb
2 changed files with 49 additions and 0 deletions
@@ -0,0 +1,47 @@
{
lib,
buildPythonPackage,
fetchFromBitbucket,
json-handler-registry,
pytestCheckHook,
pyyaml,
setuptools,
types-pyyaml,
}:
buildPythonPackage (finalAttrs: {
pname = "tunit";
version = "1.7.2";
pyproject = true;
src = fetchFromBitbucket {
owner = "massultidev";
repo = "tunit";
tag = finalAttrs.version;
hash = "sha256-S1YEpXQcjQ7gcJPUv4Eo32ypGFkinMjr/x4P/pFMipg=";
};
build-system = [ setuptools ];
optional-dependencies = {
json = [ json-handler-registry ];
yaml = [
pyyaml
types-pyyaml
];
};
nativeCheckInputs = [
pytestCheckHook
]
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "tunit" ];
meta = {
description = "Module for time unit types";
homepage = "https://bitbucket.org/massultidev/tunit";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})
+2
View File
@@ -19854,6 +19854,8 @@ self: super: with self; {
tunigo = callPackage ../development/python-modules/tunigo { };
tunit = callPackage ../development/python-modules/tunit { };
turnt = callPackage ../development/python-modules/turnt { };
turrishw = callPackage ../development/python-modules/turrishw { };