Merge pull request #155848 from plabadens/python-co2signal

This commit is contained in:
Martin Weinelt 2022-01-23 11:40:18 +01:00 committed by GitHub
commit fd4d52457a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
}:
buildPythonPackage rec {
pname = "co2signal";
version = "0.4.2";
src = fetchPypi {
inherit version;
pname = "CO2Signal";
hash = "sha256-8YdYbknLICRrZloGUZuscv5e1LIDZBcCPKZs6EMaNuo=";
};
propagatedBuildInputs = [ requests ];
# Modules has no tests
doCheck = false;
pythonImportsCheck = [ "CO2Signal" ];
meta = with lib; {
description = "A package to access the CO2 Signal API ";
homepage = "https://github.com/danielsjf/CO2Signal";
license = licenses.gpl3Only;
maintainers = with maintainers; [ plabadens ];
};
}

View file

@ -135,7 +135,7 @@
"cloud" = ps: with ps; [ pyturbojpeg aiohttp-cors hass-nabucasa ];
"cloudflare" = ps: with ps; [ pycfdns ];
"cmus" = ps: with ps; [ ]; # missing inputs: pycmus
"co2signal" = ps: with ps; [ ]; # missing inputs: co2signal
"co2signal" = ps: with ps; [ co2signal ];
"coinbase" = ps: with ps; [ ]; # missing inputs: coinbase
"color_extractor" = ps: with ps; [ colorthief ];
"comed_hourly_pricing" = ps: with ps; [ ];
@ -1090,6 +1090,7 @@
"climate"
"cloud"
"cloudflare"
"co2signal"
"color_extractor"
"comfoconnect"
"command_line"

View file

@ -1705,6 +1705,8 @@ in {
cnvkit = callPackage ../development/python-modules/cnvkit { };
co2signal = callPackage ../development/python-modules/co2signal { };
coapthon3 = callPackage ../development/python-modules/coapthon3 { };
coconut = callPackage ../development/python-modules/coconut { };