1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pythonOlder,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "ebcdic";
12 version = "1.1.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "roskakori";
19 repo = "CodecMapper";
20 tag = "v${version}";
21 hash = "sha256-gRyZychcF3wYocgVbdF255cSuZh/cl8X0WH/Iplkmxc=";
22 };
23
24 sourceRoot = "${src.name}/${pname}";
25
26 nativeBuildInputs = [ setuptools ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 disabledTests = [
31 # https://github.com/roskakori/CodecMapper/issues/18
32 "test_can_lookup_ebcdic_codec"
33 "test_can_recode_euro_sign"
34 "test_has_codecs"
35 "test_has_ignored_codec_names"
36 ];
37
38 pythonImportsCheck = [ "ebcdic" ];
39
40 meta = with lib; {
41 description = "Additional EBCDIC codecs";
42 homepage = "https://github.com/roskakori/CodecMapper/tree/master/ebcdic";
43 license = licenses.bsd2;
44 maintainers = with maintainers; [ fab ];
45 };
46}