nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 70 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 packaging, 7 pluggy, 8 virtualenv, 9 tomli, 10 filelock, 11 hatchling, 12 hatch-vcs, 13 platformdirs, 14 pyproject-api, 15 colorama, 16 chardet, 17 cachetools, 18 testers, 19 tox, 20 typing-extensions, 21}: 22 23buildPythonPackage rec { 24 pname = "tox"; 25 version = "4.34.1"; 26 pyproject = true; 27 28 src = fetchFromGitHub { 29 owner = "tox-dev"; 30 repo = "tox"; 31 tag = version; 32 hash = "sha256-pfftPTY7n47tCQFGCZRwsq0vCWZUeukFZO99gj5mTeo="; 33 }; 34 35 build-system = [ 36 hatchling 37 hatch-vcs 38 ]; 39 40 dependencies = [ 41 cachetools 42 chardet 43 colorama 44 filelock 45 packaging 46 platformdirs 47 pluggy 48 pyproject-api 49 virtualenv 50 ] 51 ++ lib.optionals (pythonOlder "3.11") [ 52 tomli 53 typing-extensions 54 ]; 55 56 doCheck = false; # infinite recursion via devpi-client 57 58 passthru.tests = { 59 version = testers.testVersion { package = tox; }; 60 }; 61 62 meta = { 63 changelog = "https://github.com/tox-dev/tox/releases/tag/${src.tag}"; 64 description = "Generic virtualenv management and test command line tool"; 65 mainProgram = "tox"; 66 homepage = "https://github.com/tox-dev/tox"; 67 license = lib.licenses.mit; 68 maintainers = [ ]; 69 }; 70}