Merge pull request #281188 from fabaff/maison-bump
python311Packages.maison: 1.4.2 -> 1.4.3
This commit is contained in:
@@ -6,25 +6,31 @@
|
||||
, pydantic
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, toml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "maison";
|
||||
version = "1.4.2";
|
||||
version = "1.4.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbatten5";
|
||||
repo = "maison";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-XNo7QS8BCYzkDozLW0T+KMQPI667lDTCFtOqKq9q3hw=";
|
||||
hash = "sha256-2hUmk91wr5o2cV3un2nMoXDG+3GT7SaIOKY+QaZY3nw=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"pydantic"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -47,6 +53,5 @@ buildPythonPackage rec {
|
||||
changelog = "https://github.com/dbatten5/maison/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
broken = versionAtLeast pydantic.version "2";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -11,32 +11,23 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "ruyaml";
|
||||
version = "0.91.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pycontribs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0gxvwry7n1gczxkjzyfrr3fammllkvnnamja4yln8xrg3n1h89al";
|
||||
repo = "ruyaml";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-A37L/voBrn2aZ7xT8+bWdZJxbWRjnxbstQtSyUeN1sA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "remove-setuptools-scm-git-archive-from-setupcfg.patch";
|
||||
url = "https://github.com/pycontribs/ruyaml/commit/8922dd826cbb97b29e9826b00fb28a65d584e985.patch";
|
||||
includes = [ "setup.cfg" ];
|
||||
hash = "sha256-XAsORoPvYRElHswlZ4S377UwuJNCU1JuCz5iyFXoXOQ=";
|
||||
})
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/pycontribs/ruyaml/pull/107
|
||||
(fetchpatch {
|
||||
name = "remove-setuptools-scm-git-archive-from-pyproject.patch";
|
||||
url = "https://github.com/pycontribs/ruyaml/commit/4d605bf63f799696c8ba3c1f0a0f505db0ca33ce.patch";
|
||||
hash = "sha256-X6HWXBot5ZIo+odoSHhXMb03tgpQfRw/Ze8nFgH43ZI=";
|
||||
})
|
||||
];
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace '"pip >= 19.3.1",' "" \
|
||||
--replace '"setuptools_scm_git_archive >= 1.1",' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
@@ -58,9 +49,17 @@ buildPythonPackage rec {
|
||||
"ruyaml"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Assertion error
|
||||
"test_issue_60"
|
||||
"test_issue_60_1"
|
||||
"test_issue_61"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "YAML 1.2 loader/dumper package for Python";
|
||||
homepage = "https://ruyaml.readthedocs.io/";
|
||||
changelog = "https://github.com/pycontribs/ruyaml/releases/tag/v${version}";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
, click
|
||||
, fetchFromGitHub
|
||||
, maison
|
||||
, pdm-pep517
|
||||
, pdm-backend
|
||||
, pytest-freezegun
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
@@ -13,21 +14,21 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yamlfix";
|
||||
version = "1.13.0";
|
||||
format = "pyproject";
|
||||
version = "1.16.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lyz-code";
|
||||
repo = pname;
|
||||
repo = "yamlfix";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-GoCQtanQHYOFrhRvZjzk/cCPnUFwYUAclZuYGZfNg5E=";
|
||||
hash = "sha256-nadyBIzXHbWm0QvympRaYU38tuPJ3TPJg8EbvVv+4L0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
pdm-pep517
|
||||
pdm-backend
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -37,14 +38,39 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-freezegun
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"yamlfix"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# AssertionError: assert ... Fixed <stdin> in...
|
||||
"test_check_one_file_no_changes"
|
||||
"test_config_parsing"
|
||||
"test_corrects_code_from_stdin"
|
||||
"test_corrects_one_file"
|
||||
"test_corrects_three_files"
|
||||
"test_empty_list_inline_comment_indentation"
|
||||
"test_find_files"
|
||||
"test_fix_code_converts_non_valid_false_booleans"
|
||||
"test_ignores_correct_files"
|
||||
"test_include_exclude_files"
|
||||
"test_read_prefixed_environment_variables"
|
||||
"test_section_whitelines"
|
||||
"test_whitelines"
|
||||
"test_sequence_style_env_enum_parsing"
|
||||
"test_verbose_option"
|
||||
"test_enforcing_flow_style_together_with_adjustable_newlines"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python YAML formatter that keeps your comments";
|
||||
homepage = "https://github.com/lyz-code/yamlfix";
|
||||
|
||||
Reference in New Issue
Block a user