2018-06-09 15:31:00 -07:00
|
|
|
{ buildPythonPackage, fetchPypi, stdenv, libmemcached, zlib, cyrus_sasl }:
|
|
|
|
|
2017-03-18 15:09:07 -07:00
|
|
|
buildPythonPackage rec {
|
2019-01-02 10:18:32 -08:00
|
|
|
version = "1.6.0";
|
2017-05-27 02:25:35 -07:00
|
|
|
pname = "pylibmc";
|
2017-03-18 15:09:07 -07:00
|
|
|
|
2017-05-28 18:02:40 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-02 10:18:32 -08:00
|
|
|
sha256 = "1n6nvvhl0g52gpzzwdj1my6049xljkfwyxxygnwda9smrbj7pyay";
|
2017-03-18 15:09:07 -07:00
|
|
|
};
|
|
|
|
|
2018-06-09 15:31:00 -07:00
|
|
|
buildInputs = [ libmemcached zlib cyrus_sasl ];
|
|
|
|
setupPyBuildFlags = [ "--with-sasl2" ];
|
2017-03-18 15:09:07 -07: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;
|
|
|
|
};
|
|
|
|
}
|