Loading pkgs/development/python-modules/typecode/default.nix +9 −13 Original line number Diff line number Diff line { lib, fetchPypi, fetchFromGitHub, buildPythonPackage, setuptools, setuptools-scm, Loading @@ -14,14 +14,16 @@ pytest-xdist, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "typecode"; version = "30.1.0"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-/KNhekPDB1eGVtcGNMKHx9oyruP97of7ydzx+9P7dQ8="; src = fetchFromGitHub { owner = "aboutcode-org"; repo = "typecode"; tag = "v${finalAttrs.version}"; hash = "sha256-OAQX39f6chM+xSY41rCBYsv4RDhLuBlu2WLcCt7vw0w="; }; dontConfigure = true; Loading Loading @@ -52,17 +54,11 @@ buildPythonPackage rec { # https://github.com/aboutcode-org/typecode/issues/36 # AssertionError: assert 'application/x-bytecode.python'... "test_compiled_python_1" "test_package_json" # fails due to change in file (libmagic) 5.45 "test_doc_postscript_eps" "test_package_debian" # fails due to change in file (libmagic) 5.46 "test_media_image_img" "test_compiled_elf_so" "test_compiled_elf_so_2" ]; pythonImportsCheck = [ "typecode" ]; Loading @@ -70,8 +66,8 @@ buildPythonPackage rec { meta = { description = "Comprehensive filetype and mimetype detection using libmagic and Pygments"; homepage = "https://github.com/aboutcode-org/typecode"; changelog = "https://github.com/aboutcode-org/typecode/releases/tag/v${version}"; changelog = "https://github.com/aboutcode-org/typecode/releases/tag/v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = [ ]; }; } }) Loading
pkgs/development/python-modules/typecode/default.nix +9 −13 Original line number Diff line number Diff line { lib, fetchPypi, fetchFromGitHub, buildPythonPackage, setuptools, setuptools-scm, Loading @@ -14,14 +14,16 @@ pytest-xdist, }: buildPythonPackage rec { buildPythonPackage (finalAttrs: { pname = "typecode"; version = "30.1.0"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-/KNhekPDB1eGVtcGNMKHx9oyruP97of7ydzx+9P7dQ8="; src = fetchFromGitHub { owner = "aboutcode-org"; repo = "typecode"; tag = "v${finalAttrs.version}"; hash = "sha256-OAQX39f6chM+xSY41rCBYsv4RDhLuBlu2WLcCt7vw0w="; }; dontConfigure = true; Loading Loading @@ -52,17 +54,11 @@ buildPythonPackage rec { # https://github.com/aboutcode-org/typecode/issues/36 # AssertionError: assert 'application/x-bytecode.python'... "test_compiled_python_1" "test_package_json" # fails due to change in file (libmagic) 5.45 "test_doc_postscript_eps" "test_package_debian" # fails due to change in file (libmagic) 5.46 "test_media_image_img" "test_compiled_elf_so" "test_compiled_elf_so_2" ]; pythonImportsCheck = [ "typecode" ]; Loading @@ -70,8 +66,8 @@ buildPythonPackage rec { meta = { description = "Comprehensive filetype and mimetype detection using libmagic and Pygments"; homepage = "https://github.com/aboutcode-org/typecode"; changelog = "https://github.com/aboutcode-org/typecode/releases/tag/v${version}"; changelog = "https://github.com/aboutcode-org/typecode/releases/tag/v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = [ ]; }; } })