1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 django,
6}:
7
8buildPythonPackage rec {
9 pname = "django-ranged-response";
10 version = "0.2.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "11gr3jpmb5rvg3scv026kjwwkmnxwivgq5ypxadnnc9p58szy7zp";
16 };
17
18 # tests not included in PyPi package, github source is not up to date with 0.2.0
19 doCheck = false;
20
21 propagatedBuildInputs = [ django ];
22
23 meta = with lib; {
24 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";
25 homepage = "https://github.com/wearespindle/django-ranged-fileresponse";
26 license = licenses.mit;
27 maintainers = with maintainers; [ mrmebelman ];
28 };
29}