Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 pyyaml, 8 posthog, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "ploomber-core"; 14 version = "0.2.25"; 15 16 pyproject = true; 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "ploomber"; 21 repo = "core"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-QUEnWFhf42ppoXoz3H/2SHtoPZOi6lbopsrbmEAk+1U="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 pyyaml 30 posthog 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 disabledTests = [ 36 "telemetry" # requires network 37 "exceptions" # requires stderr capture 38 ]; 39 40 pythonImportsCheck = [ "ploomber_core" ]; 41 42 meta = with lib; { 43 description = "Core module shared across Ploomber projects"; 44 homepage = "https://github.com/ploomber/core"; 45 changelog = "https://github.com/ploomber/core/blob/${version}/CHANGELOG.md"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ pacien ]; 48 }; 49}