My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pymemcache/default.nix

49 lines
887 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, future
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pymemcache";
version = "3.5.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "pinterest";
repo = pname;
rev = "v${version}";
sha256 = "sha256-DKqfv5gf9gzbnEPQSzy2mAaVYJZL9jmTKyGWVzj40T4=";
};
propagatedBuildInputs = [
six
];
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 ];
};
}