python3Package.pyowm: foramt with nixfmt
This commit is contained in:
parent
1feeea57f4
commit
52166c45cf
@ -1,13 +1,14 @@
|
|||||||
{ lib
|
{
|
||||||
, buildPythonPackage
|
lib,
|
||||||
, fetchFromGitHub
|
buildPythonPackage,
|
||||||
, geojson
|
fetchFromGitHub,
|
||||||
, pysocks
|
geojson,
|
||||||
, pythonOlder
|
pysocks,
|
||||||
, requests
|
pythonOlder,
|
||||||
, setuptools
|
requests,
|
||||||
, pytestCheckHook
|
setuptools,
|
||||||
, pythonRelaxDepsHook
|
pytestCheckHook,
|
||||||
|
pythonRelaxDepsHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -24,17 +25,11 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
|
hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [ "geojson" ];
|
||||||
"geojson"
|
|
||||||
];
|
|
||||||
|
|
||||||
build-system = [
|
build-system = [ setuptools ];
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||||
pythonRelaxDepsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
geojson
|
geojson
|
||||||
@ -43,18 +38,12 @@ buildPythonPackage rec {
|
|||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
pytestCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
# Run only tests which don't require network access
|
# Run only tests which don't require network access
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [ "tests/unit" ];
|
||||||
"tests/unit"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "pyowm" ];
|
||||||
"pyowm"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python wrapper around the OpenWeatherMap web API";
|
description = "Python wrapper around the OpenWeatherMap web API";
|
||||||
|
Loading…
Reference in New Issue
Block a user