python310Packages.resize-right: init at 0.0.2

This commit is contained in:
Martin Weinelt 2023-05-16 14:07:22 +02:00
parent 1b28a9b9b8
commit 2901b67d76
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
# dependencies
, numpy
, torch
}:
buildPythonPackage rec {
pname = "resize-right";
version = "0.0.2";
src = fetchPypi {
inherit pname version;
hash = "sha256-fcNbcs5AErd/fMkEmDUWN5OrmKWKuIk2EPsRn+Wa9SA=";
};
propagatedBuildInputs = [
numpy
torch
];
pythonImportsCheck = [
"resize_right"
];
# no tests
doCheck = false;
meta = with lib; {
description = "The correct way to resize images or tensors. For Numpy or Pytorch (differentiable";
homepage = "https://github.com/assafshocher/ResizeRight";
license = licenses.mit;
maintainers = teams.tts.members;
};
}

View file

@ -10463,6 +10463,8 @@ self: super: with self; {
resampy = callPackage ../development/python-modules/resampy { };
resize-right = callPackage ../development/python-modules/resize-right { };
resolvelib = callPackage ../development/python-modules/resolvelib { };
responses = callPackage ../development/python-modules/responses { };