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.block-io: init at 1.1.8 #42619
Conversation
There may just be a problem with the pycrypto version, please wait before merge |
4933d7d
to
d4a9469
Compare
I wrote a small patch as it was an easy fix 👍 |
@GrahamcOfBorg build python.pkgs.block-io python.pkgs.base58 python3.pkgs.block-io python3.pkgs.base58 |
{ stdenv, fetchPypi, buildPythonPackage }: | ||
|
||
buildPythonPackage rec { | ||
name = "${pname}-${version}"; |
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.
The name
attribute is added by buildPython*
and should therefore be removed.
{ stdenv, fetchPypi, buildPythonPackage, base58, ecdsa, pycrypto, requests, six }: | ||
|
||
buildPythonPackage rec { | ||
name = "${pname}-${version}"; |
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.
The name
attribute is added by buildPython*
and should therefore be removed.
}; | ||
|
||
patches = [ | ||
./patch-pycrypto |
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.
Have you submitted the patch upstream?
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 should maybe :)
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.
Please do that and then best use fetchpatch
here.
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.
Ping @nyanloutre
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.
done
Success on x86_64-linux (full log) Attempted: python.pkgs.block-io, python.pkgs.base58, python3.pkgs.block-io, python3.pkgs.base58 Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: python.pkgs.block-io, python.pkgs.base58, python3.pkgs.block-io, python3.pkgs.base58 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python.pkgs.block-io, python.pkgs.base58, python3.pkgs.block-io, python3.pkgs.base58 Partial log (click to expand)
|
No tests are found. Either the test runner cannot find tests and needs to be patched, or there simply are no tests in which case the tests need to be disabled. Do include a comment explaining why the tests are disabled. |
d4a9469
to
5730fae
Compare
Hi, I added tests for the base58 package and pruned the extra variables. Unfortunately the block-io package needs an API key to run the tests, so I disabled them with a link to the relevant line upstream. |
5730fae
to
35c5c22
Compare
|
||
buildInputs = [ pytest pytestpep8 pytestflakes pytestcov pyhamcrest ]; | ||
checkPhase = '' | ||
pytest --pep8 --flakes --cov=base58 |
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.
It would be better to remove the flags from this line and appropriate packages from checkInputs
. They are not interesting for Nixpkgs.
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.
done
35c5c22
to
d3a35da
Compare
d2bbc2a
to
050bb7f
Compare
1e3a2b3
to
7a47ed2
Compare
My patch has been merged and a new version has been released, I will update accordingly later today. https://github.com/BlockIo/block_io-python/releases/tag/1.1.8 |
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.
Please squash your last 3 commits into one.
src = fetchFromGitHub { | ||
owner = "keis"; | ||
repo = "base58"; | ||
rev = "871dbe14fe8e9675ef262a5e06fbf3874562a28c"; |
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.
Any reason not to use rev = "v${version}"
?
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.
Is it a good practice ? While checking on a few existing derivations I figured this was standard.
src = fetchFromGitHub { | ||
owner = "BlockIo"; | ||
repo = "block_io-python"; | ||
rev = "7d532edcfbcc85da68782d4ec0c7767a0008183f"; |
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 as well. Also, why don't you use fetchPypi
?
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 are right, I fetched from GitHub so I could apply my patch but now that it's included in the latest version I can use fetchPypi
again.
doCheck = false; | ||
|
||
meta = with stdenv.lib; { | ||
description = "The easiest way to integrate Bitcoin, Dogecoin and Litecoin in your applications. Sign up at Block.io for your API key."; |
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.
79b8d66
to
ca2f4dd
Compare
ca2f4dd
to
71a8aaf
Compare
@dotlambda : I think I completed your requests 🎉 |
Hello @FRidh, is something still preventing to merge ? |
@GrahamcOfBorg build pythonPackages.block-io pythonPackages.base58 python3Packages.block-io python3Packages.base58 |
Success on x86_64-darwin (full log) Attempted: pythonPackages.block-io, pythonPackages.base58, python3Packages.block-io, python3Packages.base58 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: pythonPackages.block-io, pythonPackages.base58, python3Packages.block-io, python3Packages.base58 Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: pythonPackages.block-io, pythonPackages.base58, python3Packages.block-io, python3Packages.base58 Partial log (click to expand)
|
Motivation for this change
Block.io official python bindings and a missing dependancy (base58)
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)