From f28fe4cfae06d8da440f5beef340762768fa9408 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Wed, 15 Mar 2017 14:50:16 +0100 Subject: [PATCH] pythonPackages.pycassa: init at 1.11.2 fixes #23920 --- .../python-modules/pycassa/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/pycassa/default.nix diff --git a/pkgs/development/python-modules/pycassa/default.nix b/pkgs/development/python-modules/pycassa/default.nix new file mode 100644 index 000000000000..7d4be3226bd9 --- /dev/null +++ b/pkgs/development/python-modules/pycassa/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildPythonPackage, fetchPypi, thrift, isPy3k }: + +buildPythonPackage rec { + pname = "pycassa"; + version = "1.11.2"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1nsqjzgn6v0rya60dihvbnrnq1zwaxl2qwf0sr08q9qlkr334hr6"; + }; + + disabled = isPy3k; + + # Tests are not executed since they require a cassandra up and + # running + doCheck = false; + + propagatedBuildInputs = [ thrift ]; + + meta = { + description = "pycassa is a python client library for Apache Cassandra"; + homepage = http://github.com/pycassa/pycassa; + license = stdenv.licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e2fb54ede583..64de0d30a74b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9022,7 +9022,9 @@ in { }; }; - pybluez = buildPythonPackage rec { + pycassa = callPackage ../development/python-modules/pycassa { }; + + pybluez = buildPythonPackage rec { version = "unstable-20160819"; pname = "pybluez"; name = "${pname}-${version}";