diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-12-20 15:53:17 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-12-20 15:53:17 +0100 |
commit | 6cf87a10e2efe57b99a2ef47d90849e6fa6c9db9 (patch) | |
tree | 76e7a7c0278ed1839a3a483f7bf3299d26ad1108 | |
parent | b4ac528138c4645d157d25ff5d467a80c978754c (diff) |
python311Packages.pyatmo: refactor
-rw-r--r-- | pkgs/development/python-modules/pyatmo/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/pyatmo/default.nix b/pkgs/development/python-modules/pyatmo/default.nix index 604735161295e..544990ba7521c 100644 --- a/pkgs/development/python-modules/pyatmo/default.nix +++ b/pkgs/development/python-modules/pyatmo/default.nix @@ -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" ]; |