at 22.05-pre 879 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, httpretty 5, poetry-core 6, pytestCheckHook 7, pythonOlder 8, requests 9, requests_oauthlib 10}: 11 12buildPythonPackage rec { 13 pname = "pymfy"; 14 version = "0.11.0"; 15 format = "pyproject"; 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "tetienne"; 20 repo = "somfy-open-api"; 21 rev = "v${version}"; 22 sha256 = "0wpjwjmywfyqgwvfa5kwcjpaljc32qa088kk88nl9nqdvc31mzhv"; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 propagatedBuildInputs = [ 28 requests 29 requests_oauthlib 30 ]; 31 32 checkInputs = [ 33 httpretty 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "pymfy" ]; 38 39 meta = with lib; { 40 description = "Python client for the Somfy Open API"; 41 homepage = "https://github.com/tetienne/somfy-open-api"; 42 license = with licenses; [ gpl3Only ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}