python310Packages.dctorch: init at 0.1.2
Packaged as a dependency for k-diffusion.
This commit is contained in:
parent
ed66c817ab
commit
3b4c9a0eb7
42
pkgs/development/python-modules/dctorch/default.nix
Normal file
42
pkgs/development/python-modules/dctorch/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue