python311Packages.uarray: test with pytest7
and refactor to use PEP517 builder and lingo.
This commit is contained in:
parent
aa83e77739
commit
3bf5b41d22
|
@ -2,18 +2,19 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
, setuptools
|
||||||
, matchpy
|
, matchpy
|
||||||
, numpy
|
, numpy
|
||||||
, astunparse
|
, astunparse
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
, pytestCheckHook
|
, pytest7CheckHook
|
||||||
, pytest-cov
|
, pytest-cov
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "uarray";
|
pname = "uarray";
|
||||||
version = "0.8.2";
|
version = "0.8.2";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Quansight-Labs";
|
owner = "Quansight-Labs";
|
||||||
|
@ -31,14 +32,32 @@ buildPythonPackage rec {
|
||||||
}
|
}
|
||||||
)];
|
)];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook pytest-cov ];
|
build-system = [
|
||||||
propagatedBuildInputs = [ matchpy numpy astunparse typing-extensions ];
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
astunparse
|
||||||
|
matchpy
|
||||||
|
numpy
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytest7CheckHook
|
||||||
|
pytest-cov
|
||||||
|
];
|
||||||
|
|
||||||
# Tests must be run from outside the source directory
|
# Tests must be run from outside the source directory
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
cd $TMP
|
cd $TMP
|
||||||
'';
|
'';
|
||||||
pytestFlagsArray = ["--pyargs" "uarray" "-W" "ignore::pytest.PytestRemovedIn8Warning" ];
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"--pyargs"
|
||||||
|
"uarray"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "uarray" ];
|
pythonImportsCheck = [ "uarray" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user