Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 agate, 7 colorama, 8 isodate, 9 jinja2, 10 jsonschema, 11 mashumaro, 12 pathspec, 13 protobuf, 14 python-dateutil, 15 requests, 16 typing-extensions, 17 pytest-mock, 18 pytest-xdist, 19 pytestCheckHook, 20}: 21 22buildPythonPackage rec { 23 pname = "dbt-common"; 24 version = "1.3.0"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "dbt-labs"; 29 repo = "dbt-common"; 30 rev = "refs/tags/v${version}"; 31 hash = "sha256-3UjwQy257ks21fQV0uZNKu5EsuzjlIAEcVtRWkR9x/4="; 32 }; 33 34 build-system = [ hatchling ]; 35 36 pythonRelaxDeps = [ "agate" ]; 37 38 dependencies = [ 39 agate 40 colorama 41 isodate 42 jinja2 43 jsonschema 44 mashumaro 45 pathspec 46 protobuf 47 python-dateutil 48 requests 49 typing-extensions 50 ] ++ mashumaro.optional-dependencies.msgpack; 51 52 pythonImportsCheck = [ "dbt_common" ]; 53 54 nativeCheckInputs = [ 55 pytest-mock 56 pytest-xdist 57 pytestCheckHook 58 ]; 59 60 meta = { 61 description = "Shared common utilities for dbt-core and adapter implementations use"; 62 homepage = "https://github.com/dbt-labs/dbt-common"; 63 changelog = "https://github.com/dbt-labs/dbt-common/blob/${src.rev}/CHANGELOG.md"; 64 license = lib.licenses.asl20; 65 maintainers = [ ]; 66 }; 67}