New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pythonPackages.pymc3: init at 3.2 #32416
Conversation
sha256 = "1wkjd71rx1akfrk6iimi4zm783gagxmkxm3ppjyr2c98asni009c"; | ||
}; | ||
|
||
buildInputs = [ nose ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkInputs
propagatedBuildInputs = [ | ||
six | ||
numpy | ||
] ++ lib.optional (!isNull scipy) [ scipy ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that lib.optional needs to be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? It's an optional dependency to patsy allowing for some optional features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its no problem if one would pass in scipy = null;
;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see! Of course then.
propagatedBuildInputs = [ | ||
Theano | ||
gfortran | ||
openblas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
numpy.blas or scipy.blas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed, your concerns are very valid
|
||
propagatedBuildInputs = [ | ||
Theano | ||
gfortran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it need to propagate gfortran and openblas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely not needed. I found some existing nix expression where they were listed and did not think about it honestly.
patsy | ||
tqdm | ||
joblib | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
several packages you mentioned here are dependencies of others. No need to repeat them, although it also doesn't hurt.
joblib | ||
]; | ||
|
||
doCheck = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Leave a comment in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the tests work but they are quite computationally intensive and some of them fail. Maybe I can patch it so that only few specific tests are run.
Another issue is that the tests are being run in the install phase instead of the check phase. Is it normal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not really.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disabled the tests and left a note on this peculiarity.
pname = "patsy"; | ||
version = "0.4.1"; | ||
|
||
src = fetchurl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not from PyPI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it actually but specifically patsy 0.4.1
is not found there
|
||
doCheck = false; | ||
|
||
src = fetchurl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not from PyPI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
9b991cc
to
300840c
Compare
I used this package thoroughly and It’s fully functional. The test suite failures I mentioned above are not relevant for end users. |
, tqdm | ||
, six | ||
, h5py | ||
, run-tests ? false # these are quite heavy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be an option. If one wants to change this value one can use overridePythonAttrs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thank you
rclone: 1.39 -> 1.40
(cherry picked from commit 3e88838f3f2fe4e56d10e5eb60d9d8b4c544fb17)
(cherry picked from commit 2e0dfb4) Signed-off-by: Domen Kožar <domen@dev.si>
Closes: NixOS#37444 (cherry picked from commit 9acdfbf)
(cherry picked from commit 8322981)
…n if not set (cherry picked from commit 95a819c)
…-> 2018-04-10 (cherry picked from commit ad22967)
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - ran `/nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1/bin/.nextcloud-news-updater-wrapped -h` got 0 exit code - ran `/nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1/bin/.nextcloud-news-updater-wrapped --help` got 0 exit code - ran `/nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1/bin/.nextcloud-news-updater-wrapped -v` and found version 10.0.1 - ran `/nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1/bin/.nextcloud-news-updater-wrapped --version` and found version 10.0.1 - ran `/nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1/bin/nextcloud-news-updater -h` got 0 exit code - ran `/nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1/bin/nextcloud-news-updater --help` got 0 exit code - ran `/nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1/bin/nextcloud-news-updater -v` and found version 10.0.1 - ran `/nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1/bin/nextcloud-news-updater --version` and found version 10.0.1 - found 10.0.1 with grep in /nix/store/58kz8y29n2habv056d7iz20484rq87mr-nextcloud-news-updater-10.0.1 - directory tree listing: https://gist.github.com/ef3eb260a3fd46598a3b70c142c2ef2c (cherry picked from commit a7046d5)
(cherry picked from commit ae3782b) fixes NixOS#38550
(cherry picked from commit 059f33c)
(cherry picked from commit 4009338)
(cherry picked from commit d6e8371)
(cherry picked from commit 0cadbb8)
(cherry picked from commit 042c001)
(cherry picked from commit a36ae7a)
(cherry picked from commit 017fffc)
(cherry picked from commit 399edfe)
(cherry picked from commit 03efbb0)
(cherry picked from commit 357a2cc)
Motivation for this change
Adds the latest stable version of
pymc3
to Python packages. This is one of the major Bayesian inference libraries (along withstan
,BUGS
,JAGS
and, to a lesser extent,edward
),Things done
Edit: longer info