Commit 52166c45 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python3Package.pyowm: foramt with nixfmt

parent 1feeea57
Loading
Loading
Loading
Loading
+17 −28
Original line number Diff line number Diff line
{ 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";