From 4d5093f5e1bccd8d8762e7e88ba1749ec6aaee95 Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Mon, 20 Feb 2017 16:31:36 +0100 Subject: [PATCH] pythonPackages.daphne: 1.0.1 -> 1.0.3 --- .../python-modules/daphne/default.nix | 20 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +---------------- 2 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/daphne/default.nix diff --git a/pkgs/development/python-modules/daphne/default.nix b/pkgs/development/python-modules/daphne/default.nix new file mode 100644 index 000000000000..6e19d9d9e864 --- /dev/null +++ b/pkgs/development/python-modules/daphne/default.nix @@ -0,0 +1,20 @@ +{ stdenv, buildPythonPackage, fetchurl, + asgiref, autobahn, twisted +}: +buildPythonPackage rec { + name = "daphne-${version}"; + version = "1.0.3"; + + src = fetchurl { + url = "mirror://pypi/d/daphne/${name}.tar.gz"; + sha256 = "1bpavq3sxr66mqwnnfg67pcchyaq7siqyin2r89aqadf6nab58d2"; + }; + + propagatedBuildInputs = [ asgiref autobahn twisted ]; + + meta = with stdenv.lib; { + description = "Django ASGI (HTTP/WebSocket) server"; + license = licenses.bsd3; + homepage = https://github.com/django/daphne; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 659da2c66f58..50a9e792dfd4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5895,23 +5895,7 @@ in { }; }); - daphne = buildPythonPackage rec { - name = "daphne-${version}"; - version = "1.0.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/daphne/${name}.tar.gz"; - sha256 = "0l62bd9swv0k9qcpl2s8kj4mgl6qayi0krwkkg1x73a9y48xpi9z"; - }; - - propagatedBuildInputs = with self; [ asgiref autobahn ]; - - meta = { - description = "Django ASGI (HTTP/WebSocket) server"; - license = licenses.bsd3; - homepage = https://github.com/django/daphne; - }; - }; + daphne = callPackage ../development/python-modules/daphne { }; dateparser = buildPythonPackage rec { name = "dateparser-${version}";