Files
nixpkgs/pkgs/development/python-modules/ebcdic/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
988 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ebcdic";
version = "1.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "roskakori";
repo = "CodecMapper";
tag = "v${version}";
hash = "sha256-gRyZychcF3wYocgVbdF255cSuZh/cl8X0WH/Iplkmxc=";
};
sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
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"
];
pythonImportsCheck = [ "ebcdic" ];
meta = {
description = "Additional EBCDIC codecs";
homepage = "https://github.com/roskakori/CodecMapper/tree/master/ebcdic";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fab ];
};
}