1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 requests, 7 pytestCheckHook, 8 requests-mock, 9}: 10 11buildPythonPackage rec { 12 pname = "nsw-fuel-api-client"; 13 version = "1.1.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "nickw444"; 18 repo = "nsw-fuel-api-client"; 19 tag = version; 20 hash = "sha256-3nkBDLmFOfYLvG5fi2subA9zxb51c7zWlhT4GaCQo9I="; 21 }; 22 23 build-system = [ 24 setuptools 25 ]; 26 27 dependencies = [ 28 requests 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 requests-mock 34 ]; 35 36 pythonImportsCheck = [ 37 "nsw_fuel" 38 ]; 39 40 pytestFlags = [ 41 "nsw_fuel_tests/unit.py" 42 ]; 43 44 meta = { 45 description = "API Client for NSW Government Fuel Check application"; 46 homepage = "https://github.com/nickw444/nsw-fuel-api-client"; 47 changelog = "https://github.com/nickw444/nsw-fuel-api-client/releases/tag/${version}"; 48 license = lib.licenses.mit; 49 maintainers = [ lib.maintainers.jamiemagee ]; 50 }; 51}