blob: 37f91db5a0071175212f1183f1c3bcf1240087dc (
plain)
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
|
{
buildPythonPackage,
chardet,
fetchPypi,
flit-core,
lib,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "encutils";
version = "1.0.0";
pyproject = true;
# pyproject.toml on GitHub uses coherent.build as build-system
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-OOylrxjOur2L5DwX8UydP7uoPMX3rI46schuJMSyuRo=";
};
build-system = [ flit-core ];
dependencies = [
chardet
];
pythonImportsCheck = [ "encutils" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Collection of helper functions to detect encodings of text files";
homepage = "https://github.com/coherent-oss/encutils";
license = lib.licenses.lgpl3Plus;
maintainers = [ lib.maintainers.dotlambda ];
};
})
|