Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, scikit-build-core 5, distlib 6, pytestCheckHook 7, pyproject-metadata 8, pathspec 9, pybind11 10, cmake 11, LASzip 12}: 13 14buildPythonPackage rec { 15 pname = "laszip-python"; 16 version = "0.2.1"; 17 18 format = "pyproject"; 19 20 src = fetchFromGitHub { 21 owner = "tmontaigu"; 22 repo = pname; 23 rev = version; 24 sha256 = "sha256-ujKoUm2Btu25T7ZrSGqjRc3NR1qqsQU8OwHQDSx8grY="; 25 }; 26 27 nativeBuildInputs = [ 28 scikit-build-core 29 scikit-build-core.optional-dependencies.pyproject 30 cmake 31 ]; 32 33 buildInputs = [ 34 pybind11 35 LASzip 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 ]; 41 42 preBuild = '' 43 cd .. 44 ''; 45 46 # There are no tests 47 doCheck = false; 48 49 pythonImportsCheck = [ "laszip" ]; 50 51 meta = with lib; { 52 description = "Unofficial bindings between Python and LASzip made using pybind11"; 53 homepage = "https://github.com/tmontaigu/laszip-python"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ matthewcroughan ]; 56 }; 57} 58