at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 t61codec, 7 pytest-cov-stub, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "x690"; 13 version = "1.0.0post1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "exhuma"; 18 repo = "x690"; 19 tag = "v${version}"; 20 hash = "sha256-HNKZq6VfqYAih2SrhGChC2jaQ76dhzKM/Mcr6pVYFE4="; 21 }; 22 23 build-system = [ 24 setuptools 25 ]; 26 27 pythonRelaxDeps = [ 28 "t61codec" 29 ]; 30 31 dependencies = [ 32 t61codec 33 ]; 34 35 pythonImportsCheck = [ "x690" ]; 36 37 nativeCheckInputs = [ 38 pytest-cov-stub 39 pytestCheckHook 40 ]; 41 42 disabledTests = [ 43 # AssertionError: "<UnknownType 99 b'abc' TypeClass.APPLICATION/TypeNature.CONSTRUCTED/3>" != "<UnknownType 99 b'abc' application/constructed/3>" 44 "test_repr" 45 ]; 46 47 meta = { 48 description = "Pure Python X.690 implementation"; 49 homepage = "https://github.com/exhuma/x690"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ GaetanLepage ]; 52 }; 53}