depot/third_party/nixpkgs/pkgs/development/python-modules/pykdtree/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

29 lines
730 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
'';
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 ];
};
}