-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45644 from jluttine/update-rlp-1.0.2
pythonPackages.rlp: 1.0.1 -> 1.0.2 (with some new deps)
- Loading branch information
Showing
10 changed files
with
223 additions
and
14 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
pkgs/development/python-modules/backports-shutil-which/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ stdenv, fetchPypi, fetchFromGitHub, buildPythonPackage, pytest }: | ||
|
||
buildPythonPackage rec { | ||
pname = "backports.shutil_which"; | ||
version = "3.5.1"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "16sa3adkf71862cb9pk747pw80a2f1v5m915ijb4fgj309xrlhyx"; | ||
}; | ||
|
||
checkInputs = [ pytest ]; | ||
|
||
checkPhase = '' | ||
py.test test | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Backport of shutil.which from Python 3.3"; | ||
homepage = https://github.com/minrk/backports.shutil_which; | ||
license = licenses.psfl; | ||
maintainers = with maintainers; [ jluttine ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ lib, fetchPypi, buildPythonPackage, pythonOlder, pytest, pysha3, pycrypto, | ||
pycryptodome }: | ||
|
||
buildPythonPackage rec { | ||
pname = "eth-hash"; | ||
version = "0.2.0"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "0xpiz0wrxxj11ki9yapvsibl25qnki90bl3d39nqascg14nw17a9"; | ||
}; | ||
|
||
checkInputs = [ pytest ]; | ||
|
||
propagatedBuildInputs = [ pysha3 pycrypto pycryptodome ]; | ||
|
||
# setuptools-markdown uses pypandoc which is broken at the moment | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace \'setuptools-markdown\' "" | ||
''; | ||
|
||
# Run tests separately because we don't want to run tests on tests/backends/ | ||
# but only on its selected subdirectories. Also, the directories under | ||
# tests/backends/ must be run separately because they have identically named | ||
# test files so pytest would raise errors because of that. | ||
# | ||
# Also, tests in tests/core/test_import.py are broken so just ignore them: | ||
# https://github.com/ethereum/eth-hash/issues/25 | ||
# There is a pull request to fix the tests: | ||
# https://github.com/ethereum/eth-hash/pull/26 | ||
checkPhase = '' | ||
pytest tests/backends/pycryptodome/ | ||
pytest tests/backends/pysha3/ | ||
# pytest tests/core/ | ||
''; | ||
|
||
disabled = pythonOlder "3.5"; | ||
|
||
meta = { | ||
description = "The Ethereum hashing function keccak256"; | ||
homepage = https://github.com/ethereum/eth-hash; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ jluttine ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, pytest }: | ||
|
||
buildPythonPackage rec { | ||
pname = "eth-typing"; | ||
version = "1.3.0"; | ||
|
||
# Tests are missing from the PyPI source tarball so let's use GitHub | ||
# https://github.com/ethereum/eth-typing/issues/8 | ||
src = fetchFromGitHub { | ||
owner = "ethereum"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "0703z7vlsfa3dvgcq22f9rzmj0svyp2a8wc7h73d0aac28ydhpv9"; | ||
}; | ||
|
||
# setuptools-markdown uses pypandoc which is broken at the moment | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace \'setuptools-markdown\' "" | ||
''; | ||
|
||
disabled = pythonOlder "3.5"; | ||
|
||
checkInputs = [ pytest ]; | ||
|
||
checkPhase = '' | ||
pytest . | ||
''; | ||
|
||
meta = { | ||
description = "Common type annotations for Ethereum Python packages"; | ||
homepage = https://github.com/ethereum/eth-typing; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ jluttine ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ lib, fetchFromGitHub, buildPythonPackage, pytest, eth-hash, eth-typing, | ||
cytoolz, hypothesis }: | ||
|
||
buildPythonPackage rec { | ||
pname = "eth-utils"; | ||
version = "1.2.1"; | ||
|
||
# Tests are missing from the PyPI source tarball so let's use GitHub | ||
# https://github.com/ethereum/eth-utils/issues/130 | ||
src = fetchFromGitHub { | ||
owner = "ethereum"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "0g8f5vdjh7qd8kgsqqd9qkm6m79rx3w9yp0rf9vpdsv3xfzrkh1w"; | ||
}; | ||
|
||
checkInputs = [ pytest hypothesis ]; | ||
propagatedBuildInputs = [ eth-hash eth-typing cytoolz ]; | ||
|
||
# setuptools-markdown uses pypandoc which is broken at the moment | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace \'setuptools-markdown\' "" | ||
''; | ||
|
||
checkPhase = '' | ||
pytest . | ||
''; | ||
|
||
meta = { | ||
description = "Common utility functions for codebases which interact with ethereum"; | ||
homepage = https://github.com/ethereum/eth-utils; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ jluttine ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ stdenv, fetchPypi, buildPythonPackage, tkinter }: | ||
|
||
buildPythonPackage rec { | ||
pname = "PyMsgBox"; | ||
version = "1.0.6"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "0kmd00w7p6maiyqpqqb2j8m6v2gh9c0h5i198pa02bc1c1m1321q"; | ||
extension = "zip"; | ||
}; | ||
|
||
propagatedBuildInputs = [ tkinter ]; | ||
|
||
# Finding tests fails | ||
doCheck = false; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A simple, cross-platform, pure Python module for JavaScript-like message boxes"; | ||
homepage = https://github.com/asweigart/PyMsgBox; | ||
license = licenses.bsd3; | ||
maintainers = with maintainers; [ jluttine ]; | ||
}; | ||
} |
23 changes: 23 additions & 0 deletions
23
pkgs/development/python-modules/python-u2flib-host/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ stdenv, fetchPypi, buildPythonPackage, requests, hidapi }: | ||
|
||
buildPythonPackage rec { | ||
pname = "python-u2flib-host"; | ||
version = "3.0.3"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb"; | ||
}; | ||
|
||
propagatedBuildInputs = [ requests hidapi ]; | ||
|
||
# Tests fail: "ValueError: underlying buffer has been detached" | ||
doCheck = false; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Python based U2F host library"; | ||
homepage = https://github.com/Yubico/python-u2flib-host; | ||
license = licenses.bsd2; | ||
maintainers = with maintainers; [ jluttine ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters