diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pymemcache/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pymemcache/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pymemcache/default.nix b/nixpkgs/pkgs/development/python-modules/pymemcache/default.nix new file mode 100644 index 000000000000..d0089e8edbe6 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pymemcache/default.nix @@ -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 ]; + }; +} |