Skip to content
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

bitcash: init at 0.6.0, coincurve: init at 13.0.0 #104748

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions pkgs/development/python-modules/bitcash/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, coincurve, requests, cashaddress-regtest, click }:

buildPythonPackage rec {
pname = "bitcash";
version = "0.6.0";

src = fetchPypi {
inherit pname version;
sha256 = "09i6fvjc2mrz4s956pcjrrb5xab8wf542pirybzf6wbh4n57kisq";
};

propagatedBuildInputs = [ coincurve requests cashaddress-regtest ];

checkInputs = [ click ];

meta = with lib; {
description = "Python 3 Bitcoin Cash Library";
homepage = "https://github.com/pybitcash/bitcash";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = lib.platforms.unix;
};
}
23 changes: 23 additions & 0 deletions pkgs/development/python-modules/cashaddress-regtest/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ lib, stdenv, fetchFromGitHub, buildPythonPackage, pytestCheckHook }:

buildPythonPackage rec {
pname = "cashaddress-regtest";
version = "1.1.0";

src = fetchFromGitHub {
owner = "nicolaiskye";
repo = "cashaddress-regtest";
rev = version;
sha256 = "1z4iq60n685z5bfksl8lvcqawhxh8dz8rqqf933cq3mj8zk98jpz";
};

checkInputs = [ pytestCheckHook ];

meta = with lib; {
description = "Tool for converting bitcoin cash legacy addresses";
homepage = "https://github.com/nicolaiskye/cashaddress-regtest";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = lib.platforms.unix;
};
}
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/coincurve/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pytest,
asn1crypto, cffi, pkg-config, autoconf, automake, libtool, libffi,
requests }:

buildPythonPackage rec {
pname = "coincurve";
version = "14.0.0";

src = fetchFromGitHub {
owner = "ofek";
repo = "coincurve";
rev = "v${version}";
sha256 = "0z765x9vpb82nx9d0kvqknyl5ad4fldha3nqsx1cydghskdd100r";
};

postPatch = ''
rm coincurve/_windows_libsecp256k1.py
'';

checkInputs = [ pytest ];
nativeBuildInputs = [ autoconf automake libtool pkg-config ];
propagatedBuildInputs = [ asn1crypto cffi libffi requests ];

meta = with lib; {
description = "Cross-platform Python CFFI bindings for libsecp256k1";
homepage = "https://github.com/ofek/coincurve";
license = licenses.asl20;
maintainers = with maintainers; [ siraben ];
platforms = lib.platforms.unix;
};

}
6 changes: 6 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,8 @@ in {

bitbucket-cli = callPackage ../development/python-modules/bitbucket-cli { };

bitcash = callPackage ../development/python-modules/bitcash { };

bitcoinlib = callPackage ../development/python-modules/bitcoinlib { };

bitcoin-price-api = callPackage ../development/python-modules/bitcoin-price-api { };
Expand Down Expand Up @@ -1082,6 +1084,8 @@ in {

case = callPackage ../development/python-modules/case { };

cashaddress-regtest = callPackage ../development/python-modules/cashaddress-regtest { };

cassandra-driver = callPackage ../development/python-modules/cassandra-driver { };

casttube = callPackage ../development/python-modules/casttube { };
Expand Down Expand Up @@ -1265,6 +1269,8 @@ in {

coilmq = callPackage ../development/python-modules/coilmq { };

coincurve = callPackage ../development/python-modules/coincurve { };

coinmarketcap = callPackage ../development/python-modules/coinmarketcap { };

ColanderAlchemy = callPackage ../development/python-modules/colanderalchemy { };
Expand Down