depot/third_party/nixpkgs/pkgs/development/python-modules/laszip/default.nix
Default email eaf6957cd3 Project import generated by Copybara.
GitOrigin-RevId: 4bb072f0a8b267613c127684e099a70e1f6ff106
2023-03-27 12:17:25 -07:00

58 lines
1,002 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, scikit-build-core
, distlib
, pytestCheckHook
, pyproject-metadata
, pathspec
, pybind11
, cmake
, LASzip
}:
buildPythonPackage rec {
pname = "laszip-python";
version = "0.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "tmontaigu";
repo = pname;
rev = version;
sha256 = "sha256-ujKoUm2Btu25T7ZrSGqjRc3NR1qqsQU8OwHQDSx8grY=";
};
nativeBuildInputs = [
scikit-build-core
scikit-build-core.optional-dependencies.pyproject
cmake
];
buildInputs = [
pybind11
LASzip
];
checkInputs = [
pytestCheckHook
];
preBuild = ''
cd ..
'';
# There are no tests
doCheck = false;
pythonImportsCheck = [ "laszip" ];
meta = with lib; {
description = "Unofficial bindings between Python and LASzip made using pybind11";
homepage = "https://github.com/tmontaigu/laszip-python";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
};
}