1{ lib, buildPythonPackage, fetchPypi, numpy, pytestCheckHook, openmp }: 2 3buildPythonPackage rec { 4 pname = "pykdtree"; 5 version = "1.3.7.post0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 hash = "sha256-7KHWHTPbYh74An62ka6I25xl0ZarpLLMkMGQy5C7UI4="; 10 }; 11 12 buildInputs = [ openmp ]; 13 14 propagatedBuildInputs = [ numpy ]; 15 16 preCheck = '' 17 # make sure we don't import pykdtree from the source tree 18 mv pykdtree tests 19 ''; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 meta = with lib; { 24 description = "kd-tree implementation for fast nearest neighbour search in Python"; 25 homepage = "https://github.com/storpipfugl/pykdtree"; 26 license = licenses.lgpl3; 27 maintainers = with maintainers; [ psyanticy ]; 28 }; 29}