diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-15 17:49:46 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-17 07:46:56 +0200 |
commit | 0edde48336aaf204a4a48a7ea90ac67f0f51248c (patch) | |
tree | 39d56dafa9f7545793478edaddfa48123560590b /pkgs/development/python-modules/memcached/default.nix | |
parent | f5a4b625dbb0ba3e56befbd0c1f61bda434fc8dd (diff) |
pythonPackages.memcached: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/memcached/default.nix')
-rw-r--r-- | pkgs/development/python-modules/memcached/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/memcached/default.nix b/pkgs/development/python-modules/memcached/default.nix new file mode 100644 index 000000000000..854f7440daa1 --- /dev/null +++ b/pkgs/development/python-modules/memcached/default.nix @@ -0,0 +1,26 @@ +{ 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; + }; + +} |