python312Packages.aiosyncthing: refactor (#371396)

authored by Nick Cao and committed by GitHub f99d2aea 86f322b6

+11 -10
+11 -10
pkgs/development/python-modules/aiosyncthing/default.nix
··· 6 fetchFromGitHub, 7 expects, 8 pytest-asyncio, 9 pytest-mock, 10 pytestCheckHook, 11 yarl, 12 }: 13 14 buildPythonPackage rec { 15 pname = "aiosyncthing"; 16 version = "0.6.3"; 17 - format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "zhulik"; 21 - repo = pname; 22 - rev = "v${version}"; 23 hash = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI="; 24 }; 25 26 - propagatedBuildInputs = [ 27 aiohttp 28 yarl 29 ]; ··· 32 aioresponses 33 expects 34 pytestCheckHook 35 pytest-asyncio 36 pytest-mock 37 ]; 38 39 pytestFlagsArray = [ "--asyncio-mode=auto" ]; 40 41 - postPatch = '' 42 - substituteInPlace pyproject.toml \ 43 - --replace " --cov=aiosyncthing --cov-report=html" "" 44 - ''; 45 - 46 pythonImportsCheck = [ "aiosyncthing" ]; 47 48 meta = with lib; { 49 description = "Python client for the Syncthing REST API"; 50 homepage = "https://github.com/zhulik/aiosyncthing"; 51 - license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54 }
··· 6 fetchFromGitHub, 7 expects, 8 pytest-asyncio, 9 + pytest-cov-stub, 10 pytest-mock, 11 pytestCheckHook, 12 + setuptools, 13 yarl, 14 }: 15 16 buildPythonPackage rec { 17 pname = "aiosyncthing"; 18 version = "0.6.3"; 19 + pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "zhulik"; 23 + repo = "aiosyncthing"; 24 + tag = "v${version}"; 25 hash = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI="; 26 }; 27 28 + build-system = [ setuptools ]; 29 + 30 + dependencies = [ 31 aiohttp 32 yarl 33 ]; ··· 36 aioresponses 37 expects 38 pytestCheckHook 39 + pytest-cov-stub 40 pytest-asyncio 41 pytest-mock 42 ]; 43 44 pytestFlagsArray = [ "--asyncio-mode=auto" ]; 45 46 pythonImportsCheck = [ "aiosyncthing" ]; 47 48 meta = with lib; { 49 description = "Python client for the Syncthing REST API"; 50 homepage = "https://github.com/zhulik/aiosyncthing"; 51 + changelog = "https://github.com/zhulik/aiosyncthing/releases/tag/v${version}"; 52 + license = licenses.mit; 53 maintainers = with maintainers; [ fab ]; 54 }; 55 }