Unverified Commit 0af87b43 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #231156 from jleightcap/jl/crc-4.2.0

python310Packages.crc: init at 4.2.0
parents 8a05bed3 8d311b35
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "crc";
  version = "4.2.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "Nicoretti";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-h/RVMIJX+Lyted0FHNBcKY54EiirSclkBXCpAQSATq8=";
  };

  nativeBuildInputs = [ poetry-core ];

  pythonImportsCheck = [ "crc" ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTestPaths = [ "test/bench" ];

  meta = with lib; {
    changelog = "https://github.com/Nicoretti/crc/releases/tag/${version}";
    description = "Python module for calculating and verifying predefined & custom CRC's";
    homepage = "https://nicoretti.github.io/crc/";
    license = licenses.bsd2;
    maintainers = with maintainers; [ jleightcap ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2109,6 +2109,8 @@ self: super: with self; {

  crayons = callPackage ../development/python-modules/crayons { };

  crc = callPackage ../development/python-modules/crc { };

  crc16 = callPackage ../development/python-modules/crc16 { };

  crc32c = callPackage ../development/python-modules/crc32c { };