python310Packages.pyipma: 3.0.0 -> 3.0.2
This commit is contained in:
parent
55ce48fc2b
commit
534b168eaa
1 changed files with 32 additions and 10 deletions
|
@ -1,20 +1,28 @@
|
||||||
{ lib
|
{ lib
|
||||||
, aiohttp
|
, aiohttp
|
||||||
|
, aioresponses
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
|
, freezegun
|
||||||
|
, mock
|
||||||
, geopy
|
, geopy
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyipma";
|
pname = "pyipma";
|
||||||
version = "3.0.0";
|
version = "3.0.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
# Request for GitHub releases, https://github.com/dgomes/pyipma/issues/10
|
src = fetchFromGitHub {
|
||||||
src = fetchPypi {
|
owner = "dgomes";
|
||||||
inherit pname version;
|
repo = pname;
|
||||||
sha256 = "sha256-LfnatA8CimHIXH3f3T4PatDBIEhh6vlQtI080iu8UEg=";
|
rev = "refs/tags/${version}";
|
||||||
|
hash = "sha256-AF4bwEsAwJ5MoBQieNDFQ00LILJu+bZZttw4T5+6gkk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -22,13 +30,27 @@ buildPythonPackage rec {
|
||||||
geopy
|
geopy
|
||||||
];
|
];
|
||||||
|
|
||||||
# Project has no tests included in the PyPI releases
|
checkInputs = [
|
||||||
doCheck = false;
|
aioresponses
|
||||||
|
freezegun
|
||||||
|
mock
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pyipma" ];
|
pythonImportsCheck = [
|
||||||
|
"pyipma"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# Tests require network access
|
||||||
|
"tests/test_auxiliar.py"
|
||||||
|
"tests/test_location.py"
|
||||||
|
"tests/test_sea_forecast.py"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library to retrieve information from Instituto Português do Mar e Atmosfera";
|
description = "Library to retrieve information from Instituto Português do Mar e Atmosfera";
|
||||||
homepage = "https://github.com/dgomes/pyipma";
|
homepage = "https://github.com/dgomes/pyipma";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
|
Loading…
Reference in a new issue