Unverified Commit bbf69abd authored by Tom Hunze's avatar Tom Hunze
Browse files

python313Packages.typical: drop

This package is broken [1] and has been archived upstream [2].

[1] https://hydra.nixos.org/build/314267018
[2] https://github.com/seandstewart/typical
parent 06604ab3
Loading
Loading
Loading
Loading
+0 −82
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fastjsonschema,
  fetchFromGitHub,
  future-typing,
  inflection,
  orjson,
  pandas,
  pendulum,
  poetry-core,
  pydantic,
  pytestCheckHook,
  pythonOlder,
  sqlalchemy,
  ujson,
}:

buildPythonPackage rec {
  pname = "typical";
  version = "2.9.0";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "seandstewart";
    repo = "typical";
    tag = "v${version}";
    hash = "sha256-RS4hJ7NufClroRPRO3EyHwDaMgg0s0F7D/mqcBr8O18=";
  };

  pythonRelaxDeps = [ "pendulum" ];

  build-system = [ poetry-core ];

  dependencies = [
    fastjsonschema
    future-typing
    inflection
    orjson
    pendulum
    ujson
  ];

  nativeCheckInputs = [
    pandas
    pydantic
    pytestCheckHook
    sqlalchemy
  ];

  disabledTests = [
    # ConstraintValueError: Given value <{'key...
    "test_tagged_union_validate"
    # TypeError: 'NoneType' object cannot be interpreted as an integer
    "test_ujson"
    # Failed: DID NOT RAISE <class 'ValueError'>
    "test_invalid_path"
    # AssertionError
    "test_primitive"
    "test_tojson"
    "test_transmute_simple"
  ];

  disabledTestPaths = [
    # We don't care about benchmarks
    "benchmark/"
    # Tests are failing on Hydra
    "tests/mypy/test_mypy.py"
  ];

  pythonImportsCheck = [ "typic" ];

  meta = with lib; {
    description = "Python library for runtime analysis, inference and validation of Python types";
    homepage = "https://python-typical.org/";
    changelog = "https://github.com/seandstewart/typical/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ kfollesdal ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -480,6 +480,7 @@ mapAliases {
  typed-ast = throw "typed-ast was removed because it went end of life in July 2023"; # added 2025-05-24
  types-typed-ast = throw "types-typed-ast was removed because so was typed-ast"; # added 2025-05-24
  typesystem = throw "'typesystem' has been removed as it was broken, unmaintained, and archived upstream"; # Added 2025-11-27
  typical = throw "'typical' has been removed as it was broken and archived upstream"; # Added 2025-11-27
  uamqp = throw "'uamqp' has been removed because it is broken and unmaintained."; # added 2025-06-11
  ufoLib2 = throw "'ufoLib2' has been renamed to/replaced by 'ufolib2'"; # Converted to throw 2025-10-29
  unicode-slugify = throw "'unicode-slugify' has been removed becaues it was broken and unmaintained. Consider using 'python-slugify' instead."; # added 2025-10-05
+0 −2
Original line number Diff line number Diff line
@@ -19715,8 +19715,6 @@ self: super: with self; {
  typeshed-client = callPackage ../development/python-modules/typeshed-client { };
  typical = callPackage ../development/python-modules/typical { };
  typing = null;
  typing-extensions = callPackage ../development/python-modules/typing-extensions { };