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