diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/primer3/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/primer3/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/primer3/default.nix b/nixpkgs/pkgs/development/python-modules/primer3/default.nix index 84068a9d9671..f4495d9b2c14 100644 --- a/nixpkgs/pkgs/development/python-modules/primer3/default.nix +++ b/nixpkgs/pkgs/development/python-modules/primer3/default.nix @@ -5,12 +5,13 @@ , cython , gcc , click +, pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "primer3"; - version = "2.0.0"; + version = "2.0.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -19,7 +20,7 @@ buildPythonPackage rec { owner = "libnano"; repo = "primer3-py"; rev = "refs/tags/v${version}"; - hash = "sha256-Ku2PVrWYWPKnNXeUQmstQedJg1O0hsQl4/iEnAMMEaY="; + hash = "sha256-WYn88Xv7WSc67TfYCq+i05tG8aKtWLUgc6axntvLF+8="; }; nativeBuildInputs = [ @@ -28,10 +29,18 @@ buildPythonPackage rec { gcc ]; - # pytestCheckHook leads to a circular import issue 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" |