1{ lib
2, buildPythonPackage
3, fetchPypi
4
5# dependencies
6, numpy
7, torch
8}:
9
10buildPythonPackage rec {
11 pname = "resize-right";
12 version = "0.0.2";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-fcNbcs5AErd/fMkEmDUWN5OrmKWKuIk2EPsRn+Wa9SA=";
17 };
18
19 propagatedBuildInputs = [
20 numpy
21 torch
22 ];
23
24 pythonImportsCheck = [
25 "resize_right"
26 ];
27
28 # no tests
29 doCheck = false;
30
31 meta = with lib; {
32 description = "The correct way to resize images or tensors. For Numpy or Pytorch (differentiable";
33 homepage = "https://github.com/assafshocher/ResizeRight";
34 license = licenses.mit;
35 maintainers = teams.tts.members;
36 };
37}