13 buildPythonPackage rec {
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-O8BFjkjG9SfknSrK34s9EJnqTrtCf4zW9A+N+/MHl2w=";
30 ] ++ lib.optionals stdenv.isDarwin [
38 # We are not sure why exactly this is need. It seems `pytestCheckHook`
39 # doesn't find extension modules installed in $out/${python.sitePackages},
40 # and the tests rely upon them. This was initially reported upstream at
41 # https://github.com/libnano/primer3-py/issues/120 and we investigate this
42 # downstream at: https://github.com/NixOS/nixpkgs/issues/255262.
44 python setup.py build_ext --inplace
47 pythonImportsCheck = [
52 description = "Oligo analysis and primer design";
53 homepage = "https://github.com/libnano/primer3-py";
54 changelog = "https://github.com/libnano/primer3-py/blob/v${version}/CHANGES";
55 license = with licenses; [ gpl2Only ];
56 maintainers = with maintainers; [ fab ];