Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-02-14 06:16:29 +00:00
committed by GitHub
27 changed files with 429 additions and 147 deletions

View File

@@ -1,20 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, aiodns
, tldextract
, asynctest
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, tldextract
}:
buildPythonPackage rec {
pname = "asyncwhois";
version = "0.2.4";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "84677e90bc2d2975788e905ae9841bc91a732a452bc870991105b0a6cc3cd22f";
src = fetchFromGitHub {
owner = "pogzyb";
repo = pname;
rev = "v${version}";
sha256 = "17w007hjnpggj6jvkv8wxwllxk6mir1q2nhw0dqg7glm4lfbx8kr";
};
propagatedBuildInputs = [
@@ -22,9 +25,24 @@ buildPythonPackage rec {
tldextract
];
# tests are only present at GitHub but not the released source tarballs
# https://github.com/pogzyb/asyncwhois/issues/10
doCheck = false;
checkInputs = [
asynctest
pytestCheckHook
];
# Disable tests that require network access
disabledTests = [
"test_pywhois_aio_get_hostname_from_ip"
"test_pywhois_get_hostname_from_ip"
"test_pywhois_aio_lookup_ipv4"
"test_not_found"
"test_aio_from_whois_cmd"
"test_aio_get_hostname_from_ip"
"test_from_whois_cmd"
"test_get_hostname_from_ip"
"test_whois_query_run"
];
pythonImportsCheck = [ "asyncwhois" ];
meta = with lib; {

View File

@@ -0,0 +1,32 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "auroranoaa";
version = "0.0.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "djtimca";
repo = "aurora-api";
rev = version;
sha256 = "0bh8amixkg3xigwh3ryra22x6kzhbdassmf1iqv20lhbvzmsqjv0";
};
propagatedBuildInputs = [ aiohttp ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "auroranoaa" ];
meta = with lib; {
description = "Python wrapper for the Aurora API";
homepage = "https://github.com/djtimca/aurora-api";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -7,7 +7,6 @@
, google-cloud-storage
, google-cloud-testutils
, google-resumable-media
, grpcio
, ipython
, mock
, pandas
@@ -18,11 +17,11 @@
buildPythonPackage rec {
pname = "google-cloud-bigquery";
version = "2.7.0";
version = "2.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "29721972f5e539e486fbdc722ddf849ad86acd092680d16c271430dc16023544";
sha256 = "c4c43f7f440d6e5bb2895d21122af5de65b487ea2c69cea466a516bb826ab921";
};
propagatedBuildInputs = [

View File

@@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, tkinter
}:
buildPythonPackage rec {
pname = "guppy3";
version = "3.1.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "zhuyifei1999";
repo = pname;
rev = "v${version}";
sha256 = "0yjsn8najbic4f50nj6jzhzrhj1bw6918w0gihdkzhqynwgqi64m";
};
propagatedBuildInputs = [ tkinter ];
# Tests are starting a Tkinter GUI
doCheck = false;
pythonImportsCheck = [ "guppy" ];
meta = with lib; {
description = "Python Programming Environment & Heap analysis toolset";
homepage = "https://zhuyifei1999.github.io/guppy3/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "metar";
version = "1.8.0";
src = fetchFromGitHub {
owner = "python-metar";
repo = "python-metar";
rev = "v${version}";
sha256 = "019vfq9191cdvvq1afdcdgdgbzpj7wq6pz9li8ggim71azjnv5nn";
};
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "metar" ];
meta = with lib; {
description = "Python parser for coded METAR weather reports";
homepage = "https://github.com/python-metar/python-metar";
license = with licenses; [ bsd1 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -13,15 +13,17 @@
buildPythonPackage rec {
pname = "osmpythontools";
version = "0.2.9";
version = "0.3.0";
src = fetchFromGitHub {
owner = "mocnik-science";
repo = "osm-python-tools";
rev = "v${version}";
sha256 = "1qpj03fgn8rmrg9a9vk7bw32k9hdy15g5p2q3a6q52ykpb78jdz5";
sha256 = "0r72z7f7kmvvbd9zvgci8rwmfj85xj34mb3x5dj3jcv5ij5j72yh";
};
# Upstream setup.py has test dependencies in `install_requires` argument.
# Remove them, as we don't run the tests.
patches = [ ./remove-test-only-dependencies.patch ];
propagatedBuildInputs = [
@@ -55,7 +57,7 @@ buildPythonPackage rec {
Nominatim, and the OpenStreetMap editing API.
'';
homepage = "https://github.com/mocnik-science/osm-python-tools";
license = licenses.gpl3;
license = licenses.gpl3Only;
maintainers = with maintainers; [ das-g ];
};
}

View File

@@ -0,0 +1,47 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, freezegun
, metar
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pynws";
version = "1.3.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "MatthewFlamm";
repo = pname;
rev = "v${version}";
sha256 = "13ipmx60kicwh8qxjazap4vk94x8i3r0lnkdsap7gffaizwgp49d";
};
propagatedBuildInputs = [
aiohttp
metar
];
checkInputs = [
freezegun
pytest-aiohttp
pytest-asyncio
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "pynws" ];
meta = with lib; {
description = "Python library to retrieve data from NWS/NOAA";
homepage = "https://github.com/MatthewFlamm/pynws";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -1,21 +1,39 @@
{ lib, buildPythonPackage, fetchFromGitHub
, six, pytestCheckHook, mock, dill, pycodestyle }:
{ lib
, buildPythonPackage
, fetchPypi
, six
, pygraphviz
, pytestCheckHook
, mock
, graphviz
, pycodestyle
}:
buildPythonPackage rec {
pname = "transitions";
version = "0.8.6";
version = "0.8.7";
# test_codestyle.py fails in PyPI sdist
src = fetchFromGitHub {
owner = "pytransitions";
repo = "transitions";
rev = version;
sha256 = "1d913hzzyqhdhhbkbvjw65dqkajrw50a4sxhyxk0jlg8pcs7bs7v";
src = fetchPypi {
inherit pname version;
sha256 = "8c60ec0828cd037820726283cad5d4d77a5e31514e058b51250420e9873e9bc7";
};
propagatedBuildInputs = [ six ];
propagatedBuildInputs = [
six
pygraphviz # optional
];
checkInputs = [ pytestCheckHook mock dill pycodestyle ];
checkInputs = [
pytestCheckHook
mock
graphviz
pycodestyle
];
disabledTests = [
# Fontconfig error: Cannot load default config file
"test_diagram"
];
meta = with lib; {
homepage = "https://github.com/pytransitions/transitions";