mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
6b999f3c42
Did not test all packages. Likely we'll have some breakage.
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.3";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e9747f5e31f8dea1b80d6204358885f943f69e53574d88005438ca3651c44553";
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
}
|