at 25.11-pre 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 packaging, 7 pluggy, 8 py, 9 six, 10 virtualenv, 11 toml, 12 tomli, 13 filelock, 14 hatchling, 15 hatch-vcs, 16 platformdirs, 17 pyproject-api, 18 colorama, 19 chardet, 20 cachetools, 21 testers, 22 tox, 23}: 24 25buildPythonPackage rec { 26 pname = "tox"; 27 version = "4.23.2"; 28 format = "pyproject"; 29 30 src = fetchFromGitHub { 31 owner = "tox-dev"; 32 repo = "tox"; 33 tag = version; 34 hash = "sha256-rjz+CSGuGlQy9oneISJJo8doQf7abE9gNVpAnhD8Os8="; 35 }; 36 37 postPatch = '' 38 substituteInPlace pyproject.toml \ 39 --replace "packaging>=22" "packaging" 40 ''; 41 42 nativeBuildInputs = [ 43 hatchling 44 hatch-vcs 45 ]; 46 47 propagatedBuildInputs = [ 48 cachetools 49 chardet 50 colorama 51 filelock 52 packaging 53 platformdirs 54 pluggy 55 py 56 pyproject-api 57 six 58 toml 59 virtualenv 60 ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; 61 62 doCheck = false; # infinite recursion via devpi-client 63 64 passthru.tests = { 65 version = testers.testVersion { package = tox; }; 66 }; 67 68 meta = with lib; { 69 changelog = "https://github.com/tox-dev/tox/releases/tag/${src.tag}"; 70 description = "Generic virtualenv management and test command line tool"; 71 mainProgram = "tox"; 72 homepage = "https://github.com/tox-dev/tox"; 73 license = licenses.mit; 74 maintainers = [ ]; 75 }; 76}