2017-05-01 14:39:29 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-06-21 11:44:04 -07:00
|
|
|
, pytest, pytestcov, mock, Mako
|
2017-05-01 14:39:29 -07:00
|
|
|
}:
|
2017-04-09 00:29:15 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dogpile.cache";
|
2019-01-17 07:12:55 -08:00
|
|
|
version = "0.6.8";
|
2017-04-09 00:29:15 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-17 07:12:55 -08:00
|
|
|
sha256 = "e2fbe5d95e6df3fcfff2b666c69f3c06a4a3f77296142ae2bca523a176f88fa0";
|
2017-04-09 00:29:15 -07:00
|
|
|
};
|
|
|
|
|
2017-05-11 10:47:53 -07:00
|
|
|
# Disable concurrency tests that often fail,
|
|
|
|
# probably some kind of timing issue.
|
2017-07-04 00:39:49 -07:00
|
|
|
postPatch = ''
|
2017-05-11 10:47:53 -07:00
|
|
|
rm tests/test_lock.py
|
2017-07-04 00:39:49 -07:00
|
|
|
# Failing tests. https://bitbucket.org/zzzeek/dogpile.cache/issues/116
|
|
|
|
rm tests/cache/test_memcached_backend.py
|
2017-05-11 10:47:53 -07:00
|
|
|
'';
|
|
|
|
|
2017-05-01 14:39:29 -07:00
|
|
|
buildInputs = [ pytest pytestcov mock Mako ];
|
2017-04-09 00:29:15 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A caching front-end based on the Dogpile lock";
|
2017-11-10 13:13:27 -08:00
|
|
|
homepage = https://bitbucket.org/zzzeek/dogpile.cache;
|
2017-05-01 14:39:29 -07:00
|
|
|
platforms = platforms.unix;
|
2017-04-09 00:29:15 -07:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|