depot/third_party/nixpkgs/pkgs/development/python-modules/django-ranged-response/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
804 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
django,
}:
buildPythonPackage rec {
pname = "django-ranged-response";
version = "0.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "11gr3jpmb5rvg3scv026kjwwkmnxwivgq5ypxadnnc9p58szy7zp";
};
# tests not included in PyPi package, github source is not up to date with 0.2.0
doCheck = false;
propagatedBuildInputs = [ django ];
meta = with lib; {
description = "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";
homepage = "https://github.com/wearespindle/django-ranged-fileresponse";
license = licenses.mit;
maintainers = with maintainers; [ mrmebelman ];
};
}