at master 837 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 rustPlatform, 6}: 7buildPythonPackage rec { 8 pname = "lazrs"; 9 version = "0.8.0"; 10 11 format = "pyproject"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-Ij6nRxQO83TJysnLImqg/FuyWYj8ITiiTUFSuoGd044="; 16 }; 17 18 nativeBuildInputs = [ 19 rustPlatform.cargoSetupHook 20 rustPlatform.maturinBuildHook 21 ]; 22 23 cargoDeps = rustPlatform.fetchCargoVendor { 24 inherit src; 25 inherit pname version; 26 hash = "sha256-9OQKybY6R1yYWgx5cLcRv2pRRWKUhrKH+MoTBuBHH6E="; 27 }; 28 29 pythonImportsCheck = [ "lazrs" ]; 30 31 meta = { 32 description = "Python bindings for laz-rs"; 33 homepage = "https://github.com/laz-rs/laz-rs-python"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ 36 nh2 37 chpatrick 38 ]; 39 teams = [ lib.teams.geospatial ]; 40 }; 41}