summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-ranged-response/default.nix
blob: 3a2a7da1291f86d7323aad74e87284ce31ec6773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  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 = {
    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 = lib.licenses.mit;
    maintainers = with lib.maintainers; [ mrmebelman ];
  };
}