Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / typecode / default.nix
blob88e76fda670a440ef614a854bc8d031affb25cf0
1 { lib
2 , fetchPypi
3 , buildPythonPackage
4 , setuptools-scm
5 , attrs
6 , pdfminer-six
7 , commoncode
8 , plugincode
9 , binaryornot
10 , typecode-libmagic
11 , pytestCheckHook
12 , pytest-xdist
13 , pythonOlder
16 buildPythonPackage rec {
17   pname = "typecode";
18   version = "30.0.1";
19   format = "setuptools";
21   disabled = pythonOlder "3.7";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-Glc5QiTVr//euymeNTxGN+FVaOEa6cUxHGyGo9bQrJc=";
26   };
28   dontConfigure = true;
30   nativeBuildInputs = [
31     setuptools-scm
32   ];
34   propagatedBuildInputs = [
35     attrs
36     pdfminer-six
37     commoncode
38     plugincode
39     binaryornot
40     typecode-libmagic
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45     pytest-xdist
46   ];
48   disabledTests = [
49     "TestFileTypesDataDriven"
51     # Many of the failures below are reported in:
52     # https://github.com/nexB/typecode/issues/36
54     # AssertionError: assert 'application/x-bytecode.python'...
55     "test_compiled_python_1"
56     "test_package_json"
58     # fails due to change in file (libmagic) 5.45
59     "test_doc_postscript_eps"
60     "test_package_debian"
61   ];
63   pythonImportsCheck = [
64     "typecode"
65   ];
67   meta = with lib; {
68     description = "Comprehensive filetype and mimetype detection using libmagic and Pygments";
69     homepage = "https://github.com/nexB/typecode";
70     changelog = "https://github.com/nexB/typecode/releases/tag/v${version}";
71     license = licenses.asl20;
72     maintainers = with maintainers; [ ];
73   };