diff options
author | Ben Darwin <bcdarwin@gmail.com> | 2020-08-24 23:40:19 -0400 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-09-21 09:56:28 -0700 |
commit | 8403806a3953ac75ad1141e578e55293114a0617 (patch) | |
tree | 61cf205f9b7cd43223c758f2a0c2cd88cc3bf378 /pkgs/development/python-modules/rising | |
parent | 6e4908a52d6f852f837679b9f637233ad6b2f51b (diff) |
python3Packages.rising: init at 0.2.0post0
Diffstat (limited to 'pkgs/development/python-modules/rising')
-rw-r--r-- | pkgs/development/python-modules/rising/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/rising/default.nix b/pkgs/development/python-modules/rising/default.nix new file mode 100644 index 0000000000000..eb9afc8353c75 --- /dev/null +++ b/pkgs/development/python-modules/rising/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, isPy27 +, fetchFromGitHub +, pytestCheckHook +, pytestcov +, dill +, numpy +, pytorch +, threadpoolctl +, tqdm +}: + +buildPythonPackage rec { + pname = "rising"; + version = "0.2.0post0"; + + disabled = isPy27; + + src = fetchFromGitHub { + owner = "PhoenixDL"; + repo = pname; + rev = "v${version}"; + sha256 = "0fb9894ppcp18wc2dhhjizj8ja53gbv9wpql4mixxxdz8z2bn33c"; + }; + + propagatedBuildInputs = [ numpy pytorch threadpoolctl tqdm ]; + checkInputs = [ dill pytestcov 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 ]; + }; +} |