Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "crc"; 10 version = "4.2.0"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "Nicoretti"; 15 repo = pname; 16 rev = "refs/tags/${version}"; 17 hash = "sha256-h/RVMIJX+Lyted0FHNBcKY54EiirSclkBXCpAQSATq8="; 18 }; 19 20 nativeBuildInputs = [ poetry-core ]; 21 22 pythonImportsCheck = [ "crc" ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 disabledTestPaths = [ "test/bench" ]; 27 28 meta = with lib; { 29 changelog = "https://github.com/Nicoretti/crc/releases/tag/${version}"; 30 description = "Python module for calculating and verifying predefined & custom CRC's"; 31 homepage = "https://nicoretti.github.io/crc/"; 32 license = licenses.bsd2; 33 maintainers = with maintainers; [ jleightcap ]; 34 }; 35}