567e8dfd8e
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>
42 lines
689 B
Nix
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 ];
|
|
};
|
|
}
|