1{ lib
2, buildPythonPackage
3, fetchPypi
4, distro
5, packaging
6, python
7, setuptools
8, setuptools-scm
9, wheel
10 # Test Inputs
11, cmake
12, cython
13, flake8
14, ninja
15, path
16, pytestCheckHook
17, pytest-mock
18, pytest-virtualenv
19, requests
20, six
21, virtualenv
22}:
23
24buildPythonPackage rec {
25 pname = "scikit-build";
26 version = "0.15.0";
27 format = "pyproject";
28
29 src = fetchPypi {
30 inherit pname version;
31 sha256 = "sha256-5yPNDzSJoEI3C56piLu5z9dyXoslsgyhx5gYIfz2X7k=";
32 };
33
34 propagatedBuildInputs = [
35 distro
36 packaging
37 setuptools
38 setuptools-scm
39 wheel
40 ];
41
42 checkInputs = [
43 cmake
44 cython
45 ninja
46 path
47 pytestCheckHook
48 pytest-mock
49 pytest-virtualenv
50 requests
51 six
52 virtualenv
53 ];
54
55 dontUseCmakeConfigure = true;
56
57 disabledTests = [
58 "test_hello_develop" # tries setuptools develop install
59 "test_source_distribution" # pip has no way to install missing dependencies
60 "test_wheel" # pip has no way to install missing dependencies
61 "test_fortran_compiler" # passes if gfortran is available
62 "test_install_command" # tries to alter out path
63 "test_test_command" # tries to alter out path
64 "test_setup" # tries to install using distutils
65 "test_pep518" # pip exits with code 1
66 "test_dual_pep518" # pip exits with code 1
67 "test_isolated_env_trigger_reconfigure" # Regex pattern 'exit skbuild saving cmake spec' does not match 'exit skbuild running make'.
68 "test_hello_wheel" # [Errno 2] No such file or directory: '_skbuild/linux-x86_64-3.9/setuptools/bdist.linux-x86_64/wheel/helloModule.py'
69 # sdist contents differ, contains additional setup.py
70 "test_hello_sdist"
71 "test_manifest_in_sdist"
72 "test_sdist_with_symlinks"
73 # distutils.errors.DistutilsArgError: no commands supplied
74 "test_invalid_command"
75 "test_manifest_in_sdist"
76 "test_no_command"
77 ];
78
79 meta = with lib; {
80 description = "Improved build system generator for CPython C/C++/Fortran/Cython extensions";
81 homepage = "https://github.com/scikit-build/scikit-build";
82 license = with licenses; [ mit bsd2 ]; # BSD due to reuses of PyNE code
83 maintainers = with maintainers; [ FlorianFranzen ];
84 };
85}