From 926f312cf4040dc0df0e1c35f4ffd1f4f8793479 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 1 May 2018 13:24:41 +0200 Subject: [PATCH] python.pkgs.httplib2: 0.9.2 -> 0.11.3 --- .../python-modules/httplib2/default.nix | 18 ++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +--------------- 2 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/httplib2/default.nix diff --git a/pkgs/development/python-modules/httplib2/default.nix b/pkgs/development/python-modules/httplib2/default.nix new file mode 100644 index 000000000000..197e646027c4 --- /dev/null +++ b/pkgs/development/python-modules/httplib2/default.nix @@ -0,0 +1,18 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "httplib2"; + version = "0.11.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1pyb0hmc0j0kcy27yiw38gq9pk7f1fkny5k1vd13cdz6l3csw7g7"; + }; + + meta = with lib; { + homepage = http://code.google.com/p/httplib2; + description = "A comprehensive HTTP client library"; + license = licenses.mit; + maintainers = with maintainers; [ garbas ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3e2375637d2a..a97c023ca0fd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6414,21 +6414,7 @@ in { httpbin = callPackage ../development/python-modules/httpbin { }; - httplib2 = buildPythonPackage rec { - name = "httplib2-0.9.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/h/httplib2/${name}.tar.gz"; - sha256 = "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"; - }; - - meta = { - homepage = http://code.google.com/p/httplib2; - description = "A comprehensive HTTP client library"; - license = licenses.mit; - maintainers = with maintainers; [ garbas ]; - }; - }; + httplib2 = callPackage ../development/python-modules/httplib2 { }; hvac = callPackage ../development/python-modules/hvac { };