Skip to content

Commit

Permalink
python313Packages.pytest-golden: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Feb 6, 2025
1 parent 7c241da commit 294dcf0
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions pkgs/development/python-modules/pytest-golden/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
atomicwrites,
buildPythonPackage,
fetchFromGitHub,
#, hatchling
ruamel-yaml,
poetry-core,
pytest,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
testfixtures,
Expand All @@ -16,7 +14,7 @@
buildPythonPackage rec {
pname = "pytest-golden";
version = "0.2.2";
format = "pyproject";
pyproject = true;

disabled = pythonOlder "3.7";

Expand All @@ -29,29 +27,26 @@ buildPythonPackage rec {

postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry>=0.12" poetry-core \
--replace poetry.masonry.api poetry.core.masonry.api
--replace-fail "poetry>=0.12" poetry-core \
--replace-fail poetry.masonry.api poetry.core.masonry.api
'';

pythonRelaxDeps = [ "testfixtures" ];

nativeBuildInputs = [
build-system = [
# hatchling used for > 0.2.2
poetry-core
];

buildInputs = [ pytest ];

propagatedBuildInputs = [
dependencies = [
atomicwrites
ruamel-yaml
testfixtures
];

nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "pytest_golden" ];

Expand Down

0 comments on commit 294dcf0

Please sign in to comment.