at 24.11-pre 902 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "crc"; 12 version = "7.0.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "Nicoretti"; 19 repo = "crc"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-y30tnGG+G9dWBO8MUFYm2IGHiGIPbv4kB2VwhV0/C74="; 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}