python312Packages.pyweatherflowrest: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-24 18:50:26 +02:00
parent 132c353362
commit 0bf7908b1d

View File

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "pyweatherflowrest";
version = "1.0.11";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
@ -21,14 +21,9 @@ buildPythonPackage rec {
hash = "sha256-l1V3HgzqnnoY6sWHwfgBtcIR782RwKhekY2qOLrUMNY=";
};
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
propagatedBuildInputs = [ aiohttp ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=pyweatherflowrest --cov-append" ""
'';
dependencies = [ aiohttp ];
# Module has no tests. test.py is a demo script
doCheck = false;