Unverified Commit 3b4c9a0e authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python310Packages.dctorch: init at 0.1.2

Packaged as a dependency for k-diffusion.
parent ed66c817
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, poetry-core
, numpy
, scipy
, torch
}:

buildPythonPackage rec {
  pname = "dctorch";
  version = "0.1.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-TmfLAkiofrQNWYBhIlY4zafbZPgFftISCGloO/rlEG4=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    numpy
    scipy
    torch
  ];

  pythonImportsCheck = [
    "dctorch"
  ];

  doCheck = false; # no tests

  meta = with lib; {
    description = "Fast discrete cosine transforms for pytorch";
    homepage = "https://pypi.org/project/dctorch/";
    license = licenses.mit;
    maintainers = teams.tts.members;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2607,6 +2607,8 @@ self: super: with self; {
  dcmstack = callPackage ../development/python-modules/dcmstack { };
  dctorch = callPackage ../development/python-modules/dctorch { };
  ddt = callPackage ../development/python-modules/ddt { };
  deal = callPackage ../development/python-modules/deal { };