python3.pkgs.datrie: add build dependencies and improve derivation (#247306)

This commit is contained in:
Theodore Ni 2023-08-10 22:57:20 -07:00 committed by GitHub
parent c1cf0594fd
commit 2d6cf36efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
, buildPythonPackage
, fetchPypi
, setuptools
, wheel
, cython
, pytestCheckHook
, hypothesis
@ -17,17 +18,20 @@ buildPythonPackage rec {
hash = "sha256-UlsI9jjVz2EV32zNgY5aASmM0jCy2skcj/LmSZ0Ydl0=";
};
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner", ' ""
'';
nativeBuildInputs = [
setuptools
wheel
cython
];
nativeCheckInputs = [
pytestCheckHook
];
checkInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "datrie" ];