1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "aqipy-atmotech"; 11 version = "0.1.5"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "atmotube"; 18 repo = "aqipy"; 19 rev = version; 20 hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace "'pytest-runner'" "" 28 ''; 29 30 pythonImportsCheck = [ "aqipy" ]; 31 32 meta = with lib; { 33 description = "Library for AQI calculation"; 34 homepage = "https://github.com/atmotube/aqipy"; 35 license = licenses.asl20; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}