@@ -1,15 +1,17 @@
1−{ stdenv, lib, buildPythonPackage, fetchFromGitHub, openssl }:
1+{ stdenv, lib, buildPythonPackage, isPy3k, fetchFromGitHub, openssl }:
22
33let ext = if stdenv.isDarwin then "dylib" else "so";
44in buildPythonPackage rec {
55 pname = "bitcoinlib";
6− version = "0.9.0";
6+ version = "0.11.0";
7+
8+ disabled = !isPy3k;
79
810 src = fetchFromGitHub {
911 owner = "petertodd";
10− rev = "7a8a47ec6b722339de1d0a8144e55b400216f90f";
1112 repo = "python-bitcoinlib";
12− sha256 = "1s1jm2nid7ab7yiwlp1n2v3was9i4q76xmm07wvzpd2zvn5zb91z";
13+ rev = "python-${pname}-v${version}";
14+ sha256 = "0pwypd966zzivb37fvg4l6yr7ihplqnr1jwz9zm3biip7x89bdzm";
1315 };
1416
1517 postPatch = ''
@@ -21,7 +23,7 @@ in buildPythonPackage rec {
2123 meta = {
2224 homepage = src.meta.homepage;
2325 description = "Easy interface to the Bitcoin data structures and protocol";
24− license = with lib.licenses; [ gpl3 ];
26+ license = with lib.licenses; [ lgpl3 ];
2527 maintainers = with lib.maintainers; [ jb55 ];
2628 };
2729}