Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 28 lines 609 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, pytest }: 2 3buildPythonPackage rec { 4 pname = "brotli"; 5 version = "1.0.7"; 6 7 # PyPI doesn't contain tests so let's use GitHub 8 src = fetchFromGitHub { 9 owner = "google"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "1811b55wdfg4kbsjcgh1kc938g118jpvif97ilgrmbls25dfpvvw"; 13 }; 14 15 dontConfigure = true; 16 17 checkInputs = [ pytest ]; 18 19 checkPhase = '' 20 pytest python/tests 21 ''; 22 23 meta = { 24 homepage = https://github.com/google/brotli; 25 description = "Generic-purpose lossless compression algorithm"; 26 license = lib.licenses.mit; 27 }; 28}