uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
76
pkgs/development/python-modules/meteofrance-api/default.nix
Normal file
76
pkgs/development/python-modules/meteofrance-api/default.nix
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, requests
|
||||
, requests-mock
|
||||
, typing-extensions
|
||||
, urllib3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "meteofrance-api";
|
||||
version = "1.0.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hacf-fr";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-X8f0z9ZPXH7Wc3GqHmPptxpNxbHeezdOzw4gZCprumU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
# Doesn't work with poetry-core at the moment
|
||||
poetry
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytz
|
||||
requests
|
||||
urllib3
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
requests-mock
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/hacf-fr/meteofrance-api/pull/378
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'pytz = ">=2020.4,<2022.0"' 'pytz = ">=2020.4,<2023.0"'
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"meteofrance_api"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests require network access
|
||||
"test_currentphenomenons"
|
||||
"test_forecast"
|
||||
"test_full_with_coastal_bulletint"
|
||||
"test_fulls"
|
||||
"test_no_rain_expected"
|
||||
"test_picture_of_the_day"
|
||||
"test_places"
|
||||
"test_rain"
|
||||
"test_session"
|
||||
"test_workflow"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module to access information from the Meteo-France API";
|
||||
homepage = "https://github.com/hacf-fr/meteofrance-api";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue