diff --git a/pkgs/by-name/oc/octodns/providers/porkbun/package.nix b/pkgs/by-name/oc/octodns/providers/porkbun/package.nix index db0ef703a58f..65f366185c45 100644 --- a/pkgs/by-name/oc/octodns/providers/porkbun/package.nix +++ b/pkgs/by-name/oc/octodns/providers/porkbun/package.nix @@ -2,9 +2,12 @@ lib, buildPythonPackage, fetchFromGitHub, - uv-build, octodns, oinker, + pytest-cov-stub, + pytest-randomly, + pytestCheckHook, + uv-build, }: buildPythonPackage (finalAttrs: { pname = "octodns-porkbun"; @@ -25,6 +28,12 @@ buildPythonPackage (finalAttrs: { oinker ]; + nativeCheckInputs = [ + pytest-cov-stub + pytest-randomly + pytestCheckHook + ]; + pythonImportsCheck = [ "octodns_porkbun" ]; meta = { diff --git a/pkgs/development/python-modules/oinker/default.nix b/pkgs/development/python-modules/oinker/default.nix index 5647a0ccc059..f3f3fdd7e4cf 100644 --- a/pkgs/development/python-modules/oinker/default.nix +++ b/pkgs/development/python-modules/oinker/default.nix @@ -3,6 +3,11 @@ buildPythonPackage, fetchFromGitHub, httpx, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, + rich, + typer, uv-build, }: buildPythonPackage (finalAttrs: { @@ -21,6 +26,20 @@ buildPythonPackage (finalAttrs: { dependencies = [ httpx ]; + optional-dependencies = { + cli = [ + rich + typer + ]; + }; + + nativeCheckInputs = [ + pytest-asyncio + pytest-cov-stub + pytestCheckHook + ] + ++ finalAttrs.finalPackage.optional-dependencies.cli; + pythonImportsCheck = [ "oinker" ]; meta = {