Merge pull request #148506 from fabaff/quantum-gateway

python3Packages.quantum-gateway: init at 0.0.6
This commit is contained in:
Fabian Affolter 2021-12-20 08:11:13 +01:00 committed by GitHub
commit 8b79620a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 93 additions and 1 deletions

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "esprima";
version = "4.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Kronuz";
repo = "esprima-python";
rev = "v${version}";
sha256 = "WtkPCReXhxyr6pOzE9gsdIeBlLk+nSnbxkS3OowEaHo=";
};
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"test/__main__.py::TestEsprima"
];
pythonImportsCheck = [
"esprima"
];
meta = with lib; {
description = "Python parser for standard-compliant ECMAScript";
homepage = "https://github.com/Kronuz/esprima-python";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}

@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, esprima
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, setuptools-scm
, urllib3
}:
buildPythonPackage rec {
pname = "quantum-gateway";
version = "0.0.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cisasteelersfan";
repo = "quantum_gateway";
rev = version;
sha256 = "f2LYOr9xJSfbA/1aHfll5lg7r05o855Zkkk9HuRamP8=";
};
propagatedBuildInputs = [
urllib3
esprima
requests
];
checkInputs = [
requests-mock
pytestCheckHook
];
pythonImportsCheck = [
"quantum_gateway"
];
meta = with lib; {
description = "Python library for interacting with Verizon Fios Quantum gateway devices";
homepage = "https://github.com/cisasteelersfan/quantum_gateway";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

@ -683,7 +683,7 @@
"qld_bushfire" = ps: with ps; [ georss-qld-bushfire-alert-client ];
"qnap" = ps: with ps; [ ]; # missing inputs: qnapstats
"qrcode" = ps: with ps; [ pillow ]; # missing inputs: pyzbar
"quantum_gateway" = ps: with ps; [ ]; # missing inputs: quantum-gateway
"quantum_gateway" = ps: with ps; [ quantum-gateway ];
"qvr_pro" = ps: with ps; [ ]; # missing inputs: pyqvrpro
"qwikswitch" = ps: with ps; [ ]; # missing inputs: pyqwikswitch
"rachio" = ps: with ps; [ pyturbojpeg aiohttp-cors hass-nabucasa rachiopy ];

@ -2560,6 +2560,8 @@ in {
eradicate = callPackage ../development/python-modules/eradicate { };
esprima = callPackage ../development/python-modules/esprima { };
escapism = callPackage ../development/python-modules/escapism { };
etcd = callPackage ../development/python-modules/etcd { };
@ -8202,6 +8204,8 @@ in {
quantities = callPackage ../development/python-modules/quantities { };
quantum-gateway = callPackage ../development/python-modules/quantum-gateway { };
querystring_parser = callPackage ../development/python-modules/querystring-parser { };
questionary = callPackage ../development/python-modules/questionary { };