3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.python-memcached: 1.51 -> 1.59

Also rename from memcached to python-memcached.
This commit is contained in:
Robert Schütz 2022-05-06 02:37:19 +00:00
parent e237f3e459
commit a198efc313
9 changed files with 54 additions and 50 deletions

View file

@ -5,7 +5,7 @@
, glibcLocales
, nose
, pylibmc
, memcached
, python-memcached
, redis
, pymongo
, mock
@ -42,7 +42,7 @@ buildPythonPackage rec {
checkInputs = [
glibcLocales
memcached
python-memcached
mock
nose
pylibmc
@ -52,11 +52,7 @@ buildPythonPackage rec {
];
# Can not run memcached tests because it immediately tries to connect
postPatch = lib.optionalString isPy3k ''
substituteInPlace setup.py \
--replace "python-memcached" "python3-memcached"
'' + ''
postPatch = ''
rm tests/test_memcached.py
'';

View file

@ -1,6 +1,6 @@
{ lib, buildPythonPackage, fetchPypi
, redis
, memcached
, python-memcached
, msgpack
}:
@ -15,7 +15,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
redis
memcached
python-memcached
msgpack
];

View file

@ -22,7 +22,7 @@
, docutils
, geoip2
, jinja2
, memcached
, python-memcached
, numpy
, pillow
, pylibmc
@ -76,7 +76,7 @@ buildPythonPackage rec {
docutils
geoip2
jinja2
memcached
python-memcached
numpy
pillow
pylibmc

View file

@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, django
, memcached
, python-memcached
, txamqp
, django_tagging
, gunicorn
@ -36,7 +36,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
django
memcached
python-memcached
txamqp
django_tagging
gunicorn

View file

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, influxdb, graphite_api, memcached
, influxdb, graphite_api, python-memcached
}:
buildPythonPackage rec {
@ -11,13 +11,7 @@ buildPythonPackage rec {
sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy";
};
patchPhase = lib.optionalString isPy3k ''
sed 's/python-memcached/python3-memcached/' \
-i ./influxgraph.egg-info/requires.txt \
-i ./setup.py
'';
propagatedBuildInputs = [ influxdb graphite_api memcached ];
propagatedBuildInputs = [ influxdb graphite_api python-memcached ];
passthru.moduleName = "influxgraph.InfluxDBFinder";

View file

@ -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;
};
}

View file

@ -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 ];
};
}

View file

@ -82,6 +82,7 @@ mapAliases ({
loo-py = loopy; # added 2022-05-03
Markups = markups; # added 2022-02-14
MechanicalSoup = mechanicalsoup; # added 2021-06-01
memcached = python-memcached; # added 2022-05-06
net2grid = gridnet; # add 2022-04-22
nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16
pam = python-pam; # added 2020-09-07.

View file

@ -5185,8 +5185,6 @@ in {
meld3 = callPackage ../development/python-modules/meld3 { };
memcached = callPackage ../development/python-modules/memcached { };
memory-allocator = callPackage ../development/python-modules/memory-allocator { };
memory_profiler = callPackage ../development/python-modules/memory_profiler { };
@ -6463,6 +6461,8 @@ in {
python-lsp-black = callPackage ../development/python-modules/python-lsp-black { };
python-memcached = callPackage ../development/python-modules/python-memcached { };
python-openems = callPackage ../development/python-modules/python-openems { };
python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { };