Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 orjson, 8 pytest-aiohttp, 9 pytestCheckHook, 10 pythonOlder, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "pydeconz"; 16 version = "116"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.12"; 20 21 src = fetchFromGitHub { 22 owner = "Kane610"; 23 repo = "deconz"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-XtcAs+xKSTJcQN0mCj6ewkT7owvA7nlZ8PhWfL9NZh8="; 26 }; 27 28 postPatch = '' 29 substituteInPlace pyproject.toml \ 30 --replace-fail "--cov=pydeconz --cov-report term-missing" "" \ 31 --replace-fail "setuptools==" "setuptools>=" \ 32 --replace-fail "wheel==" "wheel>=" 33 ''; 34 35 build-system = [ 36 setuptools 37 ]; 38 39 dependencies = [ 40 aiohttp 41 orjson 42 ]; 43 44 nativeCheckInputs = [ 45 aioresponses 46 pytest-aiohttp 47 pytestCheckHook 48 ]; 49 50 pythonImportsCheck = [ "pydeconz" ]; 51 52 meta = with lib; { 53 description = "Python library wrapping the Deconz REST API"; 54 homepage = "https://github.com/Kane610/deconz"; 55 changelog = "https://github.com/Kane610/deconz/releases/tag/v${version}"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ fab ]; 58 mainProgram = "pydeconz"; 59 }; 60}