depot/third_party/nixpkgs/pkgs/development/python-modules/pymemcache/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

52 lines
918 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, six
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pymemcache";
version = "3.5.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pinterest";
repo = pname;
rev = "v${version}";
hash = "sha256-bsiFWZHGJO/07w6mFXzf0JwftJWClE2mTv86h8zT1K0=";
};
propagatedBuildInputs = [
six
];
checkInputs = [
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 ];
};
}