ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / typecode / default.nix
blob2fa0010bdd0381516fdce24c2253358f578fae93
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.0";
19   format = "setuptools";
21   disabled = pythonOlder "3.7";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-pRGLU/xzQQqDZMIsrq1Fy7VgGIpFjnHtpmO+yL7t4g8=";
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   checkInputs = [
44     pytestCheckHook
45     pytest-xdist
46   ];
48   disabledTests = [
49     "TestFileTypesDataDriven"
50     # AssertionError: assert 'application/x-bytecode.python'...
51     "test_compiled_python_1"
52     "test_package_json"
53   ];
55   pythonImportsCheck = [
56     "typecode"
57   ];
59   meta = with lib; {
60     description = "Comprehensive filetype and mimetype detection using libmagic and Pygments";
61     homepage = "https://github.com/nexB/typecode";
62     license = licenses.asl20;
63     maintainers = teams.determinatesystems.members;
64   };