nixpkgs/pkgs/development/python-modules/resize-right/default.nix
2023-05-18 01:46:39 +02:00

38 lines
662 B
Nix

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