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 1 { buildPythonPackage 2 2 , einops 3 - , fetchPypi 3 + , fetchFromGitHub 4 4 , jax 5 5 , jaxlib 6 6 , lib ··· 15 15 16 16 disbaled = pythonOlder "3.6"; 17 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="; 18 + src = fetchFromGitHub { 19 + owner = "khdlr"; 20 + repo = "augmax"; 21 + rev = "refs/tags/v${version}"; 22 + hash = "sha256-xz6yJiVZUkRcRa2rKZdytfpP+XCk/QI4xtKlNaS9FYo="; 24 23 }; 25 24 26 - nativeBuildInputs = [ 25 + build-system = [ 27 26 setuptools 28 27 ]; 29 28 30 - propagatedBuildInputs = [ einops jax ]; 29 + dependencies = [ 30 + einops 31 + jax 32 + ]; 31 33 32 34 # augmax does not have any tests at the time of writing (2022-02-19), but 33 35 # jaxlib is necessary for the pythonImportsCheckPhase.