python3Packages.pymemcache: init at 3.4.0

This commit is contained in:
Fabian Affolter 2021-02-27 16:49:31 +01:00
parent 905ecb920e
commit 011f0b7897
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pymemcache";
version = "3.4.0";
src = fetchFromGitHub {
owner = "pinterest";
repo = pname;
rev = "v${version}";
sha256 = "0xkw76y4059jg2a902wlpk6psyh2g4x6j6vlj9gzd5vqb7ihg2y7";
};
checkInputs = [
future
mock
pytestCheckHook
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
disabledTests = [
# python-memcached is not available (last release in 2017)
"TestClientSocketConnect"
];
pythonImportsCheck = [ "pymemcache" ];
meta = with lib; {
description = "Python memcached client";
homepage = "https://pymemcache.readthedocs.io/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -5956,6 +5956,8 @@ in {
pymeeus = callPackage ../development/python-modules/pymeeus { }; pymeeus = callPackage ../development/python-modules/pymeeus { };
pymemcache = callPackage ../development/python-modules/pymemcache { };
pymemoize = callPackage ../development/python-modules/pymemoize { }; pymemoize = callPackage ../development/python-modules/pymemoize { };
pyment = callPackage ../development/python-modules/pyment { }; pyment = callPackage ../development/python-modules/pyment { };