1{ lib, buildPythonPackage, fetchPypi, numpy, pytestCheckHook, openmp }: 2 3buildPythonPackage rec { 4 pname = "pykdtree"; 5 version = "1.3.5"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "sha256-c0L3XnMRA+ZT/B9rn9q8JBDPkrbnsGFggEp1eGybV0c="; 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 checkInputs = [ 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}