at 24.05-pre 898 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 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "tetienne"; 21 repo = "somfy-open-api"; 22 rev = "v${version}"; 23 sha256 = "0wpjwjmywfyqgwvfa5kwcjpaljc32qa088kk88nl9nqdvc31mzhv"; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ 31 requests 32 requests-oauthlib 33 ]; 34 35 nativeCheckInputs = [ 36 httpretty 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "pymfy" 42 ]; 43 44 meta = with lib; { 45 description = "Python client for the Somfy Open API"; 46 homepage = "https://github.com/tetienne/somfy-open-api"; 47 license = with licenses; [ gpl3Only ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}