5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
47 lines
1,005 B
Nix
47 lines
1,005 B
Nix
{ buildPythonPackage
|
|
, einops
|
|
, fetchFromGitHub
|
|
, jax
|
|
, jaxlib
|
|
, lib
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "augmax";
|
|
version = "0.3.2";
|
|
pyproject = true;
|
|
|
|
disbaled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "khdlr";
|
|
repo = "augmax";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-xz6yJiVZUkRcRa2rKZdytfpP+XCk/QI4xtKlNaS9FYo=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
einops
|
|
jax
|
|
];
|
|
|
|
# augmax does not have any tests at the time of writing (2022-02-19), but
|
|
# jaxlib is necessary for the pythonImportsCheckPhase.
|
|
nativeCheckInputs = [ jaxlib ];
|
|
|
|
pythonImportsCheck = [ "augmax" ];
|
|
|
|
meta = with lib; {
|
|
description = "Efficiently Composable Data Augmentation on the GPU with Jax";
|
|
homepage = "https://github.com/khdlr/augmax";
|
|
changelog = "https://github.com/khdlr/augmax/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ samuela ];
|
|
};
|
|
}
|