mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
33 lines
684 B
Nix
33 lines
684 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;
|
|
sha256 = "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 ];
|
|
};
|
|
}
|