1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
44 lines
940 B
Nix
44 lines
940 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ebcdic";
|
|
version = "1.1.1";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|