Unverified Commit b4eff56a authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #238688 from r-ryantm/auto-update/python310Packages.primer3

python310Packages.primer3: 1.0.0 -> 2.0.0
parents 065bb60a fdd5d7e8
Loading
Loading
Loading
Loading
+18 −6
Original line number Diff line number Diff line
@@ -5,30 +5,42 @@
, cython
, gcc
, click
, pythonOlder
}:

buildPythonPackage rec {
  pname = "primer3";
  version = "1.0.0";
  version = "2.0.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "libnano";
    repo = "primer3-py";
    rev = "refs/tags/v${version}";
    hash = "sha256-o9B8TN3mOchOO7dz34mI3NDtIhHSlA9+lMNsYcxhTE0=";
    hash = "sha256-Ku2PVrWYWPKnNXeUQmstQedJg1O0hsQl4/iEnAMMEaY=";
  };

  nativeBuildInputs = [ cython ]
    ++ lib.optionals stdenv.isDarwin [ gcc ];
  nativeBuildInputs = [
    cython
  ] ++ lib.optionals stdenv.isDarwin [
    gcc
  ];

  # pytestCheckHook leads to a circular import issue
  nativeCheckInputs = [ click ];
  nativeCheckInputs = [
    click
  ];

  pythonImportsCheck = [ "primer3" ];
  pythonImportsCheck = [
    "primer3"
  ];

  meta = with lib; {
    description = "Oligo analysis and primer design";
    homepage = "https://github.com/libnano/primer3-py";
    changelog = "https://github.com/libnano/primer3-py/blob/v${version}/CHANGES";
    license = with licenses; [ gpl2Only ];
    maintainers = with maintainers; [ fab ];
  };