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