Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42052 from makefu/pkgs/python-forecastio/init
pythonPackages.python-forecastio: init at 1.4.0
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
pkgs/development/python-modules/python-forecastio/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters