Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 56 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, stdenv, buildPythonPackage, fetchFromGitHub, cython, gcc, click, pytestCheckHook, pythonOlder}:
buildPythonPackage rec { pname = "primer3"; version = "2.0.1"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "libnano"; repo = "primer3-py"; rev = "refs/tags/v${version}"; hash = "sha256-WYn88Xv7WSc67TfYCq+i05tG8aKtWLUgc6axntvLF+8="; };
nativeBuildInputs = [ cython ] ++ lib.optionals stdenv.isDarwin [ gcc ];
nativeCheckInputs = [ click pytestCheckHook ]; # We are not sure why exactly this is need. It seems `pytestCheckHook` # doesn't find extension modules installed in $out/${python.sitePackages}, # and the tests rely upon them. This was initially reported upstream at # https://github.com/libnano/primer3-py/issues/120 and we investigate this # downstream at: https://github.com/NixOS/nixpkgs/issues/255262. preCheck = '' python setup.py build_ext --inplace '';
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 ]; };}