mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
38 lines
783 B
Nix
38 lines
783 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, dill
|
|
, numpy
|
|
, torch
|
|
, threadpoolctl
|
|
, tqdm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rising";
|
|
version = "0.2.1";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PhoenixDL";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "15wYWToXRae1cMpHWbJwzAp0THx6ED9ixQgL+n1v9PI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ numpy torch threadpoolctl tqdm ];
|
|
checkInputs = [ dill pytestCheckHook ];
|
|
|
|
disabledTests = [ "test_affine" ]; # deprecated division operator '/'
|
|
|
|
meta = {
|
|
description = "High-performance data loading and augmentation library in PyTorch";
|
|
homepage = "https://rising.rtfd.io";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|