2018-10-15 22:49:46 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-10-16 02:10:31 +01:00
|
|
|
pname = "memcached";
|
2018-10-15 22:49:46 +01:00
|
|
|
version = "1.51";
|
|
|
|
|
|
|
|
src = if isPy3k then fetchPypi {
|
2020-10-16 02:10:31 +01:00
|
|
|
inherit version;
|
|
|
|
pname = "python3-${pname}";
|
2018-10-15 22:49:46 +01:00
|
|
|
sha256 = "0na8b369q8fivh3y0nvzbvhh3lgvxiyyv9xp93cnkvwfsr8mkgkw";
|
|
|
|
} else fetchurl {
|
|
|
|
url = "http://ftp.tummy.com/pub/python-memcached/old-releases/python-${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "124s98m6hvxj6x90d7aynsjfz878zli771q96ns767r2mbqn7192";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python API for communicating with the memcached distributed memory object cache daemon";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.tummy.com/Community/software/python-memcached/";
|
2018-10-15 22:49:46 +01:00
|
|
|
license = licenses.psfl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|