Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ebcdic / default.nix
blob430ebfe24c58bfa79e0e2e4016fc06c38ede5346
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pythonOlder
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "ebcdic";
11   version = "1.1.1";
12   pyproject = true;
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "roskakori";
18     repo = "CodecMapper";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-gRyZychcF3wYocgVbdF255cSuZh/cl8X0WH/Iplkmxc=";
21   };
23   sourceRoot = "${src.name}/${pname}";
25   nativeBuildInputs = [
26     setuptools
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   disabledTests = [
34     # https://github.com/roskakori/CodecMapper/issues/18
35     "test_can_lookup_ebcdic_codec"
36     "test_can_recode_euro_sign"
37     "test_has_codecs"
38     "test_has_ignored_codec_names"
39   ];
41   pythonImportsCheck = [
42     "ebcdic"
43   ];
45   meta = with lib; {
46     description = "Additional EBCDIC codecs";
47     homepage = "https://github.com/roskakori/CodecMapper/tree/master/ebcdic";
48     license = licenses.bsd2;
49     maintainers = with maintainers; [ fab ];
50   };