2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
packaging,
|
|
|
|
pluggy,
|
|
|
|
py,
|
|
|
|
six,
|
|
|
|
virtualenv,
|
|
|
|
setuptools-scm,
|
|
|
|
toml,
|
|
|
|
tomli,
|
|
|
|
filelock,
|
|
|
|
hatchling,
|
|
|
|
hatch-vcs,
|
|
|
|
platformdirs,
|
|
|
|
pyproject-api,
|
|
|
|
colorama,
|
|
|
|
chardet,
|
|
|
|
cachetools,
|
|
|
|
testers,
|
|
|
|
tox,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tox";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "4.15.1";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tox-dev";
|
|
|
|
repo = "tox";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-BLOxyvcC3ngQDVSMaw/NfLVbFkIHbTmhUOOVBqlcK/Q=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "packaging>=22" "packaging"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachetools
|
|
|
|
chardet
|
|
|
|
colorama
|
|
|
|
filelock
|
|
|
|
packaging
|
|
|
|
platformdirs
|
|
|
|
pluggy
|
|
|
|
py
|
|
|
|
pyproject-api
|
|
|
|
six
|
|
|
|
toml
|
|
|
|
virtualenv
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
doCheck = false; # infinite recursion via devpi-client
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion { package = tox; };
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/tox-dev/tox/releases/tag/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Generic virtualenv management and test command line tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tox";
|
2023-01-20 10:41:00 +00:00
|
|
|
homepage = "https://github.com/tox-dev/tox";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|