mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-24 22:27:30 +03:00
Merge pull request #128639 from fabaff/env-canada
python3Packages.env-canada: init at 0.4.0
This commit is contained in:
commit
8f7a3c6df1
55
pkgs/development/python-modules/env-canada/default.nix
Normal file
55
pkgs/development/python-modules/env-canada/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, geopy
|
||||
, imageio
|
||||
, pillow
|
||||
, pytestCheckHook
|
||||
, python-dateutil
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "env-canada";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "michaeldavie";
|
||||
repo = "env_canada";
|
||||
rev = "v${version}";
|
||||
sha256 = "0y4yjzmg6ns7a13j1cxqvrff4fd6k97cpc1xjwqrwp7gq49rzhy7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
geopy
|
||||
imageio
|
||||
pillow
|
||||
python-dateutil
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests require network access
|
||||
"test_get_aqhi_regions"
|
||||
"test_update"
|
||||
"test_get_hydro_sites"
|
||||
"test_echydro"
|
||||
"test_get_dimensions"
|
||||
"test_get_latest_frame"
|
||||
"test_get_loop"
|
||||
"test_get_ec_sites"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "env_canada" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to get Environment Canada weather data";
|
||||
homepage = "https://github.com/michaeldavie/env_canada";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -228,7 +228,7 @@
|
||||
"enocean" = ps: with ps; [ enocean ];
|
||||
"enphase_envoy" = ps: with ps; [ envoy-reader ];
|
||||
"entur_public_transport" = ps: with ps; [ enturclient ];
|
||||
"environment_canada" = ps: with ps; [ ]; # missing inputs: env_canada
|
||||
"environment_canada" = ps: with ps; [ env-canada ];
|
||||
"envirophat" = ps: with ps; [ smbus-cffi ]; # missing inputs: envirophat
|
||||
"envisalink" = ps: with ps; [ pyenvisalink ];
|
||||
"ephember" = ps: with ps; [ ]; # missing inputs: pyephember
|
||||
|
@ -2307,6 +2307,8 @@ in {
|
||||
|
||||
enum-compat = callPackage ../development/python-modules/enum-compat { };
|
||||
|
||||
env-canada = callPackage ../development/python-modules/env-canada { };
|
||||
|
||||
envisage = callPackage ../development/python-modules/envisage { };
|
||||
|
||||
envs = callPackage ../development/python-modules/envs { };
|
||||
|
Loading…
Reference in New Issue
Block a user