nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.1 kB view raw
1{ 2 lib, 3 beautifulsoup4, 4 buildPythonPackage, 5 envoy-utils, 6 fetchFromGitHub, 7 setuptools, 8 httpx, 9 pyjwt, 10 pytest-asyncio, 11 pytestCheckHook, 12 pytest-raises, 13 respx, 14}: 15 16buildPythonPackage rec { 17 pname = "envoy-reader"; 18 version = "0.21.3"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "jesserizzo"; 23 repo = "envoy_reader"; 24 rev = version; 25 hash = "sha256-aIpZ4ln4L57HwK8H0FqsyNnXosnAp3ingrJI6/MPS90="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 beautifulsoup4 32 envoy-utils 33 httpx 34 pyjwt 35 ]; 36 37 nativeCheckInputs = [ 38 pytest-raises 39 pytest-asyncio 40 pytestCheckHook 41 respx 42 ]; 43 44 pythonRelaxDeps = [ "pyjwt" ]; 45 46 postPatch = '' 47 substituteInPlace setup.py \ 48 --replace-fail "pytest-runner>=5.2" "" 49 ''; 50 51 pythonImportsCheck = [ "envoy_reader" ]; 52 53 meta = { 54 description = "Python module to read from Enphase Envoy units"; 55 homepage = "https://github.com/jesserizzo/envoy_reader"; 56 license = lib.licenses.mit; 57 maintainers = with lib.maintainers; [ fab ]; 58 }; 59}