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