at 23.11-beta 902 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "crc"; 11 version = "5.0.0"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "Nicoretti"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-+C4cUKXZCpAXil8X4gTK3AhqNVWDrBQYY2Kgkd3+gqc="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "crc" 33 ]; 34 35 disabledTestPaths = [ 36 "test/bench" 37 ]; 38 39 meta = with lib; { 40 changelog = "https://github.com/Nicoretti/crc/releases/tag/${version}"; 41 description = "Python module for calculating and verifying predefined & custom CRC's"; 42 homepage = "https://nicoretti.github.io/crc/"; 43 license = licenses.bsd2; 44 maintainers = with maintainers; [ jleightcap ]; 45 }; 46}