depot/third_party/nixpkgs/pkgs/development/python-modules/pykdtree/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

29 lines
730 B
Nix

{ lib, buildPythonPackage, fetchPypi, numpy, pytestCheckHook, openmp }:
buildPythonPackage rec {
pname = "pykdtree";
version = "1.3.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-c0L3XnMRA+ZT/B9rn9q8JBDPkrbnsGFggEp1eGybV0c=";
};
buildInputs = [ openmp ];
propagatedBuildInputs = [ numpy ];
preCheck = ''
# make sure we don't import pykdtree from the source tree
mv pykdtree tests
'';
checkInputs = [ 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 ];
};
}