2017-05-01 23:39:29 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-06-21 20:44:04 +02:00
|
|
|
, pytest, pytestcov, mock, Mako
|
2017-05-01 23:39:29 +02:00
|
|
|
}:
|
2017-04-09 09:29:15 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dogpile.cache";
|
2017-07-03 20:19:57 +02:00
|
|
|
version = "0.6.4";
|
2017-04-09 09:29:15 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-07-03 20:19:57 +02:00
|
|
|
sha256 = "a73aa3049cd88d7ec57a1c2e8946abdf4f14188d429c1023943fcc55c4568da1";
|
2017-04-09 09:29:15 +02:00
|
|
|
};
|
|
|
|
|
2017-05-11 19:47:53 +02:00
|
|
|
# Disable concurrency tests that often fail,
|
|
|
|
# probably some kind of timing issue.
|
2017-07-04 09:39:49 +02:00
|
|
|
postPatch = ''
|
2017-05-11 19:47:53 +02:00
|
|
|
rm tests/test_lock.py
|
2017-07-04 09:39:49 +02:00
|
|
|
# Failing tests. https://bitbucket.org/zzzeek/dogpile.cache/issues/116
|
|
|
|
rm tests/cache/test_memcached_backend.py
|
2017-05-11 19:47:53 +02:00
|
|
|
'';
|
|
|
|
|
2017-05-01 23:39:29 +02:00
|
|
|
buildInputs = [ pytest pytestcov mock Mako ];
|
2017-04-09 09:29:15 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A caching front-end based on the Dogpile lock";
|
|
|
|
homepage = http://bitbucket.org/zzzeek/dogpile.cache;
|
2017-05-01 23:39:29 +02:00
|
|
|
platforms = platforms.unix;
|
2017-04-09 09:29:15 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|