tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.karton-classifier: 1.1.0 -> 1.2.0
Fabian Affolter
4 years ago
62b037c6
7c1a58a6
+9
-8
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
karton-classifier
default.nix
+9
-8
pkgs/development/python-modules/karton-classifier/default.nix
reviewed
···
3
3
, chardet
4
4
, fetchFromGitHub
5
5
, karton-core
6
6
-
, python
6
6
+
, pytestCheckHook
7
7
, python_magic
8
8
+
, pythonOlder
8
9
}:
9
10
10
11
buildPythonPackage rec {
11
12
pname = "karton-classifier";
12
12
-
version = "1.1.0";
13
13
+
version = "1.2.0";
14
14
+
15
15
+
disabled = pythonOlder "3.7";
13
16
14
17
src = fetchFromGitHub {
15
18
owner = "CERT-Polska";
16
19
repo = pname;
17
20
rev = "v${version}";
18
18
-
sha256 = "0s09mzsw546klnvm59wzj9vdwd2hyzgxvapi20k86q3prs9ncds6";
21
21
+
sha256 = "sha256-AG2CtNMgXYfbdlOqB1ZdjMT8H67fsSMXTgiFg6K41IQ=";
19
22
};
20
23
21
24
propagatedBuildInputs = [
···
33
30
--replace "python-magic==0.4.18" "python-magic"
34
31
'';
35
32
36
36
-
checkPhase = ''
37
37
-
runHook preCheck
38
38
-
${python.interpreter} -m unittest discover
39
39
-
runHook postCheck
40
40
-
'';
33
33
+
checkInputs = [
34
34
+
pytestCheckHook
35
35
+
];
41
36
42
37
pythonImportsCheck = [ "karton.classifier" ];
43
38