nixpkgs-suyu/pkgs/development/python-modules/metar/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Normal View History

2021-02-13 15:16:35 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
2021-02-13 15:16:35 +01:00
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "metar";
2022-01-03 14:06:30 +01:00
version = "1.9.0";
2021-02-13 15:16:35 +01:00
src = fetchFromGitHub {
owner = "python-metar";
repo = "python-metar";
rev = "v${version}";
2022-01-03 14:06:30 +01:00
sha256 = "sha256-pl2NWRfFCYyM2qvBt4Ic3wgbGkYZvAO6pX2Set8zYW8=";
2021-02-13 15:16:35 +01:00
};
patches = [
(fetchpatch {
# Fix flapping test; https://github.com/python-metar/python-metar/issues/161
url = "https://github.com/python-metar/python-metar/commit/716fa76682e6c2936643d1cf62e3d302ef29aedd.patch";
hash = "sha256-y82NN+KDryOiH+eG+2ycXCO9lqQLsah4+YpGn6lM2As=";
})
];
2021-02-13 15:16:35 +01:00
checkInputs = [ pytestCheckHook ];
disabledTests = [
# https://github.com/python-metar/python-metar/issues/165
"test_033_parseTime_auto_month"
];
2021-02-13 15:16:35 +01:00
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 ];
};
}