Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchPypi, buildPythonPackage, django }: 2 3buildPythonPackage rec { 4 pname = "django-ranged-response"; 5 version = "0.2.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "11gr3jpmb5rvg3scv026kjwwkmnxwivgq5ypxadnnc9p58szy7zp"; 10 }; 11 12 # tests not included in PyPi package, github source is not up to date with 0.2.0 13 doCheck = false; 14 15 propagatedBuildInputs = [ django ]; 16 17 meta = with lib; { 18 description = "A modified FileResponse that returns `Content-Range` headers with the HTTP response, so browsers (read Safari 9+) that request the file, can stream the response properly"; 19 homepage = "https://github.com/wearespindle/django-ranged-fileresponse"; 20 license = licenses.mit; 21 maintainers = with maintainers; [ mrmebelman ]; 22 }; 23}