Merge pull request #311296 from GaetanLepage/augmax
python311Packages.augmax: switch to fetchFromGitHub
This commit is contained in:
commit
055b329680
@ -1,6 +1,6 @@
|
|||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, einops
|
, einops
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, jax
|
, jax
|
||||||
, jaxlib
|
, jaxlib
|
||||||
, lib
|
, lib
|
||||||
@ -15,19 +15,21 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
disbaled = pythonOlder "3.6";
|
disbaled = pythonOlder "3.6";
|
||||||
|
|
||||||
# Using fetchPypi because the latest version was not tagged on GitHub.
|
src = fetchFromGitHub {
|
||||||
# Switch back to fetchFromGitHub when a tag will be available
|
owner = "khdlr";
|
||||||
# https://github.com/khdlr/augmax/issues/8
|
repo = "augmax";
|
||||||
src = fetchPypi {
|
rev = "refs/tags/v${version}";
|
||||||
inherit pname version;
|
hash = "sha256-xz6yJiVZUkRcRa2rKZdytfpP+XCk/QI4xtKlNaS9FYo=";
|
||||||
hash = "sha256-pf1DTaHA7D+s2rqwwGYlJrJOI7fok+WOvOCtZhOOGHo=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ einops jax ];
|
dependencies = [
|
||||||
|
einops
|
||||||
|
jax
|
||||||
|
];
|
||||||
|
|
||||||
# augmax does not have any tests at the time of writing (2022-02-19), but
|
# augmax does not have any tests at the time of writing (2022-02-19), but
|
||||||
# jaxlib is necessary for the pythonImportsCheckPhase.
|
# jaxlib is necessary for the pythonImportsCheckPhase.
|
||||||
|
Loading…
Reference in New Issue
Block a user