nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 36 lines 742 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPyPy 5, snappy 6, cffi 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "python-snappy"; 12 version = "0.6.1"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-tqEHqwYgasxTWdTFYyvZsi1EhwKnmzFpsMYuD7gIuyo="; 18 }; 19 20 buildInputs = [ snappy ]; 21 22 propagatedBuildInputs = lib.optional isPyPy cffi; 23 24 checkPhase = '' 25 runHook preCheck 26 ${python.interpreter} -m unittest discover 27 runHook postCheck 28 ''; 29 30 meta = with lib; { 31 description = "Python library for the snappy compression library from Google"; 32 homepage = "https://github.com/andrix/python-snappy"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ costrouc ]; 35 }; 36}