depot/third_party/nixpkgs/pkgs/development/python-modules/memcached/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

26 lines
717 B
Nix

{ stdenv
, buildPythonPackage
, fetchurl
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "memcached-1.51";
version = "1.51";
src = if isPy3k then fetchPypi {
inherit pname version;
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";
homepage = "http://www.tummy.com/Community/software/python-memcached/";
license = licenses.psfl;
};
}