From 52166c45cf0f17ddf7613e4d71bced66b3d6e050 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Apr 2024 11:18:57 +0200 Subject: [PATCH] python3Package.pyowm: foramt with nixfmt --- .../python-modules/pyowm/default.nix | 45 +++++++------------ 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/pyowm/default.nix b/pkgs/development/python-modules/pyowm/default.nix index dd3ce0aca9ff..d342ce313e8c 100644 --- a/pkgs/development/python-modules/pyowm/default.nix +++ b/pkgs/development/python-modules/pyowm/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, geojson -, pysocks -, pythonOlder -, requests -, setuptools -, pytestCheckHook -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + geojson, + pysocks, + pythonOlder, + requests, + setuptools, + pytestCheckHook, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -24,17 +25,11 @@ buildPythonPackage rec { hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME="; }; - pythonRelaxDeps = [ - "geojson" - ]; + pythonRelaxDeps = [ "geojson" ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ geojson @@ -43,18 +38,12 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Run only tests which don't require network access - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; - pythonImportsCheck = [ - "pyowm" - ]; + pythonImportsCheck = [ "pyowm" ]; meta = with lib; { description = "Python wrapper around the OpenWeatherMap web API";