python3Packages.yamlcore: init at 0.0.4

This commit is contained in:
Gon Solo
2026-01-08 10:07:42 +01:00
parent d267dd81f2
commit 7e5998202e
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyyaml,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "yamlcore";
version = "0.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "perlpunk";
repo = "pyyaml-core";
tag = "v${finalAttrs.version}";
hash = "sha256-TBVNmuhBfEo9HmDkalnn6VDVHF+sh/MIZ8f46Zdyxw8=";
};
build-system = [
setuptools
];
dependencies = [
pyyaml
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests/*.py" ];
pythonImportsCheck = [ "yamlcore" ];
meta = {
description = "YAML 1.2 Support for PyYAML";
homepage = "https://github.com/perlpunk/pyyaml-core";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gonsolo ];
};
})
+2
View File
@@ -20914,6 +20914,8 @@ self: super: with self; {
yamale = callPackage ../development/python-modules/yamale { };
yamlcore = callPackage ../development/python-modules/yamlcore { };
yamlfix = callPackage ../development/python-modules/yamlfix { };
yamllint = callPackage ../development/python-modules/yamllint { };