python3Packages.python-snappy: 0.6.0 -> 0.6.1
This commit is contained in:
@@ -4,35 +4,33 @@
|
||||
, isPyPy
|
||||
, snappy
|
||||
, cffi
|
||||
, nose
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-snappy";
|
||||
version = "0.6.0";
|
||||
version = "0.6.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "06l9my361ig4x5ycyrmq33q83zcdib3y2zxfxv7k7dlpyp9ri2hn";
|
||||
sha256 = "sha256-tqEHqwYgasxTWdTFYyvZsi1EhwKnmzFpsMYuD7gIuyo=";
|
||||
};
|
||||
|
||||
buildInputs = [ snappy ];
|
||||
|
||||
propagatedBuildInputs = lib.optional isPyPy cffi;
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
rm -r snappy # prevent local snappy from being picked up
|
||||
nosetests test_snappy.py
|
||||
'' + lib.optionalString isPyPy ''
|
||||
nosetests test_snappy_cffi.py
|
||||
runHook preCheck
|
||||
${python.interpreter} -m unittest discover
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for the snappy compression library from Google";
|
||||
homepage = "https://github.com/andrix/python-snappy";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user