depot/third_party/nixpkgs/pkgs/development/python-modules/python-snappy/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

36 lines
742 B
Nix

{ 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 ];
};
}