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