15 buildPythonPackage rec {
16 pname = "skytemple-rust";
20 src = fetchFromGitHub {
22 repo = "skytemple-rust";
24 hash = "sha256-0hIwFJn/cwtKHKoD+upeorC52YnDlej3TrWf3PmAQAQ=";
27 cargoDeps = rustPlatform.fetchCargoTarball {
29 name = "${pname}-${version}";
30 hash = "sha256-Gdypi9DJAXQgNaRCLEt4LTqUhBJC8plH0YhgNOIOGvA=";
33 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
39 rustPlatform.cargoSetupHook
43 propagatedBuildInputs = [ range-typed-integers ];
45 GETTEXT_SYSTEM = true;
47 doCheck = false; # tests for this package are in skytemple-files package
48 pythonImportsCheck = [ "skytemple_rust" ];
51 homepage = "https://github.com/SkyTemple/skytemple-rust";
52 description = "Binary Rust extensions for SkyTemple";
53 license = licenses.mit;
54 maintainers = with maintainers; [ marius851000 ];