python3Packages.flax: init at 0.3.6 (#153761)

This commit is contained in:
Alexander Tsvyashchenko 2022-01-07 18:22:38 +01:00 committed by GitHub
parent bc65e6e142
commit 292e674bb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,60 @@
{ buildPythonPackage
, fetchFromGitHub
, keras
, lib
, matplotlib
, msgpack
, numpy
, optax
, pytestCheckHook
, tensorflow
}:
buildPythonPackage rec {
pname = "flax";
version = "0.3.6";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "0zvq0vl88hiwmss49bnm7gdmndr1dfza2bcs1fj88a9r7w9dmlsr";
};
propagatedBuildInputs = [
matplotlib
msgpack
numpy
optax
];
pythonImportsCheck = [
"flax"
];
checkInputs = [
keras
pytestCheckHook
tensorflow
];
disabledTestPaths = [
# Docs test, needs extra deps + we're not interested in it.
"docs/_ext/codediff_test.py"
# The tests in `examples` are not designed to be executed from a single test
# session and thus either have the modules that conflict with each other or
# wrong import paths, depending on how they're invoked. Many tests also have
# dependencies that are not packaged in `nixpkgs` (`clu`, `jgraph`,
# `tensorflow_datasets`, `vocabulary`) so the benefits of trying to run them
# would be limited anyway.
"examples/*"
];
meta = with lib; {
description = "Neural network library for JAX";
homepage = "https://github.com/google/flax";
license = licenses.asl20;
maintainers = with maintainers; [ ndl ];
};
}

View file

@ -2951,6 +2951,8 @@ in {
inherit (pkgs) flatbuffers;
};
flax = callPackage ../development/python-modules/flax { };
flexmock = callPackage ../development/python-modules/flexmock { };
flickrapi = callPackage ../development/python-modules/flickrapi { };