Files
nixpkgs/pkgs/development/python-modules/pykdtree/default.nix
T
Martin Weinelt 528354e66c python312Packages.cython: 0.29.36 -> 3.0.9
Folds the cython_3 attribute into the primary cython attribute and
migrates all packages from the versioned attribute.

The old version will be provided through the cython_0 attribute in an
effort to phase it out.
2024-03-27 18:35:05 +01:00

58 lines
943 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
# build-system
, cython
, numpy
, setuptools
# native dependencies
, openmp
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pykdtree";
version = "1.3.11";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-bBI8e65SE68iPFKai0FhwH64VKb+QDizaVK62iEx68s=";
};
nativeBuildInputs = [
cython
numpy
setuptools
];
buildInputs = [
openmp
];
propagatedBuildInputs = [
numpy
];
preCheck = ''
# make sure we don't import pykdtree from the source tree
mv pykdtree/test_tree.py .
rm -rf pykdtree
'';
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 ];
};
}