2022-07-16 12:59:27 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, numpy, pytestCheckHook, openmp }:
|
2018-06-05 23:50:28 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykdtree";
|
2022-12-30 20:13:36 +01:00
|
|
|
version = "1.3.6";
|
2018-06-05 23:50:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-30 20:13:36 +01:00
|
|
|
sha256 = "sha256-eAtpPQVVuFfXqrMeNdQpO/Tr253sekW6S7I7RAD2Jtw=";
|
2018-06-05 23:50:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openmp ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2022-07-16 12:59:27 +02:00
|
|
|
preCheck = ''
|
|
|
|
# make sure we don't import pykdtree from the source tree
|
|
|
|
mv pykdtree tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-06-05 23:50:28 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-06-05 23:50:28 +01:00
|
|
|
description = "kd-tree implementation for fast nearest neighbour search in Python";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/storpipfugl/pykdtree";
|
2018-06-05 23:50:28 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|