about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/resize-right/default.nix
blob: 99b42faf3995227d0e8ef6c1468b2fe9361137dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, buildPythonPackage
, fetchPypi

# dependencies
, numpy
, torch
}:

buildPythonPackage rec {
  pname = "resize-right";
  version = "0.0.2";
  format = "setuptools";

  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;
  };
}