From 852c6ab21d301c37c4c738d088e5bc7a7ca78321 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Aug 2023 09:49:09 +0200 Subject: [PATCH 1/2] python310Packages.mdformat-beautysh: add missing input --- pkgs/development/python-modules/mdformat-beautysh/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/mdformat-beautysh/default.nix b/pkgs/development/python-modules/mdformat-beautysh/default.nix index 522494f783fe..779f89f7769c 100644 --- a/pkgs/development/python-modules/mdformat-beautysh/default.nix +++ b/pkgs/development/python-modules/mdformat-beautysh/default.nix @@ -7,6 +7,7 @@ , mdit-py-plugins , poetry-core , pythonOlder +, wheel }: buildPythonPackage rec { @@ -25,6 +26,7 @@ buildPythonPackage rec { nativeBuildInputs = [ poetry-core + wheel ]; buildInputs = [ From 3c0d5f8c3e31ce32ae8d7aeb7bdec8752ebf5aed Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Aug 2023 09:49:39 +0200 Subject: [PATCH 2/2] python310Packages.mdformat-beautysh: enable tests - add pythonImportsCheck --- .../python-modules/mdformat-beautysh/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/mdformat-beautysh/default.nix b/pkgs/development/python-modules/mdformat-beautysh/default.nix index 779f89f7769c..547d289f6f95 100644 --- a/pkgs/development/python-modules/mdformat-beautysh/default.nix +++ b/pkgs/development/python-modules/mdformat-beautysh/default.nix @@ -6,6 +6,7 @@ , mdformat-gfm , mdit-py-plugins , poetry-core +, pytestCheckHook , pythonOlder , wheel }: @@ -39,6 +40,14 @@ buildPythonPackage rec { beautysh ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "mdformat_beautysh" + ]; + meta = with lib; { description = "Mdformat plugin to beautify Bash scripts"; homepage = "https://github.com/hukkin/mdformat-beautysh";