Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 rustPlatform, 6}: 7buildPythonPackage rec { 8 pname = "lazrs"; 9 version = "0.7.0"; 10 11 format = "pyproject"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-UxkbNRwdn6RfdEcWmDhL9CveFFmTCWRfudTDU/D7fyQ="; 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-GVb34eznC5/TA/SpvDq9uJ9M3nUTfx0KyfRFd4WUyCI="; 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}