2018-06-09 22:31:00 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, stdenv, libmemcached, zlib, cyrus_sasl }:
|
|
|
|
|
2017-03-18 22:09:07 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 12:24:47 +00:00
|
|
|
version = "1.5.2";
|
2017-05-27 09:25:35 +00:00
|
|
|
pname = "pylibmc";
|
|
|
|
name = "${pname}-${version}";
|
2017-03-18 22:09:07 +00:00
|
|
|
|
2017-05-29 01:02:40 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-05-27 12:24:47 +00:00
|
|
|
sha256 = "fc54e28a9f1b5b2ec0c030da29c7ad8a15c2755bd98aaa4142eaf419d5fabb33";
|
2017-03-18 22:09:07 +00:00
|
|
|
};
|
|
|
|
|
2018-06-09 22:31:00 +00:00
|
|
|
buildInputs = [ libmemcached zlib cyrus_sasl ];
|
|
|
|
setupPyBuildFlags = [ "--with-sasl2" ];
|
2017-03-18 22:09:07 +00:00
|
|
|
|
|
|
|
# requires an external memcached server running
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Quick and small memcached client for Python";
|
|
|
|
homepage = http://sendapatch.se/projects/pylibmc/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|