Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e7a084bdba52
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f2569b9116c3
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Mar 27, 2019

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jluttine Jaakko Luttinen
    Copy the full SHA
    f2569b9 View commit details
59 changes: 59 additions & 0 deletions pkgs/development/python-modules/baselines/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
18 changes: 18 additions & 0 deletions pkgs/development/python-modules/baselines/fix-dep-names.patch
Original file line number Diff line number Diff line change
@@ -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',
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -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 { };