Merge pull request #243231 from NickCao/datrie

python3Packages.datrie: set format
This commit is contained in:
Nick Cao 2023-07-14 09:04:12 +08:00 committed by GitHub
commit bdb0e867ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools
, cython , cython
, pytestCheckHook , pytestCheckHook
, hypothesis , hypothesis
@ -9,6 +10,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "datrie"; pname = "datrie";
version = "0.8.2"; version = "0.8.2";
format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -16,17 +18,17 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
setuptools
cython cython
]; ];
buildInputs = [ nativeCheckInputs = [
hypothesis
pytestCheckHook pytestCheckHook
]; ];
postPatch = '' checkInputs = [
substituteInPlace setup.py --replace '"pytest-runner", ' "" hypothesis
''; ];
pythonImportsCheck = [ "datrie" ]; pythonImportsCheck = [ "datrie" ];