From c566a3a095961005f115b72e547e128d33a1a00e Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 17 Oct 2023 14:11:40 +0900 Subject: [PATCH 1/2] python311Packages.augmax: unstable-2022-02-19 -> 0.3.1 Diff: https://github.com/khdlr/augmax/compare/3e5d85d6921a1e519987d33f226bc13f61e04d04...v0.3.1 Changelog: https://github.com/khdlr/augmax/blob/v0.3.1/CHANGELOG.md --- pkgs/development/python-modules/augmax/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/augmax/default.nix b/pkgs/development/python-modules/augmax/default.nix index 48eb38cad3d2..47a531863ff1 100644 --- a/pkgs/development/python-modules/augmax/default.nix +++ b/pkgs/development/python-modules/augmax/default.nix @@ -8,15 +8,14 @@ buildPythonPackage rec { pname = "augmax"; - version = "unstable-2022-02-19"; + version = "0.3.1"; format = "setuptools"; src = fetchFromGitHub { owner = "khdlr"; repo = pname; - # augmax does not have releases tagged. See https://github.com/khdlr/augmax/issues/5. - rev = "3e5d85d6921a1e519987d33f226bc13f61e04d04"; - sha256 = "046n43v7161w7najzlbi0443q60436xv24nh1mv23yw6psqqhx5i"; + rev = "refs/tags/v${version}"; + hash = "sha256-hDNNoE7KVaH3jrXZA4A8f0UoQJPl6KHA3XwMc3Ccohk="; }; propagatedBuildInputs = [ einops jax ]; From d797abd1d5520b3a15acf55a35c56e1893aaad56 Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 17 Oct 2023 14:16:17 +0900 Subject: [PATCH 2/2] python311Packages.augmax: refactor - add changelog to meta - use a new parameter for pyproject - disable old python version --- pkgs/development/python-modules/augmax/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/augmax/default.nix b/pkgs/development/python-modules/augmax/default.nix index 47a531863ff1..2ab159cfc6f8 100644 --- a/pkgs/development/python-modules/augmax/default.nix +++ b/pkgs/development/python-modules/augmax/default.nix @@ -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 ]; };