2021-01-10 12:12:44 +00:00
|
|
|
{ lib
|
2021-02-05 12:49:07 +00:00
|
|
|
, stdenv
|
2021-01-10 12:12:44 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cython
|
2021-02-05 12:49:07 +00:00
|
|
|
, gcc
|
2021-01-10 12:12:44 +00:00
|
|
|
, click
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "primer3";
|
|
|
|
version = "0.6.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libnano";
|
|
|
|
repo = "primer3-py";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1glybwp9w2m1ydvaphr41gj31d8fvlh40s35galfbjqa563si72g";
|
|
|
|
};
|
|
|
|
|
2021-02-05 12:49:07 +00:00
|
|
|
nativeBuildInputs = [ cython ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ gcc ];
|
2021-01-10 12:12:44 +00:00
|
|
|
|
|
|
|
# pytestCheckHook leads to a circular import issue
|
|
|
|
checkInputs = [ click ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "primer3" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Oligo analysis and primer design";
|
|
|
|
homepage = "https://github.com/libnano/primer3-py";
|
|
|
|
license = with licenses; [ gpl2Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|