2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ebcdic";
|
|
|
|
version = "1.1.1";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "roskakori";
|
|
|
|
repo = "CodecMapper";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-gRyZychcF3wYocgVbdF255cSuZh/cl8X0WH/Iplkmxc=";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/${pname}";
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/roskakori/CodecMapper/issues/18
|
|
|
|
"test_can_lookup_ebcdic_codec"
|
|
|
|
"test_can_recode_euro_sign"
|
|
|
|
"test_has_codecs"
|
|
|
|
"test_has_ignored_codec_names"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ebcdic" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Additional EBCDIC codecs";
|
|
|
|
homepage = "https://github.com/roskakori/CodecMapper/tree/master/ebcdic";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|