a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
29 lines
736 B
Nix
29 lines
736 B
Nix
{ lib, buildPythonPackage, fetchPypi, numpy, pytestCheckHook, openmp }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pykdtree";
|
|
version = "1.3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-eAtpPQVVuFfXqrMeNdQpO/Tr253sekW6S7I7RAD2Jtw=";
|
|
};
|
|
|
|
buildInputs = [ openmp ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
preCheck = ''
|
|
# make sure we don't import pykdtree from the source tree
|
|
mv pykdtree tests
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "kd-tree implementation for fast nearest neighbour search in Python";
|
|
homepage = "https://github.com/storpipfugl/pykdtree";
|
|
license = licenses.lgpl3;
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
};
|
|
}
|