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