From f473721e41ecc28cac33d6f3bed77d05be0a9778 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 23 Jun 2016 20:47:22 +0200 Subject: [PATCH 1/3] pythonPackages.pytest_28: 2.8.6 -> 2.8.7 --- pkgs/top-level/python-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a128d7d475e1..ac9c07ddc206 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4426,11 +4426,11 @@ in modules // { }; pytest_28 = self.pytest_27.override rec { - name = "pytest-2.8.6"; + name = "pytest-2.8.7"; src = pkgs.fetchurl { url = "mirror://pypi/p/pytest/${name}.tar.gz"; - sha256 = "ed38a3725b8e4478555dfdb549a4219ca3ba57955751141a1aaa45b706d84194"; + sha256 = "1bwb06g64x2gky8x5hcrfpg6r351xwvafimnhm5qxq7wajz8ck7w"; }; }; From 9e041fd9befe5091e49269c387b18f079f1a08e1 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Sat, 4 Jun 2016 13:55:15 -0400 Subject: [PATCH 2/3] secp256k1: init at 2016-05-30 --- pkgs/tools/security/secp256k1/default.nix | 35 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/security/secp256k1/default.nix diff --git a/pkgs/tools/security/secp256k1/default.nix b/pkgs/tools/security/secp256k1/default.nix new file mode 100644 index 000000000000..f7a53469545f --- /dev/null +++ b/pkgs/tools/security/secp256k1/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ... }: + +stdenv.mkDerivation rec { + name = "secp256k1-${version}"; + + # I can't find any version numbers, so we're just using the date + # of the last commit. + version = "2016-05-30"; + + src = fetchFromGitHub { + owner = "bitcoin-core"; + repo = "secp256k1"; + rev = "b3be8521e694eaf45dd29baea035055183c42fe2"; + sha256 = "1pgsy72w87yxbiqn96hnm8alsfx3rj7d9jlzdsypyf6i1rf6w4bq"; + }; + + buildInputs = [ autoconf automake libtool ]; + + configureFlags = [ "--enable-module-recovery" ]; + + preConfigure = "./autogen.sh"; + + meta = with stdenv.lib; { + description = "Optimized C library for EC operations on curve secp256k1"; + longDescription = '' + Optimized C library for EC operations on curve secp256k1. + Part of Bitcoin Core. This library is a work in progress + and is being used to research best practices. Use at your + own risk. + ''; + homepage = https://github.com/bitcoin-core/secp256k1; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ chris-martin ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dc47a12f10ad..9f64e1167fcb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3289,6 +3289,8 @@ in seccure = callPackage ../tools/security/seccure { }; + secp256k1 = callPackage ../tools/security/secp256k1 { }; + securefs = callPackage ../tools/filesystems/securefs { }; setroot = callPackage ../tools/X11/setroot { }; From 9f7871070e28c63acb549ab953a70cab0cc95433 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Sat, 4 Jun 2016 14:57:56 -0400 Subject: [PATCH 3/3] pythonPackages.secp256k1: init at 0.12.1 --- pkgs/top-level/python-packages.nix | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ac9c07ddc206..f533f4b53d3b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -21328,6 +21328,40 @@ in modules // { }; }; + secp256k1 = buildPythonPackage rec { + name = "secp256k1-${version}"; + version = "0.12.1"; + + src = pkgs.fetchurl { + url = "mirror://pypi/s/secp256k1/${name}.tar.gz"; + sha256 = "0zrjxvzxqm4bz2jcy8sras8jircgbs6dkrw8j3nc6jhvzlikwwxl"; + }; + + buildInputs = [ pkgs.pkgconfig self.pytest_28 self.pytestrunner ]; + propagatedBuildInputs = [ self.cffi pkgs.secp256k1 ]; + + # Tests are not included in archive + doCheck = false; + + preConfigure = '' + cp -r ${pkgs.secp256k1.src} libsecp256k1 + touch libsecp256k1/autogen.sh + export INCLUDE_DIR=${pkgs.secp256k1}/include + export LIB_DIR=${pkgs.secp256k1}/lib + ''; + + checkPhase = '' + py.test tests + ''; + + meta = { + homepage = https://github.com/ludbb/secp256k1-py; + description = "Python FFI bindings for secp256k1"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ chris-martin ]; + }; + }; + semantic-version = buildPythonPackage rec { name = "semantic_version-2.4.2"; src = pkgs.fetchurl {