11 buildPythonPackage rec {
12 pname = "karton-classifier";
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
19 owner = "CERT-Polska";
22 hash = "sha256-TRmAin0TAOIwR5EBMwTOJ9QaHO+mOx/eAjgqvyQZDj4=";
25 propagatedBuildInputs = [
36 substituteInPlace requirements.txt \
37 --replace "chardet==3.0.4" "chardet" \
38 --replace "python-magic==0.4.18" "python-magic"
41 pythonImportsCheck = [
46 # Tests expecting results from a different version of libmagic
47 "test_process_archive_ace"
48 "test_process_runnable_win32_lnk"
52 description = "File type classifier for the Karton framework";
53 homepage = "https://github.com/CERT-Polska/karton-classifier";
54 license = with licenses; [ bsd3 ];
55 maintainers = with maintainers; [ fab ];