Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / crc / default.nix
blob47c2da0f85059d79935524603a7cf3bb1a19e095
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "crc";
11   version = "5.0.0";
12   format = "pyproject";
14   disabled = pythonOlder "3.8";
16   src = fetchFromGitHub {
17     owner = "Nicoretti";
18     repo = pname;
19     rev = "refs/tags/${version}";
20     hash = "sha256-+C4cUKXZCpAXil8X4gTK3AhqNVWDrBQYY2Kgkd3+gqc=";
21   };
23   nativeBuildInputs = [
24     poetry-core
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "crc"
33   ];
35   disabledTestPaths = [
36     "test/bench"
37   ];
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   };