Merge pull request #139663 from fabaff/bump-karton-classifier

python3Packages.karton-classifier: 1.1.0 -> 1.2.0
This commit is contained in:
Fabian Affolter 2021-09-28 18:35:43 +02:00 committed by GitHub
commit 7728136201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ];