From ecac42bd87eb6882dec84ec97ae890c61008689e Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 14 Jun 2018 23:32:30 +0200 Subject: [PATCH] pythonPackages.python-forecastio: init at 1.4.0 --- .../python-forecastio/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/python-forecastio/default.nix diff --git a/pkgs/development/python-modules/python-forecastio/default.nix b/pkgs/development/python-modules/python-forecastio/default.nix new file mode 100644 index 000000000000..68f9ad16977b --- /dev/null +++ b/pkgs/development/python-modules/python-forecastio/default.nix @@ -0,0 +1,31 @@ +{ buildPythonPackage, stdenv, fetchPypi +, requests +, nose +, responses +}: + +buildPythonPackage rec { + pname = "python-forecastio"; + version = "1.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0m6lf4a46pnwm5xg9dnmwslwzrpnj6d9agw570grciivbvb1ji0l"; + + }; + + checkInputs = [ nose ]; + + propagatedBuildInputs = [ requests responses ]; + + checkPhase = '' + nosetests + ''; + + meta = with stdenv.lib; { + homepage = https://zeevgilovitz.com/python-forecast.io/; + description = "A thin Python Wrapper for the Dark Sky (formerly forecast.io) weather API"; + license = licenses.bsd2; + maintainers = with maintainers; [ makefu ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index feb64b1cbbc8..c7033d31d044 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2615,6 +2615,8 @@ in { }; }; + python-forecastio = callPackage ../development/python-modules/python-forecastio { }; + fpdf = callPackage ../development/python-modules/fpdf { }; fpylll = callPackage ../development/python-modules/fpylll { };