mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
dda15a6225
Diff: https://github.com/python-metar/python-metar/compare/refs/tags/v1.10.0...v1.11.0 Changelog: https://github.com/python-metar/python-metar/blob/v1.11.0/CHANGELOG.md
38 lines
823 B
Nix
38 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 ];
|
|
};
|
|
}
|