git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #139663 from fabaff/bump-karton-classifier

python3Packages.karton-classifier: 1.1.0 -> 1.2.0

commit7728136201023022493e85e790ccc719516aab3c authorFabian Affolter <fabian@affolter-engineering.ch> dateTue 28 Sep 2021, 18:35 (5 years ago) parent2b71ddd62b037c
1 file changed+9−8
pkgs/development/python-modules/karton-classifier/default.nix+9−8
pkgs/development/python-modules/karton-classifier/default.nix+9−8
@@ -3,19 +3,22 @@
33, chardet
44, fetchFromGitHub
55, karton-core
6−, python
6+, pytestCheckHook
77, python_magic
8+, pythonOlder
89}:
910
1011buildPythonPackage rec {
1112 pname = "karton-classifier";
12− version = "1.1.0";
13+ version = "1.2.0";
14+
15+ disabled = pythonOlder "3.7";
1316
1417 src = fetchFromGitHub {
1518 owner = "CERT-Polska";
1619 repo = pname;
1720 rev = "v${version}";
18− sha256 = "0s09mzsw546klnvm59wzj9vdwd2hyzgxvapi20k86q3prs9ncds6";
21+ sha256 = "sha256-AG2CtNMgXYfbdlOqB1ZdjMT8H67fsSMXTgiFg6K41IQ=";
1922 };
2023
2124 propagatedBuildInputs = [
@@ -30,11 +33,9 @@ buildPythonPackage rec {
3033 --replace "python-magic==0.4.18" "python-magic"
3134 '';
3235
33− checkPhase = ''
34− runHook preCheck
35− ${python.interpreter} -m unittest discover
36− runHook postCheck
37− '';
36+ checkInputs = [
37+ pytestCheckHook
38+ ];
3839
3940 pythonImportsCheck = [ "karton.classifier" ];
4041