mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
f3282c8d1e
* treewide: remove unused variables * making ofborg happy
39 lines
817 B
Nix
39 lines
817 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPyPy
|
|
, snappy
|
|
, cffi
|
|
, nose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-snappy";
|
|
version = "0.5.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d9c26532cfa510f45e8d135cde140e8a5603d3fb254cfec273ebc0ecf9f668e2";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|