2017-05-01 23:39:29 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, dogpile_core, pytest, pytestcov, mock, Mako
|
|
|
|
}:
|
2017-04-09 09:29:15 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dogpile.cache";
|
2017-05-27 14:24:47 +02:00
|
|
|
version = "0.6.3";
|
2017-04-09 09:29:15 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-05-27 14:24:47 +02:00
|
|
|
sha256 = "e9747f5e31f8dea1b80d6204358885f943f69e53574d88005438ca3651c44553";
|
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.
|
|
|
|
prePatch = ''
|
|
|
|
rm tests/test_lock.py
|
|
|
|
'';
|
|
|
|
|
2017-04-09 09:29:15 +02:00
|
|
|
propagatedBuildInputs = [ dogpile_core ];
|
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;
|
|
|
|
};
|
|
|
|
}
|