2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, docopt
|
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
, setuptools
|
|
|
|
, vincenty
|
|
|
|
, xmltodict
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "buienradar";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.0.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mjj4791";
|
|
|
|
repo = "python-buienradar";
|
2021-12-19 01:06:50 +00:00
|
|
|
# https://github.com/mjj4791/python-buienradar/issues/14
|
|
|
|
rev = "caa66ea855dbcc7cf6ee13291d9b2ed7ac01ef98";
|
|
|
|
hash = "sha256:0xz03xj5qjayriaah20adh0ycvlvb8jdvgh7w5gm236n64g6krj0";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
docopt
|
|
|
|
pytz
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
vincenty
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# require network connection
|
|
|
|
"test_rain_data"
|
|
|
|
"test_json_data"
|
|
|
|
"test_xml_data"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"buienradar.buienradar"
|
|
|
|
"buienradar.constants"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library and CLI tools for interacting with buienradar";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "buienradar";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/mjj4791/python-buienradar";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|