1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/development/python-modules/dogpile.cache/default.nix

32 lines
844 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
, pytest, pytestcov, mock, Mako
}:
buildPythonPackage rec {
pname = "dogpile.cache";
2018-04-04 19:07:27 +01:00
version = "0.6.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
2018-04-04 19:07:27 +01:00
sha256 = "631197e78b4471bb0e93d0a86264c45736bc9ae43b4205d581dcc34fbe9b5f31";
};
# Disable concurrency tests that often fail,
# probably some kind of timing issue.
postPatch = ''
rm tests/test_lock.py
# Failing tests. https://bitbucket.org/zzzeek/dogpile.cache/issues/116
rm tests/cache/test_memcached_backend.py
'';
buildInputs = [ pytest pytestcov mock Mako ];
meta = with stdenv.lib; {
description = "A caching front-end based on the Dogpile lock";
homepage = https://bitbucket.org/zzzeek/dogpile.cache;
platforms = platforms.unix;
license = licenses.bsd3;
};
}