Merge pull request #111827 from fabaff/solax
python3Packages.solax: init at 0.2.5
This commit is contained in:
commit
dcf1583293
@ -0,0 +1,46 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-cov
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests
|
||||||
|
, werkzeug
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytest-httpserver";
|
||||||
|
version = "0.3.6";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "pytest_httpserver";
|
||||||
|
inherit version;
|
||||||
|
sha256 = "1wdhbzv6x2v4qsqwgsc5660c4lxplh9b61vfj1zqhbhs36y96vl9";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "remove-pytest-runner.patch";
|
||||||
|
url = "https://github.com/csernazs/pytest-httpserver/commit/c9752018bc2f13d141dd52c92df75c19ea388836.patch";
|
||||||
|
sha256 = "0b76ywzl2gwddbqqlb662mfv5j42l88l5hffm7jbxzvqbz94mx3k";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ werkzeug ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-cov
|
||||||
|
pytestCheckHook
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pytest_httpserver" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "HTTP server for pytest to test HTTP clients";
|
||||||
|
homepage = "https://www.github.com/csernazs/pytest-httpserver";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
41
pkgs/development/python-modules/solax/default.nix
Normal file
41
pkgs/development/python-modules/solax/default.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ lib
|
||||||
|
, aiohttp
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-cov
|
||||||
|
, pytest-httpserver
|
||||||
|
, pytestCheckHook
|
||||||
|
, setuptools-scm
|
||||||
|
, voluptuous
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "solax";
|
||||||
|
version = "0.2.5";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0h7q6y2cdkj9dqxw0k7pgz7a7vbpq1qw50pmy9rajphhv2600cbc";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools-scm ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ aiohttp voluptuous ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-cov
|
||||||
|
pytest-httpserver
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "solax" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python wrapper for the Solax Inverter API";
|
||||||
|
homepage = "https://github.com/squishykid/solax";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -761,7 +761,7 @@
|
|||||||
"solaredge" = ps: with ps; [ stringcase ]; # missing inputs: solaredge
|
"solaredge" = ps: with ps; [ stringcase ]; # missing inputs: solaredge
|
||||||
"solaredge_local" = ps: with ps; [ ]; # missing inputs: solaredge-local
|
"solaredge_local" = ps: with ps; [ ]; # missing inputs: solaredge-local
|
||||||
"solarlog" = ps: with ps; [ ]; # missing inputs: sunwatcher
|
"solarlog" = ps: with ps; [ ]; # missing inputs: sunwatcher
|
||||||
"solax" = ps: with ps; [ ]; # missing inputs: solax
|
"solax" = ps: with ps; [ solax ];
|
||||||
"soma" = ps: with ps; [ pysoma ];
|
"soma" = ps: with ps; [ pysoma ];
|
||||||
"somfy" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pymfy
|
"somfy" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pymfy
|
||||||
"somfy_mylink" = ps: with ps; [ ]; # missing inputs: somfy-mylink-synergy
|
"somfy_mylink" = ps: with ps; [ ]; # missing inputs: somfy-mylink-synergy
|
||||||
|
@ -6101,6 +6101,8 @@ in {
|
|||||||
|
|
||||||
pytest-httpbin = callPackage ../development/python-modules/pytest-httpbin { };
|
pytest-httpbin = callPackage ../development/python-modules/pytest-httpbin { };
|
||||||
|
|
||||||
|
pytest-httpserver = callPackage ../development/python-modules/pytest-httpserver { };
|
||||||
|
|
||||||
pytest-instafail = callPackage ../development/python-modules/pytest-instafail { };
|
pytest-instafail = callPackage ../development/python-modules/pytest-instafail { };
|
||||||
|
|
||||||
pytest-isort = callPackage ../development/python-modules/pytest-isort { };
|
pytest-isort = callPackage ../development/python-modules/pytest-isort { };
|
||||||
@ -7268,6 +7270,8 @@ in {
|
|||||||
|
|
||||||
softlayer = callPackage ../development/python-modules/softlayer { };
|
softlayer = callPackage ../development/python-modules/softlayer { };
|
||||||
|
|
||||||
|
solax = callPackage ../development/python-modules/solax { };
|
||||||
|
|
||||||
solo-python = disabledIf (!pythonAtLeast "3.6") (callPackage ../development/python-modules/solo-python { });
|
solo-python = disabledIf (!pythonAtLeast "3.6") (callPackage ../development/python-modules/solo-python { });
|
||||||
|
|
||||||
somajo = callPackage ../development/python-modules/somajo { };
|
somajo = callPackage ../development/python-modules/somajo { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user