python311Packages.pyatmo: refactor

This commit is contained in:
Fabian Affolter 2023-12-20 15:53:17 +01:00
parent b4ac528138
commit 6cf87a10e2

View File

@ -17,9 +17,9 @@
buildPythonPackage rec {
pname = "pyatmo";
version = "8.0.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "jabesq";
@ -30,6 +30,12 @@ buildPythonPackage rec {
SETUPTOOLS_SCM_PRETEND_VERSION = version;
postPatch = ''
substituteInPlace setup.cfg \
--replace "oauthlib~=3.1" "oauthlib" \
--replace "requests~=2.24" "requests"
'';
nativeBuildInputs = [
setuptools-scm
];
@ -49,12 +55,6 @@ buildPythonPackage rec {
time-machine
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "oauthlib~=3.1" "oauthlib" \
--replace "requests~=2.24" "requests"
'';
pythonImportsCheck = [
"pyatmo"
];