summary refs log tree commit diff
path: root/pkgs/development/python-modules/rising/default.nix
blob: 5537248072616ccb25db9c8d697d6f26f2c7ab04 (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
{ 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 ];
  };
}