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