My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/python-snappy/default.nix

36 lines
742 B

{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, snappy
, cffi
, python
}:
buildPythonPackage rec {
pname = "python-snappy";
version = "0.6.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-tqEHqwYgasxTWdTFYyvZsi1EhwKnmzFpsMYuD7gIuyo=";
};
buildInputs = [ snappy ];
propagatedBuildInputs = lib.optional isPyPy cffi;
checkPhase = ''
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 = with maintainers; [ costrouc ];
};
}