2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
|
|
|
, distro
|
|
|
|
, packaging
|
|
|
|
, setuptools
|
|
|
|
, wheel
|
|
|
|
# Test Inputs
|
|
|
|
, cmake
|
|
|
|
, codecov
|
|
|
|
, coverage
|
|
|
|
, cython
|
|
|
|
, flake8
|
|
|
|
, ninja
|
|
|
|
, pathpy
|
|
|
|
, pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-mock
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-runner
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-virtualenv
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, virtualenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-build";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "0.12.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "f851382c469bcd9a8c98b1878bcfdd13b68556279d2fd9a329be41956ae5a7fe";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
distro
|
|
|
|
packaging
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
checkInputs = [
|
|
|
|
cmake
|
|
|
|
codecov
|
|
|
|
coverage
|
|
|
|
cython
|
|
|
|
flake8
|
|
|
|
ninja
|
|
|
|
pathpy
|
|
|
|
pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-mock
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-runner
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-virtualenv
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
virtualenv
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) ([
|
|
|
|
"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
|
|
|
|
"test_fortran_compiler" # passes if gfortran is available
|
|
|
|
"test_install_command" # tries to alter out path
|
|
|
|
"test_test_command" # tries to alter out path
|
2020-08-20 17:08:02 +00:00
|
|
|
"test_setup" # tries to install using distutils
|
2020-04-24 23:36:52 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -k '${disabledTests}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Improved build system generator for CPython C/C++/Fortran/Cython extensions";
|
|
|
|
homepage = "http://scikit-build.org/";
|
|
|
|
license = with licenses; [ mit bsd2 ]; # BSD due to reuses of PyNE code
|
|
|
|
maintainers = with maintainers; [ FlorianFranzen ];
|
|
|
|
};
|
|
|
|
}
|