Commit 7e599820 authored by Gon Solo's avatar Gon Solo
Browse files

python3Packages.yamlcore: init at 0.0.4

parent d267dd81
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };