From e41456cebec86993d1f987faa2b5cedac784827b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 7 Jul 2013 15:32:29 +0200 Subject: [PATCH 1/4] python-gevent: new package gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of the libevent event loop. Run tested. --- pkgs/top-level/python-packages.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cba57b16739..e4a4b526283 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1903,6 +1903,27 @@ pythonPackages = python.modules // rec { }; }; + gevent = buildPythonPackage rec { + name = "gevent-0.13.8"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/g/gevent/${name}.tar.gz"; + sha256 = "0plmxnb53qbxxf6macq84dvclsiyrpv3xrm32q4qqh6f01ix5f2l"; + }; + + buildInputs = [ pkgs.libevent ]; + propagatedBuildInputs = [ greenlet ]; + + meta = with stdenv.lib; { + description = "Coroutine-based networking library"; + homepage = http://www.gevent.org/; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + genzshcomp = buildPythonPackage { name = "genzshcomp-0.2.2"; From 30bb106aa9fe616553f428ca84a19cee87334d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 7 Jul 2013 19:12:46 +0200 Subject: [PATCH 2/4] python-pyodbc: new package The pyodbc module enables python programs to connect to almost any database using ODBC. Build and "import pyodbc" tested, but I haven't tried connecting to any database yet. --- pkgs/top-level/python-packages.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e4a4b526283..ef8d2adaf41 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3800,6 +3800,26 @@ pythonPackages = python.modules // rec { }; + pyodbc = buildPythonPackage rec { + name = "pyodbc-3.0.6"; + + src = fetchurl { + url = "https://pyodbc.googlecode.com/files/${name}.zip"; + sha256 = "0v9nymllw5zq5294rqp8ip3l0g6l3l3mljwhxn5jajyzxlnz39z5"; + }; + + buildInputs = [ pkgs.unzip pkgs.libiodbc ]; + + meta = with stdenv.lib; { + description = "Python ODBC module to connect to almost any database"; + homepage = https://code.google.com/p/pyodbc/; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + pyparsing = buildPythonPackage rec { name = "pyparsing-1.5.6"; From 0a0b15321a20f9ef84dd6d060205b60c36b72fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 7 Jul 2013 19:23:10 +0200 Subject: [PATCH 3/4] python-construct: new package Construct is a powerful declarative parser (and builder) for binary data. Run tested. --- pkgs/top-level/python-packages.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ef8d2adaf41..f39d1846bbb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -814,6 +814,27 @@ pythonPackages = python.modules // rec { }; }); + + construct = buildPythonPackage rec { + name = "construct-2.5.1"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/c/construct/${name}.tar.gz"; + sha256 = "08qksl87vr6g2wjxwsyrjh4w6v8bfmcgrcgln7irqvw5vv7qgqss"; + }; + + propagatedBuildInputs = [ six ]; + + meta = with stdenv.lib; { + description = "Powerful declarative parser (and builder) for binary data"; + homepage = http://construct.readthedocs.org/; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + coverage = buildPythonPackage rec { name = "coverage-3.6"; From 5dd026a063eb6e1d38c5f838cfb644233715a3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 7 Jul 2013 19:39:36 +0200 Subject: [PATCH 4/4] python-bitstring: new package bitstring is a python module for binary data manipulation. Run tested. --- pkgs/top-level/python-packages.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f39d1846bbb..dd7b65faf4d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -451,6 +451,29 @@ pythonPackages = python.modules // rec { }; + bitstring = buildPythonPackage rec { + name = "bitstring-3.1.2"; + + src = fetchurl { + url = "https://python-bitstring.googlecode.com/files/${name}.zip"; + sha256 = "1i1p3rkj4ad108f23xyib34r4rcy571gy65paml6fk77knh0k66p"; + }; + + buildInputs = [ pkgs.unzip ]; + + # error: invalid command 'test' + doCheck = false; + + meta = with stdenv.lib; { + description = "Module for binary data manipulation"; + homepage = https://code.google.com/p/python-bitstring/; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + blivet = buildPythonPackage rec { name = "blivet-${version}"; version = "0.17-1";