2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-08-31 18:46:33 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, mock
|
|
|
|
, Mako
|
|
|
|
, decorator
|
|
|
|
, stevedore
|
2017-05-01 22:39:29 +01:00
|
|
|
}:
|
2017-04-09 08:29:15 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dogpile.cache";
|
2021-01-31 04:32:04 +00:00
|
|
|
version = "1.1.2";
|
2020-08-29 19:00:46 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-04-09 08:29:15 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-31 04:32:04 +00:00
|
|
|
sha256 = "2134464672a3deb7ef1366a8691726686d8c62540e4208f1a40c9aaa1a0b6a45";
|
2017-04-09 08:29:15 +01:00
|
|
|
};
|
|
|
|
|
2017-05-11 18:47:53 +01:00
|
|
|
# Disable concurrency tests that often fail,
|
|
|
|
# probably some kind of timing issue.
|
2017-07-04 08:39:49 +01:00
|
|
|
postPatch = ''
|
2017-05-11 18:47:53 +01:00
|
|
|
rm tests/test_lock.py
|
2017-07-04 08:39:49 +01:00
|
|
|
# Failing tests. https://bitbucket.org/zzzeek/dogpile.cache/issues/116
|
|
|
|
rm tests/cache/test_memcached_backend.py
|
2017-05-11 18:47:53 +01: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 ];
|
|
|
|
|
2020-08-30 01:04:44 +01:00
|
|
|
propagatedBuildInputs = [ decorator stevedore ];
|
2017-04-09 08:29:15 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-09 08:29:15 +01:00
|
|
|
description = "A caching front-end based on the Dogpile lock";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://bitbucket.org/zzzeek/dogpile.cache";
|
2017-04-09 08:29:15 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|