blob: 2f6c3533dd77ed025358253d1700c6b173095637 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "charset-normalizer";
version = "3.3.2";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "Ousret";
repo = "charset_normalizer";
rev = "refs/tags/${version}";
hash = "sha256-T9lnlS05Ogb2eLLHYWFnjBtRaB/OBqGWHQ/2WLunrNY=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=charset_normalizer --cov-report=term-missing" ""
'';
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"charset_normalizer"
];
passthru.tests = { inherit aiohttp requests; };
meta = with lib; {
description = "Python module for encoding and language detection";
homepage = "https://charset-normalizer.readthedocs.io/";
changelog = "https://github.com/Ousret/charset_normalizer/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|