mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
python311Packages.augmax: refactor
- add changelog to meta - use a new parameter for pyproject - disable old python version
This commit is contained in:
parent
c566a3a095
commit
d797abd1d5
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user