python3Packages.traitlets: refactor

This commit is contained in:
Martin Weinelt
2025-11-25 12:35:47 -08:00
committed by Robert Schütz
parent 4040c029a7
commit 7572f8c185
@@ -1,8 +1,7 @@
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
fetchFromGitHub,
pythonAtLeast,
# build-system
@@ -17,16 +16,16 @@
buildPythonPackage rec {
pname = "traitlets";
version = "5.14.3";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ntBXnTUCyUtLNzKsEgN1zalvkjEUUihH3ks7uYuWtrc=";
src = fetchFromGitHub {
owner = "ipython";
repo = "traitlets";
tag = "v${version}";
hash = "sha256-lWtgzXW1ffzl1jkFaq99X0dU8agulUMHaghsYKX+8Dk=";
};
nativeBuildInputs = [ hatchling ];
build-system = [ hatchling ];
nativeCheckInputs = [
argcomplete
@@ -37,7 +36,8 @@ buildPythonPackage rec {
disabledTests = [
# https://github.com/ipython/traitlets/issues/902
"test_complete_custom_completers"
] ++ lib.optionals (pythonAtLeast "3.14") [
]
++ lib.optionals (pythonAtLeast "3.14") [
# https://github.com/ipython/traitlets/issues/925
"test_complete_simple_app"
"test_complete_subcommands_subapp1"