|
|
|
@ -7,16 +7,13 @@ |
|
|
|
|
, wheel |
|
|
|
|
# Test Inputs |
|
|
|
|
, cmake |
|
|
|
|
, codecov |
|
|
|
|
, coverage |
|
|
|
|
, cython |
|
|
|
|
, flake8 |
|
|
|
|
, ninja |
|
|
|
|
, path |
|
|
|
|
, pytest |
|
|
|
|
, pytest-cov |
|
|
|
|
, pytestCheckHook |
|
|
|
|
, pytest-mock |
|
|
|
|
, pytest-runner |
|
|
|
|
, pytest-virtualenv |
|
|
|
|
, requests |
|
|
|
|
, six |
|
|
|
@ -26,30 +23,32 @@ |
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "scikit-build"; |
|
|
|
|
version = "0.13.1"; |
|
|
|
|
format = "pyproject"; |
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
|
inherit pname version; |
|
|
|
|
sha256 = "sha256-XRd0ousVmI4IHFgsJUq0qXUgluajTyNUEct5vWFmDDc="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
|
sed -i '/distutils.dir_util._path_created/d' tests/__init__.py |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
distro |
|
|
|
|
packaging |
|
|
|
|
setuptools |
|
|
|
|
wheel |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
cmake |
|
|
|
|
codecov |
|
|
|
|
coverage |
|
|
|
|
cython |
|
|
|
|
flake8 |
|
|
|
|
ninja |
|
|
|
|
path |
|
|
|
|
pytest |
|
|
|
|
pytest-cov |
|
|
|
|
pytestCheckHook |
|
|
|
|
pytest-mock |
|
|
|
|
pytest-runner |
|
|
|
|
pytest-virtualenv |
|
|
|
|
requests |
|
|
|
|
six |
|
|
|
@ -58,7 +57,7 @@ buildPythonPackage rec { |
|
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true; |
|
|
|
|
|
|
|
|
|
disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) ([ |
|
|
|
|
disabledTests = [ |
|
|
|
|
"test_hello_develop" # tries setuptools develop install |
|
|
|
|
"test_source_distribution" # pip has no way to install missing dependencies |
|
|
|
|
"test_wheel" # pip has no way to install missing dependencies |
|
|
|
@ -68,11 +67,9 @@ buildPythonPackage rec { |
|
|
|
|
"test_setup" # tries to install using distutils |
|
|
|
|
"test_pep518" # pip exits with code 1 |
|
|
|
|
"test_dual_pep518" # pip exits with code 1 |
|
|
|
|
]); |
|
|
|
|
|
|
|
|
|
checkPhase = '' |
|
|
|
|
py.test -k '${disabledTests}' |
|
|
|
|
''; |
|
|
|
|
"test_isolated_env_trigger_reconfigure" # Regex pattern 'exit skbuild saving cmake spec' does not match 'exit skbuild running make'. |
|
|
|
|
"test_hello_wheel" # [Errno 2] No such file or directory: '_skbuild/linux-x86_64-3.9/setuptools/bdist.linux-x86_64/wheel/helloModule.py' |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "Improved build system generator for CPython C/C++/Fortran/Cython extensions"; |
|
|
|
|