Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / crc / default.nix
blob41452149eaff231e0f7d8c94120b7665f5f03a9d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "crc";
12   version = "7.0.0";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "Nicoretti";
19     repo = "crc";
20     rev = "refs/tags/${version}";
21     hash = "sha256-y30tnGG+G9dWBO8MUFYm2IGHiGIPbv4kB2VwhV0/C74=";
22   };
24   build-system = [ poetry-core ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "crc" ];
30   disabledTestPaths = [ "test/bench" ];
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   };