diff --git a/pkgs/development/python-modules/basedmypy/default.nix b/pkgs/development/python-modules/basedmypy/default.nix deleted file mode 100644 index 6946de3a51c2..000000000000 --- a/pkgs/development/python-modules/basedmypy/default.nix +++ /dev/null @@ -1,143 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - nix-update-script, - pythonAtLeast, - pythonOlder, - stdenv, - - # build-system - setuptools, - types-psutil, - types-setuptools, - - # propagates - basedtyping, - mypy-extensions, - tomli, - typing-extensions, - - # optionals - lxml, - psutil, - - # tests - attrs, - filelock, - pytest-xdist, - pytestCheckHook, -}: - -buildPythonPackage (finalAttrs: { - pname = "basedmypy"; - version = "2.10.1"; - pyproject = true; - - src = fetchFromGitHub { - owner = "KotlinIsland"; - repo = "basedmypy"; - tag = "v${finalAttrs.version}"; - hash = "sha256-IzRKOReSgio5S5PG8iD9VQF9R1GEqBAIDeeCtq+ZVXg="; - }; - - postPatch = '' - substituteInPlace \ - pyproject.toml \ - --replace-warn 'types-setuptools==' 'types-setuptools>=' - '' - # __closed__ returns None at runtime (not a bool) - + '' - substituteInPlace test-data/unit/lib-stub/typing_extensions.pyi \ - --replace-fail "__closed__: bool" "__closed__: None" - ''; - - build-system = [ - basedtyping - mypy-extensions - types-psutil - types-setuptools - typing-extensions - ] - ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - - dependencies = [ - basedtyping - mypy-extensions - typing-extensions - ] - ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - - optional-dependencies = { - dmypy = [ psutil ]; - reports = [ lxml ]; - }; - - # Compile mypy with mypyc, which makes mypy about 4 times faster. The compiled - # version is also the default in the wheels on Pypi that include binaries. - # is64bit: unfortunately the build would exhaust all possible memory on i686-linux. - env.MYPY_USE_MYPYC = stdenv.buildPlatform.is64bit; - - # when testing reduce optimisation level to reduce build time by 20% - env.MYPYC_OPT_LEVEL = 1; - - pythonImportsCheck = [ - "mypy" - "mypy.api" - "mypy.fastparse" - "mypy.types" - "mypyc" - "mypyc.analysis" - ] - ++ lib.optionals (!stdenv.hostPlatform.isi686) [ - # ImportError: cannot import name 'map_instance_to_supertype' from partially initialized module 'mypy.maptype' (most likely due to a circular import) - "mypy.report" - ]; - - nativeCheckInputs = [ - attrs - filelock - pytest-xdist - pytestCheckHook - setuptools - tomli - ] - ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; - - disabledTests = lib.optionals (pythonAtLeast "3.12") [ - # cannot find distutils, and distutils cannot find types - # https://github.com/NixOS/nixpkgs/pull/364818#discussion_r1895715378 - "test_c_unit_test" - ]; - - disabledTestPaths = [ - # fails to find typing_extensions - "mypy/test/testcmdline.py" - "mypy/test/testdaemon.py" - # fails to find setuptools - "mypyc/test/test_commandline.py" - # fails to find hatchling - "mypy/test/testpep561.py" - ] - ++ lib.optionals stdenv.hostPlatform.isi686 [ - # https://github.com/python/mypy/issues/15221 - "mypyc/test/test_run.py" - ] - ++ - lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64 && pythonOlder "3.13") - [ - # mypy/test/testsolve.py::SolveSuite::test_simple_constraints_with_dynamic_type: [Any | A] != [Any] - "mypy/test/testsolve.py" - ]; - - passthru.updateScript = nix-update-script { }; - - meta = { - description = "Based Python static type checker with baseline, sane default settings and based typing features"; - homepage = "https://kotlinisland.github.io/basedmypy/"; - changelog = "https://github.com/KotlinIsland/basedmypy/blob/${finalAttrs.src.tag}/CHANGELOG.md"; - license = lib.licenses.mit; - mainProgram = "mypy"; - maintainers = with lib.maintainers; [ PerchunPak ]; - }; -}) diff --git a/pkgs/development/python-modules/basedtyping/default.nix b/pkgs/development/python-modules/basedtyping/default.nix deleted file mode 100644 index cec4ffae28e0..000000000000 --- a/pkgs/development/python-modules/basedtyping/default.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - nix-update-script, - - # build-system - poetry-core, - - # propagates - typing-extensions, - - # tests - pytestCheckHook, -}: - -buildPythonPackage (finalAttrs: { - pname = "basedtyping"; - version = "0.1.10"; - pyproject = true; - - src = fetchFromGitHub { - owner = "KotlinIsland"; - repo = "basedtyping"; - tag = "v${finalAttrs.version}"; - hash = "sha256-IpIMO75jqJDzDgRPVEi6g7AprGeBeKbVH99XPDYUzTM="; - }; - - build-system = [ - poetry-core - ]; - - dependencies = [ - typing-extensions - ]; - - pythonImportsCheck = [ - "basedtyping" - "basedtyping.runtime_only" - "basedtyping.transformer" - ]; - - nativeCheckInputs = [ - pytestCheckHook - ]; - - passthru.updateScript = nix-update-script { }; - - meta = { - description = "Utilities for basedmypy"; - homepage = "https://github.com/KotlinIsland/basedtyping"; - changelog = "https://github.com/KotlinIsland/basedtyping/releases/tag/${finalAttrs.src.tag}"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ PerchunPak ]; - }; -}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 31577f1ae810..3a36577c6595 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -353,6 +353,7 @@ mapAliases { banking = saldo; # Added 2025-08-29 barrier = throw "'barrier' has been removed as it is unmaintained. Consider 'deskflow' or 'input-leap' instead."; # Added 2025-09-29 base16-builder = throw "'base16-builder' has been removed due to being unmaintained"; # Added 2025-06-03 + basedmypy = throw "basedmypy has been deprecated by upstream. Use instead 'basedpyright' or 'ty'"; # added 2026-02-03 baserow = throw "baserow has been removed, due to lack of maintenance"; # Added 2025-08-02 bazel_5 = throw "bazel_5 has been removed as it is EOL"; # Added 2025-08-09 bazel_6 = throw "bazel_6 has been removed as it will be EOL by the release of Nixpkgs 25.11"; # Added 2025-08-19 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 05bed0786b21..2a76cec8107c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6231,8 +6231,6 @@ with pkgs; mypy-protobuf = with python3Packages; toPythonApplication mypy-protobuf; - basedmypy = with python3Packages; toPythonApplication basedmypy; - ### DEVELOPMENT / LIBRARIES abseil-cpp_202103 = callPackage ../development/libraries/abseil-cpp/202103.nix { }; diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 50e15531d8cc..ce29d1a49961 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -79,6 +79,8 @@ mapAliases { Babel = throw "'Babel' has been renamed to/replaced by 'babel'"; # Converted to throw 2025-10-29 backports-functools-lru-cache = throw "'backports-functools-lru-cache' has been removed from nixpkgs as it was not longer used in python2"; # Added 2026-01-14 backports_shutil_get_terminal_size = throw "'backports_shutil_get_terminal_size' has been renamed to/replaced by 'backports-shutil-get-terminal-size'"; # Converted to throw 2025-10-29 + basedmypy = throw "basedmypy has been deprecated by upstream. Use instead 'basedpyright' or 'ty'"; # added 2026-02-03 + basedtyping = throw "basedtyping has been deprecated by upstream."; # added 2026-02-03 basewood-av = throw "'basewood-av' has been removed due to being archived upstream and unused"; # added 2025-11-26 bash_kernel = throw "'bash_kernel' has been renamed to/replaced by 'bash-kernel'"; # Converted to throw 2025-10-29 beancount_docverif = throw "'beancount_docverif' has been renamed to/replaced by 'beancount-docverif'"; # Converted to throw 2025-10-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4d7e577fd5ae..fa0eb2a54939 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1806,10 +1806,6 @@ self: super: with self; { base64io = callPackage ../development/python-modules/base64io { }; - basedmypy = callPackage ../development/python-modules/basedmypy { }; - - basedtyping = callPackage ../development/python-modules/basedtyping { }; - baseline = callPackage ../development/python-modules/baseline { }; baselines = callPackage ../development/python-modules/baselines { };