2019-02-14 19:17:00 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, wheel, setuptools, packaging
|
|
|
|
, cmake, ninja, cython, codecov, coverage, six, virtualenv, pathpy
|
|
|
|
, pytest, pytestcov, pytest-virtualenv, pytest-mock, pytestrunner
|
|
|
|
, requests, flake8 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-build";
|
2019-10-24 07:47:48 +01:00
|
|
|
version = "0.10.0";
|
2019-02-14 19:17:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:48 +01:00
|
|
|
sha256 = "7342017cc82dd6178e3b19377389b8a8d1f8b429d9cdb315cfb1094e34a0f526";
|
2019-02-14 19:17:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Fixes incorrect specified requirement (part of next release)
|
|
|
|
patches = [ ./fix_pytestrunner_req.patch ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ wheel setuptools packaging ];
|
|
|
|
checkInputs = [
|
2019-06-01 23:39:14 +01:00
|
|
|
cmake ninja cython codecov coverage six pathpy
|
2019-02-14 19:17:00 +00:00
|
|
|
pytest pytestcov pytest-mock pytest-virtualenv pytestrunner
|
|
|
|
requests flake8
|
|
|
|
];
|
|
|
|
|
2019-10-01 10:09:41 +01:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2019-02-14 19:17:00 +00:00
|
|
|
disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) ([
|
|
|
|
"test_hello_develop" # tries setuptools develop install
|
2019-06-01 23:39:14 +01:00
|
|
|
"test_source_distribution" # pip has no way to install missing dependencies
|
2019-02-14 19:17:00 +00:00
|
|
|
"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
|
|
|
|
]);
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -k '${disabledTests}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = http://scikit-build.org/;
|
|
|
|
description = "Improved build system generator for CPython C/C++/Fortran/Cython extensions";
|
|
|
|
license = with licenses; [ mit bsd2 ]; # BSD due to reuses of PyNE code
|
|
|
|
maintainers = [ maintainers.FlorianFranzen ];
|
|
|
|
};
|
|
|
|
}
|