Merge pull request #311296 from GaetanLepage/augmax

python311Packages.augmax: switch to fetchFromGitHub

authored by

Pol Dellaiera and committed by
GitHub
055b3296 109da46a

+11 -9
+11 -9
pkgs/development/python-modules/augmax/default.nix
··· 1 { buildPythonPackage 2 , einops 3 - , fetchPypi 4 , jax 5 , jaxlib 6 , lib ··· 15 16 disbaled = pythonOlder "3.6"; 17 18 - # Using fetchPypi because the latest version was not tagged on GitHub. 19 - # Switch back to fetchFromGitHub when a tag will be available 20 - # https://github.com/khdlr/augmax/issues/8 21 - src = fetchPypi { 22 - inherit pname version; 23 - hash = "sha256-pf1DTaHA7D+s2rqwwGYlJrJOI7fok+WOvOCtZhOOGHo="; 24 }; 25 26 - nativeBuildInputs = [ 27 setuptools 28 ]; 29 30 - propagatedBuildInputs = [ einops jax ]; 31 32 # augmax does not have any tests at the time of writing (2022-02-19), but 33 # jaxlib is necessary for the pythonImportsCheckPhase.
··· 1 { buildPythonPackage 2 , einops 3 + , fetchFromGitHub 4 , jax 5 , jaxlib 6 , lib ··· 15 16 disbaled = pythonOlder "3.6"; 17 18 + src = fetchFromGitHub { 19 + owner = "khdlr"; 20 + repo = "augmax"; 21 + rev = "refs/tags/v${version}"; 22 + hash = "sha256-xz6yJiVZUkRcRa2rKZdytfpP+XCk/QI4xtKlNaS9FYo="; 23 }; 24 25 + build-system = [ 26 setuptools 27 ]; 28 29 + dependencies = [ 30 + einops 31 + jax 32 + ]; 33 34 # augmax does not have any tests at the time of writing (2022-02-19), but 35 # jaxlib is necessary for the pythonImportsCheckPhase.