1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, requests 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pysuez"; 11 version = "0.2.0"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "ooii"; 18 repo = "pySuez"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-Xgd0E/oFO2yyytBjuwr1vDJfKWC0Iw8P6GStCuCni/g="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 propagatedBuildInputs = [ 28 requests 29 ]; 30 31 # Module has no tests 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "pysuez" 36 ]; 37 38 meta = with lib; { 39 description = "Module to get water consumption data from Suez"; 40 homepage = "https://github.com/ooii/pySuez"; 41 changelog = "https://github.com/ooii/pySuez/releases/tag/v${version}"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}