python3Packages.karton-classifier: 1.1.0 -> 1.2.0

This commit is contained in:
Fabian Affolter
2021-09-27 22:52:49 +02:00
parent 7c1a58a630
commit 62b037c6ee
@@ -3,19 +3,22 @@
, chardet
, fetchFromGitHub
, karton-core
, python
, pytestCheckHook
, python_magic
, pythonOlder
}:
buildPythonPackage rec {
pname = "karton-classifier";
version = "1.1.0";
version = "1.2.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "0s09mzsw546klnvm59wzj9vdwd2hyzgxvapi20k86q3prs9ncds6";
sha256 = "sha256-AG2CtNMgXYfbdlOqB1ZdjMT8H67fsSMXTgiFg6K41IQ=";
};
propagatedBuildInputs = [
@@ -30,11 +33,9 @@ buildPythonPackage rec {
--replace "python-magic==0.4.18" "python-magic"
'';
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "karton.classifier" ];