1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "crc";
12 version = "7.1.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "Nicoretti";
19 repo = "crc";
20 tag = version;
21 hash = "sha256-Oa2VSzNT+8O/rWZurIr7RnP8m3xAEVOQLs+ObT4xIa0=";
22 };
23
24 build-system = [ poetry-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "crc" ];
29
30 disabledTestPaths = [ "test/bench" ];
31
32 meta = with lib; {
33 description = "Python module for calculating and verifying predefined & custom CRC's";
34 homepage = "https://nicoretti.github.io/crc/";
35 changelog = "https://github.com/Nicoretti/crc/releases/tag/${version}";
36 license = licenses.bsd2;
37 maintainers = with maintainers; [ jleightcap ];
38 mainProgram = "crc";
39 };
40}