31 lines
780 B
Nix
31 lines
780 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, dogpile_core, pytest, pytestcov, mock, Mako
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dogpile.cache";
|
|
version = "0.6.2";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "73793471af07af6dc5b3ee015abfaca4220caaa34c615537f5ab007ed150726d";
|
|
};
|
|
|
|
# Disable concurrency tests that often fail,
|
|
# probably some kind of timing issue.
|
|
prePatch = ''
|
|
rm tests/test_lock.py
|
|
'';
|
|
|
|
propagatedBuildInputs = [ dogpile_core ];
|
|
buildInputs = [ pytest pytestcov mock Mako ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A caching front-end based on the Dogpile lock";
|
|
homepage = http://bitbucket.org/zzzeek/dogpile.cache;
|
|
platforms = platforms.unix;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|