diff --git a/pkgs/development/python-modules/pylibmc/default.nix b/pkgs/development/python-modules/pylibmc/default.nix new file mode 100644 index 000000000000..c91930292c2e --- /dev/null +++ b/pkgs/development/python-modules/pylibmc/default.nix @@ -0,0 +1,21 @@ +{ buildPythonPackage, fetchurl, stdenv, libmemcached, zlib }: +buildPythonPackage rec { + name = "pylibmc-${version}"; + version = "1.5.1"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/p/pylibmc/${name}.tar.gz"; + sha256 = "1mnd8lng9wmcihl7mxd940hy1dzzvzsb971qclrvmqf3b4c2dfpc"; + }; + + buildInputs = [ libmemcached zlib ]; + + # 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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 84149b0de266..076858cb6c0f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19021,6 +19021,8 @@ in { }; }; + pylibmc = callPackage ../development/python-modules/pylibmc {}; + pymetar = buildPythonPackage rec { name = "${pname}-${version}"; pname = "pymetar";