2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-12-03 08:41:04 +00:00
|
|
|
pname = "memcached";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "1.51";
|
|
|
|
|
|
|
|
src = if isPy3k then fetchPypi {
|
2020-12-03 08:41:04 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "python3-${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0na8b369q8fivh3y0nvzbvhh3lgvxiyyv9xp93cnkvwfsr8mkgkw";
|
|
|
|
} else fetchurl {
|
|
|
|
url = "http://ftp.tummy.com/pub/python-memcached/old-releases/python-${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "124s98m6hvxj6x90d7aynsjfz878zli771q96ns767r2mbqn7192";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python API for communicating with the memcached distributed memory object cache daemon";
|
|
|
|
homepage = "http://www.tummy.com/Community/software/python-memcached/";
|
|
|
|
license = licenses.psfl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|