mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
20a9422c03
Diff: tmontaigu/laszip-python@0.2.1...0.2.3 Changelog: https://github.com/tmontaigu/laszip-python/blob/0.2.3/Changelog.md
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, scikit-build-core
|
|
, pybind11
|
|
, cmake
|
|
, LASzip
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "laszip-python";
|
|
version = "0.2.3";
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tmontaigu";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-MiPzL9TDCf1xnCv7apwdfcpkFnBRi4PO/atTQxqL8cw=";
|
|
};
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=c++17";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pybind11
|
|
scikit-build-core
|
|
scikit-build-core.optional-dependencies.pyproject
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
buildInputs = [
|
|
LASzip
|
|
];
|
|
|
|
# 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";
|
|
changelog = "https://github.com/tmontaigu/laszip-python/blob/${src.rev}/Changelog.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ matthewcroughan ];
|
|
};
|
|
}
|
|
|