mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
python3Packages.oinker: enable tests
octodns-providers.porkbun: enable tests
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user