python310Packages.dctorch: init at 0.1.2

Packaged as a dependency for k-diffusion.
This commit is contained in:
Martin Weinelt 2023-09-30 03:46:23 +02:00
parent ed66c817ab
commit 3b4c9a0eb7
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ 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;
};
}

View file

@ -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 { };