Merge #187778: python3Packages: test fixes after unittestCheckHook
...into staging-next
This commit is contained in:
commit
4b41fffbb9
2 changed files with 23 additions and 16 deletions
|
@ -2,32 +2,30 @@
|
|||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, unittestCheckHook
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cymem";
|
||||
version = "2.0.3";
|
||||
version = "2.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "explosion";
|
||||
repo = "cymem";
|
||||
rev = "v${version}";
|
||||
sha256 = "0cqz6whq4zginxjnh4cfqlsh535p4qz295ymvjchp71fv8mz11f6";
|
||||
sha256 = "sha256-o+44v6wvE9HxeQaDDQ0+gi7z1V7jtkZvWglY8UyVHLg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cython
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "wheel>=0.32.0,<0.33.0" "wheel>=0.31.0"
|
||||
'';
|
||||
# ModuleNotFoundError: No module named 'cymem.cymem'
|
||||
doCheck = false;
|
||||
|
||||
checkInputs = [ unittestCheckHook ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
unittestFlagsArray = [ "-s" "cymem/tests" "-p" "*test*" ];
|
||||
pytestFlagsArray = [ "cymem" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cython memory pool for RAII-style memory management";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, unittestCheckHook
|
||||
, fetchFromGitHub
|
||||
, python
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
|
@ -12,14 +12,23 @@ buildPythonPackage rec {
|
|||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-OL3YZNBFD7dIGTqoF7nEWKj1MZ+/l7ImEVHPwKWBIJA=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ialbert";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-U3k97YJhQjulYNWcKVx96/5zND5VfsRjA3ZZHWhcDNg=";
|
||||
};
|
||||
|
||||
checkInputs = [ unittestCheckHook ];
|
||||
# tests are broken, see https://github.com/ialbert/plac/issues/74
|
||||
doCheck = false;
|
||||
|
||||
unittestFlagsArray = [ "-s" "doc" "-p" "*test_plac*" ];
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
${python.interpreter} doc/test_plac.py
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"plac"
|
||||
|
|
Loading…
Reference in a new issue