python311Packages.augmax: refactor

- add changelog to meta
- use a new parameter for pyproject
- disable old python version
This commit is contained in:
natsukium 2023-10-17 14:16:17 +09:00
parent c566a3a095
commit d797abd1d5
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -4,20 +4,28 @@
, jax
, jaxlib
, lib
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "augmax";
version = "0.3.1";
format = "setuptools";
pyproject = true;
disbaled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "khdlr";
repo = pname;
repo = "augmax";
rev = "refs/tags/v${version}";
hash = "sha256-hDNNoE7KVaH3jrXZA4A8f0UoQJPl6KHA3XwMc3Ccohk=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ einops jax ];
# augmax does not have any tests at the time of writing (2022-02-19), but
@ -29,6 +37,7 @@ buildPythonPackage rec {
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/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ samuela ];
};