2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
2021-02-05 17:12:51 +00:00
|
|
|
, stdenv
|
2021-01-15 22:18:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cython
|
2021-02-05 17:12:51 +00:00
|
|
|
, gcc
|
2021-01-15 22:18:51 +00:00
|
|
|
, click
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "primer3";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "1.0.0";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libnano";
|
|
|
|
repo = "primer3-py";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-o9B8TN3mOchOO7dz34mI3NDtIhHSlA9+lMNsYcxhTE0=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cython ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ gcc ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
# pytestCheckHook leads to a circular import issue
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ click ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|