1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 dataclasses-json, 8 requests, 9 pytestCheckHook, 10 pytest-xdist, 11 requests-mock, 12 syrupy, 13}: 14 15buildPythonPackage rec { 16 pname = "pyecotrend-ista"; 17 version = "3.3.2"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.11"; 21 22 src = fetchFromGitHub { 23 owner = "Ludy87"; 24 repo = "pyecotrend-ista"; 25 tag = version; 26 hash = "sha256-TZDHEaDc7UACIAHNX1fStJH74qLKf+krWbTDtemXahA="; 27 }; 28 29 postPatch = '' 30 sed -i "/addopts =/d" pyproject.toml 31 ''; 32 33 build-system = [ setuptools ]; 34 35 dependencies = [ 36 dataclasses-json 37 requests 38 ]; 39 40 nativeCheckInputs = [ 41 pytestCheckHook 42 pytest-xdist 43 requests-mock 44 syrupy 45 ]; 46 47 pythonImportsCheck = [ "pyecotrend_ista" ]; 48 49 meta = { 50 changelog = "https://github.com/Ludy87/pyecotrend-ista/releases/tag/${version}"; 51 description = "Unofficial python library for the pyecotrend-ista API"; 52 homepage = "https://github.com/Ludy87/pyecotrend-ista"; 53 license = lib.licenses.mit; 54 maintainers = with lib.maintainers; [ oynqr ]; 55 }; 56}