python.pkgs.baselines: init at 0.1.5 (#58452)

This commit is contained in:
Timo Kaufmann 2019-03-27 21:27:22 +00:00 committed by GitHub
parent e7a084bdba
commit f2569b9116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 79 additions and 0 deletions

View File

@ -0,0 +1,59 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, gym
, scipy
, tqdm
, joblib
, dill
, progressbar2
, cloudpickle
, click
, pyzmq
, tensorflow
, mpi4py
}:
buildPythonPackage rec {
pname = "baselines";
version = "0.1.5";
src = fetchPypi {
inherit pname version;
sha256 = "0n1mxkcg82gzhkb4j5zzwm335r3rc1sblknqs4x6nkrrh42d65cm";
};
patches = [
# already fixed upstream
./fix-dep-names.patch
];
propagatedBuildInputs = [
gym
scipy
tqdm
joblib
pyzmq
dill
progressbar2
mpi4py
cloudpickle
tensorflow
click
];
# fails to create a daemon, probably because of sandboxing
doCheck = false;
checkInputs = [
pytest
];
meta = with lib; {
description = "High-quality implementations of reinforcement learning algorithms";
homepage = https://github.com/openai/baselines;
license = licenses.mit;
maintainers = with maintainers; [ timokau ];
};
}

View File

@ -0,0 +1,18 @@
diff --git a/setup.py b/setup.py
index bf8badc..570be20 100644
--- a/setup.py
+++ b/setup.py
@@ -10,11 +10,11 @@ setup(name='baselines',
packages=[package for package in find_packages()
if package.startswith('baselines')],
install_requires=[
- 'gym[mujoco,atari,classic_control,robotics]',
+ 'gym',
'scipy',
'tqdm',
'joblib',
- 'zmq',
+ 'pyzmq',
'dill',
'progressbar2',
'mpi4py',

View File

@ -274,6 +274,8 @@ in {
bap = pkgs.ocamlPackages.bap;
};
baselines = callPackage ../development/python-modules/baselines { };
bash_kernel = callPackage ../development/python-modules/bash_kernel { };
bayespy = callPackage ../development/python-modules/bayespy { };