1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 requests, 7}: 8 9buildPythonPackage rec { 10 pname = "oasatelematics"; 11 version = "0.3"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "panosmz"; 18 repo = "oasatelematics"; 19 rev = "v${version}"; 20 hash = "sha256-3O7XbNVj1S3ZwheklEhm0ivw16Tj7drML/xYC9383Kg="; 21 }; 22 23 propagatedBuildInputs = [ requests ]; 24 25 # Module has no tests 26 doCheck = false; 27 28 pythonImportsCheck = [ "oasatelematics" ]; 29 30 meta = with lib; { 31 description = "Python wrapper for the OASA Telematics API"; 32 homepage = "https://github.com/panosmz/oasatelematics"; 33 license = licenses.gpl3Only; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}