Files
nixpkgs/pkgs/development/python-modules/dctorch/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
689 B
Nix

{
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=";
};
pythonRelaxDeps = [ "numpy" ];
build-system = [ poetry-core ];
dependencies = [
numpy
scipy
torch
];
pythonImportsCheck = [ "dctorch" ];
doCheck = false; # no tests
meta = {
description = "Fast discrete cosine transforms for pytorch";
homepage = "https://pypi.org/project/dctorch/";
license = lib.licenses.mit;
teams = [ lib.teams.tts ];
};
}