Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, fetchFromGitHub, hatch-vcs, hatchling, hypothesis, pytest-timeout, pytest-xdist, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "chardet"; version = "6.0.0.post1"; pyproject = true;
src = fetchFromGitHub { owner = "chardet"; repo = "chardet"; tag = finalAttrs.version; hash = "sha256-7G998L4VRvNiGBBNAxPJB27lI2DtL1lTteowUH2NBDk="; };
build-system = [ hatch-vcs hatchling ];
nativeCheckInputs = [ hypothesis pytest-timeout pytest-xdist pytestCheckHook ];
disabledTests = [ # flaky; https://github.com/chardet/chardet/issues/256 "test_detect_all_and_detect_one_should_agree" ];
pythonImportsCheck = [ "chardet" ];
meta = { changelog = "https://github.com/chardet/chardet/releases/tag/${finalAttrs.src.tag}"; description = "Universal encoding detector"; mainProgram = "chardetect"; homepage = "https://github.com/chardet/chardet"; license = lib.licenses.lgpl21Plus; maintainers = [ ]; };})