mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
python311Packages.pyatmo: refactor
This commit is contained in:
parent
b4ac528138
commit
6cf87a10e2
@ -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"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user