Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "airportsdata"; 12 version = "20251008"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchFromGitHub { 18 owner = "mborsetti"; 19 repo = "airportsdata"; 20 tag = "v${version}"; 21 hash = "sha256-9Y4W5yhICiB5Py36RoVTe7obVtKUaUf0du2i1AihFdE="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "airportsdata" ]; 29 30 meta = { 31 description = "Extensive database of location and timezone data for nearly every operational airport"; 32 homepage = "https://github.com/mborsetti/airportsdata/"; 33 changelog = "https://github.com/mborsetti/airportsdata/releases/tag/${src.tag}"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ danieldk ]; 36 }; 37}