2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-09-25 04:45:31 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
, mock
|
2023-03-15 16:39:30 +00:00
|
|
|
, mako
|
2020-09-25 04:45:31 +00:00
|
|
|
, decorator
|
|
|
|
, stevedore
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "dogpile-cache";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.2.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "dogpile.cache";
|
|
|
|
inherit version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-R1VMhgzrSE3Vrvn/H4j+yz1K72u5IRlFD1vLqgJrv7E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
preCheck = ''
|
|
|
|
# Disable concurrency tests that often fail,
|
|
|
|
# probably some kind of timing issue.
|
2020-04-24 23:36:52 +00:00
|
|
|
rm tests/test_lock.py
|
|
|
|
# Failing tests. https://bitbucket.org/zzzeek/dogpile.cache/issues/116
|
|
|
|
rm tests/cache/test_memcached_backend.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook mock mako ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ decorator stevedore ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A caching front-end based on the Dogpile lock";
|
|
|
|
homepage = "https://bitbucket.org/zzzeek/dogpile.cache";
|
|
|
|
license = licenses.bsd3;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|