depot/third_party/nixpkgs/pkgs/development/python-modules/quantum-gateway/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

53 lines
1,002 B
Nix

{ lib
, buildPythonPackage
, esprima
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, setuptools-scm
, urllib3
}:
buildPythonPackage rec {
pname = "quantum-gateway";
version = "0.0.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cisasteelersfan";
repo = "quantum_gateway";
rev = version;
hash = "sha256-jwLfth+UaisPR0p+UHfm6qMXT2eSYWnsYEp0BqyeI9U=";
};
propagatedBuildInputs = [
urllib3
esprima
requests
];
checkInputs = [
requests-mock
pytestCheckHook
];
pythonImportsCheck = [
"quantum_gateway"
];
disabledTests = [
# Tests require network features
"TestGateway3100"
];
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 ];
};
}