at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 python-dateutil, 8 requests, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "srpenergy"; 14 version = "1.3.7"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "lamoreauxlab"; 21 repo = "srpenergy-api-client-python"; 22 tag = version; 23 hash = "sha256-bdBF5y9hRj4rceUD5qjHOM9TIaHGElJ36YjWCJgCzX8="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace-fail "setuptools==" "setuptools>=" 29 ''; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 python-dateutil 35 requests 36 ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "srpenergy.client" ]; 41 42 meta = with lib; { 43 changelog = "https://github.com/lamoreauxlab/srpenergy-api-client-python/releases/tag/${version}"; 44 description = "Unofficial Python module for interacting with Srp Energy data"; 45 homepage = "https://github.com/lamoreauxlab/srpenergy-api-client-python"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ dotlambda ]; 48 }; 49}