Commit 49e67fc1 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.crc16: refactor

parent d484aa8e
Loading
Loading
Loading
Loading
+23 −5
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi }:
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pythonOlder
}:

buildPythonPackage rec {
  pname = "crc16";
  version = "0.1.1";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "15nkx0pa4lskwin84flpk8fsw3jqg6wic6v3s83syjqg76h6my61";
    hash = "sha256-wfhqoDkPS68H0mMbFrl5WA6uHZqXOoJs5FNToi7o05Y=";
  };

  build-system = [
    setuptools
  ];

  # Tests are outdated
  doCheck = false;

  pythonImportsCheck = [
    "crc16"
  ];

  meta = with lib; {
    homepage = "https://code.google.com/archive/p/pycrc16/";
    description = "Python library for calculating CRC16";
    license = licenses.lgpl3;
    homepage = "https://code.google.com/archive/p/pycrc16/";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ abbradar ];
  };
}