depot/third_party/nixpkgs/pkgs/development/python-modules/python-snappy/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

32 lines
682 B
Nix

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