nixpkgs/pkgs/development/python-modules/aiosyncthing/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

56 lines
1021 B
Nix

{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, expects
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, yarl
}:
buildPythonPackage rec {
pname = "aiosyncthing";
version = "0.6.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "zhulik";
repo = pname;
rev = "v${version}";
hash = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI=";
};
propagatedBuildInputs = [
aiohttp
yarl
];
nativeCheckInputs = [
aioresponses
expects
pytestCheckHook
pytest-asyncio
pytest-mock
];
pytestFlagsArray = [
"--asyncio-mode=auto"
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=aiosyncthing --cov-report=html" ""
'';
pythonImportsCheck = [ "aiosyncthing" ];
meta = with lib; {
description = "Python client for the Syncthing REST API";
homepage = "https://github.com/zhulik/aiosyncthing";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}