{ lib , buildPythonPackage , cargo , fetchPypi , pytestCheckHook , pythonOlder , rustc , rustPlatform }: buildPythonPackage rec { pname = "rpds-py"; version = "0.8.10"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchPypi { pname = "rpds_py"; inherit version; hash = "sha256-E+ZDzorVAqAmM5c2L7iHWUtJz4S/UY1gOMFvI18rzqQ="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; hash = "sha256-D4pbEipVn1r5rrX+wDXi97nDZJyBlkdqhmbJSgQGTLU="; }; nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook cargo rustc ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "rpds" ]; meta = with lib; { description = "Python bindings to Rust's persistent data structures (rpds"; homepage = "https://pypi.org/project/rpds-py/"; license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }