Unverified Commit d501759d authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.raspyrfm-client: 1.2.8 -> 1.2.9 (#457285)

parents ef94216f 6c106807
Loading
Loading
Loading
Loading
+12 −27
Original line number Diff line number Diff line
@@ -2,51 +2,36 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  rstr,
  python,
  poetry-core,
  pytestCheckHook,
  xeger,
}:

buildPythonPackage rec {
  pname = "raspyrfm-client";
  version = "1.2.8";
  version = "1.2.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "markusressel";
    repo = "raspyrfm-client";
    tag = "v${version}";
    hash = "sha256-WiL69bb4h8xVdMYxAVU0NHEfTWyW2NVR86zigsr5dmk=";
    tag = version;
    hash = "sha256-+TraMrVoR8GXrjfjJnu1uyyW6KTnu8KrRqAHYU8thFw=";
  };

  # while we may not actually be on master, the script needs a git branch to function
  # and master here is better than beta or pre-alpha
  postPatch = ''
    substituteInPlace ./setup.py \
      --replace-fail 'subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"])' '"master"' \
      --replace-fail 'GIT_BRANCH.decode()' '"master"' \
      --replace-fail 'GIT_BRANCH.rstrip()' '"master"'
  '';

  build-system = [ setuptools ];
  build-system = [ poetry-core ];

  pythonImportsCheck = [ "raspyrfm_client" ];

  nativeCheckInputs = [ rstr ];

  # pytestCheckHook does not auto detect the only test, run manually
  checkPhase = ''
    runHook preCheck

    ${python.interpreter} tests/automatic_tests.py

    runHook postCheck
  '';
  nativeCheckInputs = [
    pytestCheckHook
    xeger
  ];

  meta = {
    description = "Send rc signals with the RaspyRFM module";
    homepage = "https://github.com/markusressel/raspyrfm-client";
    changelog = "https://github.com/markusressel/raspyrfm-client/releases/tag/v${version}";
    changelog = "https://github.com/markusressel/raspyrfm-client/releases/tag/${src.tag}";
    maintainers = with lib.maintainers; [ ethancedwards8 ];
  };
}
+35 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "xeger";
  version = "0.3.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "crdoconnor";
    repo = "xeger";
    tag = version;
    hash = "sha256-XujytGzBwJ59C5VihuFUJUxqhyjOIU4sI60hXUqLQvM=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "xeger" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Library to generate random strings from regular expressions";
    homepage = "https://github.com/crdoconnor/xeger";
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.dotlambda ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -20376,6 +20376,8 @@ self: super: with self; {
  xeddsa = toPythonModule (callPackage ../development/python-modules/xeddsa { });
  xeger = callPackage ../development/python-modules/xeger { };
  xen = toPythonModule (pkgs.xen.override { python3Packages = self; });
  xformers = callPackage ../development/python-modules/xformers {