tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python3Package.pyowm: foramt with nixfmt
Fabian Affolter
2 years ago
52166c45
1feeea57
+17
-28
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pyowm
default.nix
+17
-28
pkgs/development/python-modules/pyowm/default.nix
···
1
-
{ lib
2
-
, buildPythonPackage
3
-
, fetchFromGitHub
4
-
, geojson
5
-
, pysocks
6
-
, pythonOlder
7
-
, requests
8
-
, setuptools
9
-
, pytestCheckHook
10
-
, pythonRelaxDepsHook
0
11
}:
12
13
buildPythonPackage rec {
···
24
hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
25
};
26
27
-
pythonRelaxDeps = [
28
-
"geojson"
29
-
];
30
31
-
build-system = [
32
-
setuptools
33
-
];
34
35
-
nativeBuildInputs = [
36
-
pythonRelaxDepsHook
37
-
];
38
39
dependencies = [
40
geojson
···
43
setuptools
44
];
45
46
-
nativeCheckInputs = [
47
-
pytestCheckHook
48
-
];
49
50
# Run only tests which don't require network access
51
-
pytestFlagsArray = [
52
-
"tests/unit"
53
-
];
54
55
-
pythonImportsCheck = [
56
-
"pyowm"
57
-
];
58
59
meta = with lib; {
60
description = "Python wrapper around the OpenWeatherMap web API";
···
1
+
{
2
+
lib,
3
+
buildPythonPackage,
4
+
fetchFromGitHub,
5
+
geojson,
6
+
pysocks,
7
+
pythonOlder,
8
+
requests,
9
+
setuptools,
10
+
pytestCheckHook,
11
+
pythonRelaxDepsHook,
12
}:
13
14
buildPythonPackage rec {
···
25
hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
26
};
27
28
+
pythonRelaxDeps = [ "geojson" ];
0
0
29
30
+
build-system = [ setuptools ];
0
0
31
32
+
nativeBuildInputs = [ pythonRelaxDepsHook ];
0
0
33
34
dependencies = [
35
geojson
···
38
setuptools
39
];
40
41
+
nativeCheckInputs = [ pytestCheckHook ];
0
0
42
43
# Run only tests which don't require network access
44
+
pytestFlagsArray = [ "tests/unit" ];
0
0
45
46
+
pythonImportsCheck = [ "pyowm" ];
0
0
47
48
meta = with lib; {
49
description = "Python wrapper around the OpenWeatherMap web API";