9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
47 lines
936 B
Nix
47 lines
936 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cython
|
|
, gcc
|
|
, click
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "primer3";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libnano";
|
|
repo = "primer3-py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Ku2PVrWYWPKnNXeUQmstQedJg1O0hsQl4/iEnAMMEaY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
gcc
|
|
];
|
|
|
|
# pytestCheckHook leads to a circular import issue
|
|
nativeCheckInputs = [
|
|
click
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|