Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
999 B
Nix
47 lines
999 B
Nix
{
|
|
buildPythonPackage,
|
|
einops,
|
|
fetchFromGitHub,
|
|
jax,
|
|
jaxlib,
|
|
lib,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "augmax";
|
|
version = "0.3.3";
|
|
pyproject = true;
|
|
|
|
disbaled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "khdlr";
|
|
repo = "augmax";
|
|
tag = "v${version}";
|
|
hash = "sha256-FXgkhZEAR1Y2LvVvV+IWMSQDWrLulLDsSKKuw4ER5wg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|