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.1.0"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "misialq"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "10kxsmaz2rn26jijaxmdmhx8vjdz8hrhlrvd39gc8yvqbjwhi3nw"; 20 }; 21 22 propagatedBuildInputs = [ 23 requests 24 ]; 25 26 checkInputs = [ 27 pytestCheckHook 28 testfixtures 29 ]; 30 31 pythonImportsCheck = [ "openerz_api" ]; 32 33 meta = with lib; { 34 description = "Python module to interact with the OpenERZ API"; 35 homepage = "https://github.com/misialq/openerz-api"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}