mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #113799 from fabaff/pymfy
This commit is contained in:
commit
a163e89000
45
pkgs/development/python-modules/pymfy/default.nix
Normal file
45
pkgs/development/python-modules/pymfy/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, httpretty
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests_oauthlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymfy";
|
||||
version = "0.9.4";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tetienne";
|
||||
repo = "somfy-open-api";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ml536dvva2xd52jfgrd557h2sr5w6567sxnyq0blhkgpyz4m2av";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
requests_oauthlib
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
httpretty
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pymfy" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for the Somfy Open API";
|
||||
homepage = "https://github.com/tetienne/somfy-open-api";
|
||||
license = with licenses; [ gpl3Only ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -763,7 +763,7 @@
|
||||
"solarlog" = ps: with ps; [ ]; # missing inputs: sunwatcher
|
||||
"solax" = ps: with ps; [ solax ];
|
||||
"soma" = ps: with ps; [ pysoma ];
|
||||
"somfy" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pymfy
|
||||
"somfy" = ps: with ps; [ aiohttp-cors pymfy ];
|
||||
"somfy_mylink" = ps: with ps; [ ]; # missing inputs: somfy-mylink-synergy
|
||||
"sonarr" = ps: with ps; [ ]; # missing inputs: sonarr
|
||||
"songpal" = ps: with ps; [ ]; # missing inputs: python-songpal
|
||||
|
@ -5752,6 +5752,8 @@ in {
|
||||
|
||||
pymitv = callPackage ../development/python-modules/pymitv { };
|
||||
|
||||
pymfy = callPackage ../development/python-modules/pymfy { };
|
||||
|
||||
pymodbus = callPackage ../development/python-modules/pymodbus { };
|
||||
|
||||
pymongo = callPackage ../development/python-modules/pymongo { };
|
||||
|
Loading…
Reference in New Issue
Block a user