2017-05-01 21:39:29 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2019-02-14 07:37:15 +00:00
|
|
|
, pytest, pytestcov, mock, Mako, decorator
|
2017-05-01 21:39:29 +00:00
|
|
|
}:
|
2017-04-09 07:29:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dogpile.cache";
|
2020-05-09 10:01:46 +00:00
|
|
|
version = "0.9.2";
|
2017-04-09 07:29:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 10:01:46 +00:00
|
|
|
sha256 = "bc9dde1ffa5de0179efbcdc73773ef0553921130ad01955422f2932be35c059e";
|
2017-04-09 07:29:15 +00:00
|
|
|
};
|
|
|
|
|
2017-05-11 17:47:53 +00:00
|
|
|
# Disable concurrency tests that often fail,
|
|
|
|
# probably some kind of timing issue.
|
2017-07-04 07:39:49 +00:00
|
|
|
postPatch = ''
|
2017-05-11 17:47:53 +00:00
|
|
|
rm tests/test_lock.py
|
2017-07-04 07:39:49 +00:00
|
|
|
# Failing tests. https://bitbucket.org/zzzeek/dogpile.cache/issues/116
|
|
|
|
rm tests/cache/test_memcached_backend.py
|
2017-05-11 17:47:53 +00:00
|
|
|
'';
|
|
|
|
|
2019-10-29 09:06:36 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2019-02-14 07:37:15 +00:00
|
|
|
checkInputs = [ pytest pytestcov mock Mako ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ decorator ];
|
2017-04-09 07:29:15 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A caching front-end based on the Dogpile lock";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://bitbucket.org/zzzeek/dogpile.cache";
|
2017-04-09 07:29:15 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|