1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, requests 7, testfixtures 8}: 9 10buildPythonPackage rec { 11 pname = "openerz-api"; 12 version = "0.2.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "misialq"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-6q0mKWyTTlNJ/DCeAsck1meM5dQovYBcV2EqmjlABvc="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 testfixtures 31 ]; 32 33 pythonImportsCheck = [ 34 "openerz_api" 35 ]; 36 37 disabledTests = [ 38 # Assertion issue 39 "test_sensor_make_api_request" 40 ]; 41 42 meta = with lib; { 43 description = "Python module to interact with the OpenERZ API"; 44 homepage = "https://github.com/misialq/openerz-api"; 45 changelog = "https://github.com/misialq/openerz-api/releases/tag/v${version}"; 46 license = with licenses; [ mit ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}