depot/third_party/nixpkgs/pkgs/development/python-modules/pymemcache/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

43 lines
815 B
Nix

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