From 642f778fb6d77c6814093b83144174170abc547e Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 10 Jan 2019 02:49:17 +0100 Subject: [PATCH] pythonPackages.pycassa: fix build Use `thrift` 0.9.3 to build. See also https://github.com/pycassa/pycassa/issues/245 --- .../python-modules/pycassa/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pycassa/default.nix b/pkgs/development/python-modules/pycassa/default.nix index 3791efc0e2e4..d5b6805c2bb0 100644 --- a/pkgs/development/python-modules/pycassa/default.nix +++ b/pkgs/development/python-modules/pycassa/default.nix @@ -1,5 +1,18 @@ { stdenv, buildPythonPackage, fetchPypi, thrift, isPy3k }: +let + + thrift' = thrift.overridePythonAttrs (old: rec { + version = "0.9.3"; + src= fetchPypi { + inherit (old) pname; + inherit version; + sha256 = "0zl7cgckqy9j5vq8wyfzw82q1blkdpsblnmhv8c6ffcxs4xkvg6z"; + }; + }); + +in + buildPythonPackage rec { pname = "pycassa"; version = "1.11.2"; @@ -15,7 +28,7 @@ buildPythonPackage rec { # running doCheck = false; - propagatedBuildInputs = [ thrift ]; + propagatedBuildInputs = [ thrift' ]; meta = { description = "A python client library for Apache Cassandra";