depot/third_party/nixpkgs/pkgs/development/python-modules/metar/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

37 lines
823 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "metar";
version = "1.11.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-metar";
repo = "python-metar";
rev = "refs/tags/v${version}";
hash = "sha256-ZDjlXcSTUcSP7oRdhzLpXf/fLUA7Nkc6nj2I6vovbHg=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"metar"
];
meta = with lib; {
description = "Python parser for coded METAR weather reports";
homepage = "https://github.com/python-metar/python-metar";
changelog = "https://github.com/python-metar/python-metar/blob/v${version}/CHANGELOG.md";
license = with licenses; [ bsd1 ];
maintainers = with maintainers; [ fab ];
};
}