Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 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 = pname; 19 rev = "v${version}"; 20 hash = "sha256-3O7XbNVj1S3ZwheklEhm0ivw16Tj7drML/xYC9383Kg="; 21 }; 22 23 propagatedBuildInputs = [ 24 requests 25 ]; 26 27 # Module has no tests 28 doCheck = false; 29 30 pythonImportsCheck = [ 31 "oasatelematics" 32 ]; 33 34 meta = with lib; { 35 description = "Python wrapper for the OASA Telematics API"; 36 homepage = "https://github.com/panosmz/oasatelematics"; 37 license = licenses.gpl3Only; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}