Unverified Commit 5788f48b authored by Tristan Ross's avatar Tristan Ross
Browse files

python3Packages.pyluwen: init at 0.7.11

parent 4afcc5ad
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  runCommand,
  fetchFromGitHub,
  rustPlatform,
  maturin,
  protobuf_30,
}:
buildPythonPackage rec {
  pname = "pyluwen";
  version = "0.7.11";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tenstorrent";
    repo = "luwen";
    tag = "v${version}";
    hash = "sha256-eQpKEeuy0mVrmu8ssAOWBcXi7zutStu+RbZOEF/IJ98=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    hash = "sha256-INzF8ORkrmPQMJbGSNm5QkfMOgE+HJ3taU1EZ9i+HJg=";
  };

  sourceRoot = "${src.name}/crates/${pname}";

  prePatch = ''
    chmod -R u+w ../../
    cd ../../
  '';

  postPatch = ''
    cd ../$sourceRoot
    cp --no-preserve=ownership,mode ../../Cargo.lock .
  '';

  nativeBuildInputs = with rustPlatform; [
    cargoSetupHook
    maturinBuildHook
    protobuf_30
  ];

  build-system = [ maturin ];

  meta = {
    description = "Tenstorrent system interface library";
    homepage = "https://github.com/tenstorrent/luwen";
    maintainers = with lib.maintainers; [ RossComputerGuy ];
    license = with lib.licenses; [ asl20 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -13240,6 +13240,8 @@ self: super: with self; {
  pylutron-caseta = callPackage ../development/python-modules/pylutron-caseta { };
  pyluwen = callPackage ../development/python-modules/pyluwen { };
  pylxd = callPackage ../development/python-modules/pylxd { };
  pylyrics = callPackage ../development/python-modules/pylyrics { };