1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mock, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 responses, 10 setuptools, 11 urllib3, 12}: 13 14buildPythonPackage rec { 15 pname = "tank-utility"; 16 version = "1.5.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "krismolendyke"; 23 repo = "tank-utility"; 24 tag = version; 25 hash = "sha256-h9y3X+FSzSFt+bd/chz+x0nocHaKZ8DvreMxAYMs8/E="; 26 }; 27 28 nativeBuildInputs = [ setuptools ]; 29 30 propagatedBuildInputs = [ 31 requests 32 urllib3 33 ]; 34 35 nativeCheckInputs = [ 36 mock 37 pytestCheckHook 38 responses 39 ]; 40 41 pythonImportsCheck = [ "tank_utility" ]; 42 43 meta = with lib; { 44 description = "Library for the Tank Utility API"; 45 mainProgram = "tank-utility"; 46 homepage = "https://github.com/krismolendyke/tank-utility"; 47 changelog = "https://github.com/krismolendyke/tank-utility/blob/${version}/HISTORY.rst"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}