Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
969 B
1
Indexable
Never
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/55520e0602239cf57799cc5eebcac2712b5728eb.tar.gz") {overlays = [(final: prev: { cudaPackages = prev.cudaPackages_12; })];} }:

with pkgs;

python310Packages.buildPythonPackage rec {
  pname = "lws";
  version = "1.2.8"; # replace with the actual version
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Jonathan-LeRoux";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-vOJY1qd+7KuYKo1KaqqDD0B7BEST4tHNba0RaqRnYgM=";
  };
  nativeBuildInputs = with pkgs; [
    automake
    python310Packages.cython_3
    python310Packages.setuptools
  ];

  buildInputs = [
    python310Packages.numpy
  ];

  postPatch = ''
    cd python
  '';
  
  meta = with lib; {
    description = "Short description of the package"; # replace with actual description
    homepage = "https://github.com/Jonathan-LeRoux/lws";
    license = licenses.mit; # replace with the actual license
  };
}
Leave a Comment