parent
e237f3e459
commit
a198efc313
@ -1,27 +0,0 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchurl |
||||
, fetchPypi |
||||
, isPy3k |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "memcached"; |
||||
version = "1.51"; |
||||
|
||||
src = if isPy3k then fetchPypi { |
||||
inherit version; |
||||
pname = "python3-${pname}"; |
||||
sha256 = "0na8b369q8fivh3y0nvzbvhh3lgvxiyyv9xp93cnkvwfsr8mkgkw"; |
||||
} else fetchurl { |
||||
url = "http://ftp.tummy.com/pub/python-memcached/old-releases/python-${pname}-${version}.tar.gz"; |
||||
sha256 = "124s98m6hvxj6x90d7aynsjfz878zli771q96ns767r2mbqn7192"; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "Python API for communicating with the memcached distributed memory object cache daemon"; |
||||
homepage = "https://github.com/linsomniac/python-memcached"; |
||||
license = licenses.psfl; |
||||
}; |
||||
|
||||
} |
@ -0,0 +1,40 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, six |
||||
, mock |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "python-memcached"; |
||||
version = "1.59"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "linsomniac"; |
||||
repo = "python-memcached"; |
||||
rev = version; |
||||
hash = "sha256-tHqkwNloPTXOrEGtuDLu1cTw4SKJ4auv8UUbqdNp698="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
six |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
mock |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
# all tests fail |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ "memcache" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Pure python memcached client"; |
||||
homepage = "https://github.com/linsomniac/python-memcached"; |
||||
license = licenses.psfl; |
||||
maintainers = with maintainers; [ dotlambda ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue