10 buildPythonPackage rec {
11 pname = "karton-classifier";
14 src = fetchFromGitHub {
15 owner = "CERT-Polska";
18 sha256 = "05pxv0smrzgmljykc6yx0rx8b85ck7fa09xjkjw0dd7lb6bb19a6";
21 propagatedBuildInputs = [
28 substituteInPlace requirements.txt \
29 --replace "chardet==3.0.4" "chardet" \
30 --replace "karton-core==4.0.4" "karton-core" \
31 --replace "python-magic==0.4.18" "python-magic"
36 ${python.interpreter} -m unittest discover
40 pythonImportsCheck = [ "karton.classifier" ];
43 description = "File type classifier for the Karton framework";
44 homepage = "https://github.com/CERT-Polska/karton-classifier";
45 license = with licenses; [ bsd3 ];
46 maintainers = with maintainers; [ fab ];