Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, geopy 6, requests 7, urllib3 8}: 9 10buildPythonPackage rec { 11 pname = "aemet-opendata"; 12 version = "0.2.2"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "Noltari"; 18 repo = "AEMET-OpenData"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-3f3hvui00oItu6t9rKecoCquqsD1Eeqz+SEsLBqGt48="; 21 }; 22 23 propagatedBuildInputs = [ 24 geopy 25 requests 26 urllib3 27 ]; 28 29 # no tests implemented 30 doCheck = false; 31 32 pythonImportsCheck = [ "aemet_opendata.interface" ]; 33 34 meta = with lib; { 35 description = "Python client for AEMET OpenData Rest API"; 36 homepage = "https://github.com/Noltari/AEMET-OpenData"; 37 license = licenses.gpl2Only; 38 maintainers = with maintainers; [ dotlambda ]; 39 }; 40}