summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-ranged-response
diff options
context:
space:
mode:
authorTrolli Schmittlauch <t.schmittlauch+nixos@orlives.de>2019-12-27 11:32:22 +0100
committerJon <jonringer@users.noreply.github.com>2020-01-05 17:31:28 -0800
commite5255bfd308b12551b5fa0e429676a8fde3b18b4 (patch)
tree49a0106d46322aa54d352074565dee7d0cfe7c1d /pkgs/development/python-modules/django-ranged-response
parente1ce60ae7ae5cc7626541012f0380e338cdb99ab (diff)
downloadnixpkgs-e5255bfd308b12551b5fa0e429676a8fde3b18b4.tar
nixpkgs-e5255bfd308b12551b5fa0e429676a8fde3b18b4.tar.gz
nixpkgs-e5255bfd308b12551b5fa0e429676a8fde3b18b4.tar.bz2
nixpkgs-e5255bfd308b12551b5fa0e429676a8fde3b18b4.tar.lz
nixpkgs-e5255bfd308b12551b5fa0e429676a8fde3b18b4.tar.xz
nixpkgs-e5255bfd308b12551b5fa0e429676a8fde3b18b4.tar.zst
nixpkgs-e5255bfd308b12551b5fa0e429676a8fde3b18b4.zip
pythonPackages.django-ranged-response: init at 0.2.0
co-author: Vladyslav Burzakovskyy <vladislav.burzakovskij@satoshilabs.com>
Diffstat (limited to 'pkgs/development/python-modules/django-ranged-response')
-rw-r--r--pkgs/development/python-modules/django-ranged-response/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django-ranged-response/default.nix b/pkgs/development/python-modules/django-ranged-response/default.nix
new file mode 100644
index 00000000000..29b2baf89cd
--- /dev/null
+++ b/pkgs/development/python-modules/django-ranged-response/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl, fetchPypi, buildPythonPackage, django }:
+
+buildPythonPackage rec {
+  pname = "django-ranged-response";
+  version = "0.2.0";
+
+  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 stdenv.lib; {
+    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";
+    homepage = "https://github.com/wearespindle/django-ranged-fileresponse";
+    license = licenses.mit;
+    maintainers = with maintainers; [ mrmebelman ];
+  };
+}