mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #112077 from fabaff/pysma
This commit is contained in:
commit
90322e2e7e
36
pkgs/development/python-modules/pysma/default.nix
Normal file
36
pkgs/development/python-modules/pysma/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, jmespath
|
||||
, async-timeout
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysma";
|
||||
version = "0.3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1awcsbk14i2aw01f7b7hrmpn9q6vr9v6la0i9n7ldv1h8rzq6j16";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
async-timeout
|
||||
attrs
|
||||
jmespath
|
||||
];
|
||||
|
||||
# pypi does not contain tests and GitHub archive not available
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pysma" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for interacting with SMA Solar's WebConnect";
|
||||
homepage = "https://github.com/kellerza/pysma";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -744,7 +744,7 @@
|
||||
"slack" = ps: with ps; [ ]; # missing inputs: slackclient
|
||||
"sleepiq" = ps: with ps; [ ]; # missing inputs: sleepyq
|
||||
"slide" = ps: with ps; [ ]; # missing inputs: goslide-api
|
||||
"sma" = ps: with ps; [ ]; # missing inputs: pysma
|
||||
"sma" = ps: with ps; [ pysma ];
|
||||
"smappee" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pysmappee
|
||||
"smart_meter_texas" = ps: with ps; [ ]; # missing inputs: smart-meter-texas
|
||||
"smarthab" = ps: with ps; [ ]; # missing inputs: smarthab
|
||||
|
@ -5929,6 +5929,8 @@ in {
|
||||
|
||||
pyslurm = callPackage ../development/python-modules/pyslurm { slurm = pkgs.slurm; };
|
||||
|
||||
pysma = callPackage ../development/python-modules/pysma { };
|
||||
|
||||
pysmb = callPackage ../development/python-modules/pysmb { };
|
||||
|
||||
pysmbc = callPackage ../development/python-modules/pysmbc { inherit (pkgs) pkg-config; };
|
||||
|
Loading…
Reference in New Issue
Block a user