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

This commit is contained in:
Theodore Ni
2023-08-11 07:57:20 +02:00
committed by GitHub
parent c1cf0594fd
commit 2d6cf36efd
@@ -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" ];