b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
45 lines
786 B
Nix
45 lines
786 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cyrus_sasl
|
|
, fetchPypi
|
|
, libmemcached
|
|
, pythonOlder
|
|
, zlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylibmc";
|
|
version = "1.6.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-7vpGEVU3q61l++LgMqzRs0Y9m/njNa9LCRbfTk0yBuA=";
|
|
};
|
|
|
|
buildInputs = [
|
|
cyrus_sasl
|
|
libmemcached
|
|
zlib
|
|
];
|
|
|
|
setupPyBuildFlags = [
|
|
"--with-sasl2"
|
|
];
|
|
|
|
# Requires an external memcached server running
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pylibmc"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Quick and small memcached client for Python";
|
|
homepage = "http://sendapatch.se/projects/pylibmc/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|