biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / typical / default.nix
blob357bb8d1094a513c272e26a943741a96e9394475
2   lib,
3   buildPythonPackage,
4   fastjsonschema,
5   fetchFromGitHub,
6   future-typing,
7   inflection,
8   orjson,
9   pandas,
10   pendulum,
11   poetry-core,
12   pydantic,
13   pytestCheckHook,
14   pythonOlder,
15   sqlalchemy,
16   ujson,
19 buildPythonPackage rec {
20   pname = "typical";
21   version = "2.8.1";
22   pyproject = true;
24   disabled = pythonOlder "3.10";
26   src = fetchFromGitHub {
27     owner = "seandstewart";
28     repo = "typical";
29     rev = "refs/tags/v${version}";
30     hash = "sha256-2t9Jhdy9NmYBNzdtjjgUnoK2RDEUsAvDkYMcBRzEcmI=";
31   };
33   pythonRelaxDeps = [ "pendulum" ];
35   build-system = [ poetry-core ];
38   dependencies = [
39     fastjsonschema
40     future-typing
41     inflection
42     orjson
43     pendulum
44     ujson
45   ];
47   nativeCheckInputs = [
48     pandas
49     pydantic
50     pytestCheckHook
51     sqlalchemy
52   ];
54   disabledTests = [
55     # ConstraintValueError: Given value <{'key...
56     "test_tagged_union_validate"
57     # TypeError: 'NoneType' object cannot be interpreted as an integer
58     "test_ujson"
59     # Failed: DID NOT RAISE <class 'ValueError'>
60     "test_invalid_path"
61     # AssertionError
62     "test_primitive"
63     "test_tojson"
64     "test_transmute_simple"
65   ];
67   disabledTestPaths = [
68     # We don't care about benchmarks
69     "benchmark/"
70     # Tests are failing on Hydra
71     "tests/mypy/test_mypy.py"
72   ];
74   pythonImportsCheck = [ "typic" ];
76   meta = with lib; {
77     description = "Python library for runtime analysis, inference and validation of Python types";
78     homepage = "https://python-typical.org/";
79     changelog = "https://github.com/seandstewart/typical/releases/tag/v${version}";
80     license = licenses.mit;
81     maintainers = with maintainers; [ kfollesdal ];
82   };