mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
38 lines
759 B
Nix
38 lines
759 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hypothesis
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chardet";
|
|
version = "5.0.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-A2jfK/14tfwgVyu06bt/tT4sCU9grpmTM56GcdCvuKo=";
|
|
};
|
|
|
|
checkInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# flaky; https://github.com/chardet/chardet/issues/256
|
|
"test_detect_all_and_detect_one_should_agree"
|
|
];
|
|
|
|
pythonImportsCheck = [ "chardet" ];
|
|
|
|
meta = with lib; {
|
|
description = "Universal encoding detector";
|
|
homepage = "https://github.com/chardet/chardet";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
};
|
|
}
|