Files
nixpkgs/pkgs/development/python-modules/augmax/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
997 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 = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ samuela ];
};
}