mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
packaging,
|
|
pluggy,
|
|
py,
|
|
six,
|
|
virtualenv,
|
|
toml,
|
|
tomli,
|
|
filelock,
|
|
hatchling,
|
|
hatch-vcs,
|
|
platformdirs,
|
|
pyproject-api,
|
|
colorama,
|
|
chardet,
|
|
cachetools,
|
|
testers,
|
|
tox,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tox";
|
|
version = "4.18.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tox-dev";
|
|
repo = "tox";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-p3pghGQwCBIvkFI6pYuzoGSwAwfaz4vKpteh8nhXOhE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "packaging>=22" "packaging"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cachetools
|
|
chardet
|
|
colorama
|
|
filelock
|
|
packaging
|
|
platformdirs
|
|
pluggy
|
|
py
|
|
pyproject-api
|
|
six
|
|
toml
|
|
virtualenv
|
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
|
|
|
doCheck = false; # infinite recursion via devpi-client
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion { package = tox; };
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/tox-dev/tox/releases/tag/${version}";
|
|
description = "Generic virtualenv management and test command line tool";
|
|
mainProgram = "tox";
|
|
homepage = "https://github.com/tox-dev/tox";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|