From eaebf83dc062cee73debaabca1c8f1487c3a7d94 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 11 May 2025 12:33:44 +0900 Subject: [PATCH] python3Packages.pytest-recording: refactor --- .../python-modules/pytest-recording/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pytest-recording/default.nix b/pkgs/development/python-modules/pytest-recording/default.nix index 7a94f3fad67c..76cfba653e2e 100644 --- a/pkgs/development/python-modules/pytest-recording/default.nix +++ b/pkgs/development/python-modules/pytest-recording/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "pytest-recording"; version = "0.13.4"; - format = "pyproject"; + pyproject = true; src = fetchFromGitHub { owner = "kiwicom"; @@ -26,16 +26,17 @@ buildPythonPackage rec { hash = "sha256-S++MnI0GgpQxS6kFkt05kcE4JMW7jyFjJ3o7DhfYoVA="; }; + build-system = [ hatchling ]; + buildInputs = [ - hatchling pytest ]; - propagatedBuildInputs = [ vcrpy ]; + dependencies = [ vcrpy ]; __darwinAllowLocalNetworking = true; - checkInputs = [ + nativeCheckInputs = [ pytestCheckHook pytest-httpbin pytest-mock @@ -53,10 +54,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "pytest_recording" ]; - meta = with lib; { + meta = { description = "Pytest plugin that allows you recording of network interactions via VCR.py"; homepage = "https://github.com/kiwicom/pytest-recording"; - license = licenses.mit; - maintainers = with maintainers; [ jbgosselin ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jbgosselin ]; }; }