python3Packages.datrie: set format

This commit is contained in:
Nick Cao 2023-07-13 17:05:45 +08:00
parent 6a05eeb515
commit 296e58b815
No known key found for this signature in database

View File

@ -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" ];