Merge pull request #275660 from fabaff/pyatmo-bump

python311Packages.pyatmo: 7.6.0 -> 8.0.1
This commit is contained in:
Nick Cao 2023-12-20 11:20:19 -05:00 committed by GitHub
commit a5d559e2fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,20 +16,26 @@
buildPythonPackage rec {
pname = "pyatmo";
version = "7.6.0";
format = "pyproject";
version = "8.0.1";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "jabesq";
repo = "pyatmo";
rev = "refs/tags/v${version}";
hash = "sha256-rAmSxayXljOJchiMtSOgnotzQmapK2n86HwNi9HJX68=";
hash = "sha256-ASjAmkM/BFWzZYnLeXATbZzSG6KBDcmy66/R1MgzAwQ=";
};
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"
];