Merge pull request #139663 from fabaff/bump-karton-classifier
python3Packages.karton-classifier: 1.1.0 -> 1.2.0
This commit is contained in:
commit
7728136201
1 changed files with 9 additions and 8 deletions
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue