Merge pull request #255967 from GaetanLepage/objax

python310Packages.objax: switch back to GitHub for sources
This commit is contained in:
Samuel Ainsworth 2023-09-18 18:16:26 -04:00 committed by GitHub
commit 56fac37581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
{ lib
, fetchPypi
, fetchFromGitHub
, buildPythonPackage
, jax
, jaxlib
@ -14,17 +14,11 @@ buildPythonPackage rec {
pname = "objax";
version = "1.7.0";
# The latest release (1.7.0) has not been tagged on GitHub. Thus, we fallback to fetchPypi.
# An issue has been opened upstream: https://github.com/google/objax/issues/263
# src = fetchFromGitHub {
# owner = "google";
# repo = "objax";
# rev = "v${version}";
# hash = "";
# };
src = fetchPypi {
inherit pname version;
hash = "sha256-92Z5RxYoWkMAqyF7H/MagPnC4pfXks5k9zmjvo+Z2Mc=";
src = fetchFromGitHub {
owner = "google";
repo = "objax";
rev = "v${version}";
hash = "sha256-1/XmxFZfU+XMD0Mlcv4xTUYZDwltAx1bZOlPuKWQQC0=";
};
# Avoid propagating the dependency on `jaxlib`, see