Skip to content

Commit b64a782

Browse files
committed
python312Packages.radios: modernize
1 parent 6ad0478 commit b64a782

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pkgs/development/python-modules/radios/default.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
yarl,
1616
aresponses,
1717
pytest-asyncio,
18+
pytest-cov-stub,
1819
pytestCheckHook,
1920
}:
2021

@@ -34,17 +35,14 @@ buildPythonPackage rec {
3435

3536
postPatch = ''
3637
substituteInPlace pyproject.toml \
37-
--replace "0.0.0" "${version}" \
38-
--replace "--cov" ""
38+
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
3939
'';
4040

41-
nativeBuildInputs = [
41+
build-system = [
4242
poetry-core
4343
];
4444

45-
pythonRelaxDeps = [ "pycountry" ];
46-
47-
propagatedBuildInputs = [
45+
dependencies = [
4846
aiodns
4947
aiohttp
5048
awesomeversion
@@ -59,6 +57,7 @@ buildPythonPackage rec {
5957
nativeCheckInputs = [
6058
aresponses
6159
pytest-asyncio
60+
pytest-cov-stub
6261
pytestCheckHook
6362
];
6463

0 commit comments

Comments
 (0)