From 5ebb896d5b8f822d100e97ccc298bc6cf02131c4 Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Fri, 25 Apr 2014 14:33:01 -0400 Subject: [PATCH] pycapnp: Add package --- pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/python-packages.nix | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4761d787fa56..272839d34114 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6341,6 +6341,8 @@ let pycairo = pythonPackages.pycairo; + pycapnp = pythonPackages.pycapnp; + pycrypto = pythonPackages.pycrypto; pycups = callPackage ../development/python-modules/pycups { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e3e6bae580c5..cbcc3a87e37b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5215,6 +5215,29 @@ rec { }; }; + pycapnp = buildPythonPackage rec { + name = "pycapnp-0.4.4"; + homepage = "http://jparyani.github.io/pycapnp/index.html"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/p/pycapnp/${name}.tar.gz"; + sha256 = "33b2b79438bb9bf37097966e1c90403c34ab49be1eb647ee251b62f362ee3537"; + }; + + buildInputs = with pkgs; [ capnproto cython ]; + + # import setuptools as soon as possible, to minimize monkeypatching mayhem. + postConfigure = '' + sed -i '2iimport setuptools' setup.py + ''; + + meta = with stdenv.lib; { + maintainers = with maintainers; [ cstrahan ]; + license = stdenv.lib.licenses.bsd2; + platforms = stdenv.lib.platforms.all; + }; + }; + pycryptopp = buildPythonPackage (rec { name = "pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958";