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: add pyhepmc, graphviz; bump rootpy #23094
Conversation
pkgs/top-level/python-packages.nix
Outdated
disable = isPy3k; | ||
|
||
src = pkgs.fetchurl { | ||
url = "https://pypi.python.org/packages/01/98/8dec899491e4ac01a6fc8269e3b6dffd35421321b6858e21672489678fa8/graphviz-0.5.2.zip"; |
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.
You could replace this with:
url = "mirror://pypi/g/graphviz/${name}.zip";
This makes updating the derivation easier singe changing the version
attribute is enough to update the url as well.
pkgs/top-level/python-packages.nix
Outdated
graphviz = buildPythonPackage rec { | ||
name = "graphviz-${version}"; | ||
version = "0.5.2"; | ||
disable = isPy3k; |
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.
According to the project page: “This package runs under Python 2.6, 2.7, and 3.3+”.
The setup.py has:
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
as classifiers.
Any reason to disable this derivation for python3?
pkgs/top-level/python-packages.nix
Outdated
name = "rootpy-${version}"; | ||
|
||
src = pkgs.fetchurl { | ||
url = "https://pypi.python.org/packages/d5/40/feddb2c9d1cadfe05d1d9aea1a71be093dc700879c9f6af40a10b1330f34/rootpy-0.8.3.tar.gz"; | ||
sha256 = "14q9bhs2a53598571x8yikj68x2iyl6090wbvdrpbwr238799b0z"; | ||
url = "https://pypi.python.org/packages/c0/a4/2672dad1920c23375fd8155c8fd7940b7e36fdd3cd018a886420dc6c76d0/rootpy-0.9.0.tar.gz"; |
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.
Here you could also use mirror://pypi/r/rootpy/${name}.tar.gz
as a simplification.
f05b6ec
to
2b33ecc
Compare
Hi @veprbl, Here is the error from travis-ci (which is the same I got locally if A try to build this PR):
Apparently, the hash of the patch you fetch for pyhepmc do not match. This is quite strange because I can run:
Did you have any trouble when building your derivation? |
I can reproduce exactly your result. I'm not sure what is going on, probably bitbucket gets triggered by some different http headers that fetchpatch could send. I will just put the patch itself to the repo. Hope that's alright. edit: fetchpatch does postprocessing which nix-prefetch-url doesn't do - that's why hashes differ |
Builds fine, merged. Thanks. |
Thank you for review! |
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)