Merge pull request #171754 from dotlambda/python-memcached-1.59
This commit is contained in:
commit
7d46466506
9 changed files with 54 additions and 50 deletions
|
@ -5,7 +5,7 @@
|
||||||
, glibcLocales
|
, glibcLocales
|
||||||
, nose
|
, nose
|
||||||
, pylibmc
|
, pylibmc
|
||||||
, memcached
|
, python-memcached
|
||||||
, redis
|
, redis
|
||||||
, pymongo
|
, pymongo
|
||||||
, mock
|
, mock
|
||||||
|
@ -42,7 +42,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
glibcLocales
|
glibcLocales
|
||||||
memcached
|
python-memcached
|
||||||
mock
|
mock
|
||||||
nose
|
nose
|
||||||
pylibmc
|
pylibmc
|
||||||
|
@ -52,11 +52,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
# Can not run memcached tests because it immediately tries to connect
|
# Can not run memcached tests because it immediately tries to connect
|
||||||
postPatch = lib.optionalString isPy3k ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "python-memcached" "python3-memcached"
|
|
||||||
'' + ''
|
|
||||||
|
|
||||||
rm tests/test_memcached.py
|
rm tests/test_memcached.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchPypi
|
||||||
, redis
|
, redis
|
||||||
, memcached
|
, python-memcached
|
||||||
, msgpack
|
, msgpack
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
redis
|
redis
|
||||||
memcached
|
python-memcached
|
||||||
msgpack
|
msgpack
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
, docutils
|
, docutils
|
||||||
, geoip2
|
, geoip2
|
||||||
, jinja2
|
, jinja2
|
||||||
, memcached
|
, python-memcached
|
||||||
, numpy
|
, numpy
|
||||||
, pillow
|
, pillow
|
||||||
, pylibmc
|
, pylibmc
|
||||||
|
@ -76,7 +76,7 @@ buildPythonPackage rec {
|
||||||
docutils
|
docutils
|
||||||
geoip2
|
geoip2
|
||||||
jinja2
|
jinja2
|
||||||
memcached
|
python-memcached
|
||||||
numpy
|
numpy
|
||||||
pillow
|
pillow
|
||||||
pylibmc
|
pylibmc
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, django
|
, django
|
||||||
, memcached
|
, python-memcached
|
||||||
, txamqp
|
, txamqp
|
||||||
, django_tagging
|
, django_tagging
|
||||||
, gunicorn
|
, gunicorn
|
||||||
|
@ -36,7 +36,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
django
|
django
|
||||||
memcached
|
python-memcached
|
||||||
txamqp
|
txamqp
|
||||||
django_tagging
|
django_tagging
|
||||||
gunicorn
|
gunicorn
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||||
, influxdb, graphite_api, memcached
|
, influxdb, graphite_api, python-memcached
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -11,13 +11,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy";
|
sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = lib.optionalString isPy3k ''
|
propagatedBuildInputs = [ influxdb graphite_api python-memcached ];
|
||||||
sed 's/python-memcached/python3-memcached/' \
|
|
||||||
-i ./influxgraph.egg-info/requires.txt \
|
|
||||||
-i ./setup.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ influxdb graphite_api memcached ];
|
|
||||||
|
|
||||||
passthru.moduleName = "influxgraph.InfluxDBFinder";
|
passthru.moduleName = "influxgraph.InfluxDBFinder";
|
||||||
|
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
40
pkgs/development/python-modules/python-memcached/default.nix
Normal file
40
pkgs/development/python-modules/python-memcached/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -82,6 +82,7 @@ mapAliases ({
|
||||||
loo-py = loopy; # added 2022-05-03
|
loo-py = loopy; # added 2022-05-03
|
||||||
Markups = markups; # added 2022-02-14
|
Markups = markups; # added 2022-02-14
|
||||||
MechanicalSoup = mechanicalsoup; # added 2021-06-01
|
MechanicalSoup = mechanicalsoup; # added 2021-06-01
|
||||||
|
memcached = python-memcached; # added 2022-05-06
|
||||||
net2grid = gridnet; # add 2022-04-22
|
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
|
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.
|
pam = python-pam; # added 2020-09-07.
|
||||||
|
|
|
@ -5193,8 +5193,6 @@ in {
|
||||||
|
|
||||||
meld3 = callPackage ../development/python-modules/meld3 { };
|
meld3 = callPackage ../development/python-modules/meld3 { };
|
||||||
|
|
||||||
memcached = callPackage ../development/python-modules/memcached { };
|
|
||||||
|
|
||||||
memory-allocator = callPackage ../development/python-modules/memory-allocator { };
|
memory-allocator = callPackage ../development/python-modules/memory-allocator { };
|
||||||
|
|
||||||
memory_profiler = callPackage ../development/python-modules/memory_profiler { };
|
memory_profiler = callPackage ../development/python-modules/memory_profiler { };
|
||||||
|
@ -6475,6 +6473,8 @@ in {
|
||||||
|
|
||||||
python-lsp-black = callPackage ../development/python-modules/python-lsp-black { };
|
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-openems = callPackage ../development/python-modules/python-openems { };
|
||||||
|
|
||||||
python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { };
|
python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { };
|
||||||
|
|
Loading…
Reference in a new issue