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