Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkgs/by-name/ya/yamlfix/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ python3Packages }: with python3Packages; toPythonApplication yamlfix
25 changes: 20 additions & 5 deletions pkgs/development/python-modules/yamlfix/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
maison,

# build-system
pdm-backend,
setuptools,

# dependencies
click,
maison,
pydantic,
ruyaml,

# tests
pytest-freezegun,
pytest-xdist,
pytestCheckHook,
ruyaml,
setuptools,
versionCheckHook,
writableTmpDirAsHomeHook,
}:

Expand All @@ -27,8 +34,8 @@ buildPythonPackage rec {
};

build-system = [
setuptools
pdm-backend
setuptools
];

dependencies = [
Expand All @@ -43,7 +50,9 @@ buildPythonPackage rec {
pytest-xdist
pytestCheckHook
writableTmpDirAsHomeHook
versionCheckHook
];
versionCheckProgramArg = "--version";

pythonImportsCheck = [ "yamlfix" ];

Expand All @@ -52,6 +61,12 @@ buildPythonPackage rec {
"-Wignore::ResourceWarning"
];

disabledTestPaths = [
# Broken since click was updated to 8.2.1 in https://github.com/NixOS/nixpkgs/pull/448189
# TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr'
"tests/e2e/test_cli.py"
];

meta = {
description = "Python YAML formatter that keeps your comments";
homepage = "https://github.com/lyz-code/yamlfix";
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4307,8 +4307,6 @@ with pkgs;
fixup_yarn_lock
;

yamlfix = with python3Packages; toPythonApplication yamlfix;

yamllint = with python3Packages; toPythonApplication yamllint;

# To expose more packages for Yi, override the extraPackages arg.
Expand Down
Loading