Merge pull request #155848 from plabadens/python-co2signal
This commit is contained in:
commit
fd4d52457a
3 changed files with 33 additions and 1 deletions
29
pkgs/development/python-modules/co2signal/default.nix
Normal file
29
pkgs/development/python-modules/co2signal/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -135,7 +135,7 @@
|
||||||
"cloud" = ps: with ps; [ pyturbojpeg aiohttp-cors hass-nabucasa ];
|
"cloud" = ps: with ps; [ pyturbojpeg aiohttp-cors hass-nabucasa ];
|
||||||
"cloudflare" = ps: with ps; [ pycfdns ];
|
"cloudflare" = ps: with ps; [ pycfdns ];
|
||||||
"cmus" = ps: with ps; [ ]; # missing inputs: pycmus
|
"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
|
"coinbase" = ps: with ps; [ ]; # missing inputs: coinbase
|
||||||
"color_extractor" = ps: with ps; [ colorthief ];
|
"color_extractor" = ps: with ps; [ colorthief ];
|
||||||
"comed_hourly_pricing" = ps: with ps; [ ];
|
"comed_hourly_pricing" = ps: with ps; [ ];
|
||||||
|
@ -1090,6 +1090,7 @@
|
||||||
"climate"
|
"climate"
|
||||||
"cloud"
|
"cloud"
|
||||||
"cloudflare"
|
"cloudflare"
|
||||||
|
"co2signal"
|
||||||
"color_extractor"
|
"color_extractor"
|
||||||
"comfoconnect"
|
"comfoconnect"
|
||||||
"command_line"
|
"command_line"
|
||||||
|
|
|
@ -1705,6 +1705,8 @@ in {
|
||||||
|
|
||||||
cnvkit = callPackage ../development/python-modules/cnvkit { };
|
cnvkit = callPackage ../development/python-modules/cnvkit { };
|
||||||
|
|
||||||
|
co2signal = callPackage ../development/python-modules/co2signal { };
|
||||||
|
|
||||||
coapthon3 = callPackage ../development/python-modules/coapthon3 { };
|
coapthon3 = callPackage ../development/python-modules/coapthon3 { };
|
||||||
|
|
||||||
coconut = callPackage ../development/python-modules/coconut { };
|
coconut = callPackage ../development/python-modules/coconut { };
|
||||||
|
|
Loading…
Reference in a new issue