blob: c05b375424173d07f3891932d788db3bea9dab31 (
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
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build-system
, poetry-core
# dependencies
, wcwidth
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ftfy";
version = "6.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-XkIUPHAl75eUTKJhnWthsGGfxmVPmHcdOehiwUJMdcA=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
wcwidth
];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export PATH=$out/bin:$PATH
'';
disabledTestPaths = [
# Calls poetry and fails to match output exactly
"tests/test_cli.py"
];
meta = with lib; {
description = "Given Unicode text, make its representation consistent and possibly less broken";
mainProgram = "ftfy";
homepage = "https://github.com/LuminosoInsight/python-ftfy";
license = licenses.mit;
maintainers = with maintainers; [ aborsu ];
};
}
|