Files
nixpkgs/pkgs/development/python-modules/airportsdata/default.nix

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

38 lines
887 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "airportsdata";
version = "20250909.5";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "mborsetti";
repo = "airportsdata";
tag = "v${version}";
hash = "sha256-c6OFzYI6YOIZvpEsYbzLqT6q0CYNczRcKLb+6cKy2fQ=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "airportsdata" ];
meta = {
description = "Extensive database of location and timezone data for nearly every operational airport";
homepage = "https://github.com/mborsetti/airportsdata/";
changelog = "https://github.com/mborsetti/airportsdata/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ danieldk ];
};
}