From 296e58b815f70413c3969b5fa33d3f4e86c75f54 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 13 Jul 2023 17:05:45 +0800 Subject: [PATCH] python3Packages.datrie: set format --- pkgs/development/python-modules/datrie/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/datrie/default.nix b/pkgs/development/python-modules/datrie/default.nix index 920e31c7f11e..414474af6ccb 100644 --- a/pkgs/development/python-modules/datrie/default.nix +++ b/pkgs/development/python-modules/datrie/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, setuptools , cython , pytestCheckHook , hypothesis @@ -9,6 +10,7 @@ buildPythonPackage rec { pname = "datrie"; version = "0.8.2"; + format = "pyproject"; src = fetchPypi { inherit pname version; @@ -16,17 +18,17 @@ buildPythonPackage rec { }; nativeBuildInputs = [ + setuptools cython ]; - buildInputs = [ - hypothesis + nativeCheckInputs = [ pytestCheckHook ]; - postPatch = '' - substituteInPlace setup.py --replace '"pytest-runner", ' "" - ''; + checkInputs = [ + hypothesis + ]; pythonImportsCheck = [ "datrie" ];