Merge pull request #54890 from FlorianFranzen/scikit-build

pythonPackages.scikit-build: init at 0.8.1

authored by Robert Schütz and committed by GitHub f0edf20b d5768251

+63
+5
maintainers/maintainer-list.nix
··· 1565 1565 github = "flokli"; 1566 1566 name = "Florian Klink"; 1567 1567 }; 1568 + FlorianFranzen = { 1569 + email = "Florian.Franzen@gmail.com"; 1570 + github = "FlorianFranzen"; 1571 + name = "Florian Franzen"; 1572 + }; 1568 1573 florianjacob = { 1569 1574 email = "projects+nixos@florianjacob.de"; 1570 1575 github = "florianjacob";
+43
pkgs/development/python-modules/scikit-build/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi, wheel, setuptools, packaging 2 + , cmake, ninja, cython, codecov, coverage, six, virtualenv, pathpy 3 + , pytest, pytestcov, pytest-virtualenv, pytest-mock, pytestrunner 4 + , requests, flake8 }: 5 + 6 + buildPythonPackage rec { 7 + pname = "scikit-build"; 8 + version = "0.8.1"; 9 + 10 + src = fetchPypi { 11 + inherit pname version; 12 + sha256 = "1hh275lj98wgwi53mr9fqk8wh1dajjksch52xjax6a79gld4391a"; 13 + }; 14 + 15 + # Fixes incorrect specified requirement (part of next release) 16 + patches = [ ./fix_pytestrunner_req.patch ]; 17 + 18 + propagatedBuildInputs = [ wheel setuptools packaging ]; 19 + checkInputs = [ 20 + cmake ninja cython codecov coverage six virtualenv pathpy 21 + pytest pytestcov pytest-mock pytest-virtualenv pytestrunner 22 + requests flake8 23 + ]; 24 + 25 + disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) ([ 26 + "test_hello_develop" # tries setuptools develop install 27 + "test_wheel" # pip has no way to install missing dependencies 28 + "test_fortran_compiler" # passes if gfortran is available 29 + "test_install_command" # tries to alter out path 30 + "test_test_command" # tries to alter out path 31 + ]); 32 + 33 + checkPhase = '' 34 + py.test -k '${disabledTests}' 35 + ''; 36 + 37 + meta = with lib; { 38 + homepage = http://scikit-build.org/; 39 + description = "Improved build system generator for CPython C/C++/Fortran/Cython extensions"; 40 + license = with licenses; [ mit bsd2 ]; # BSD due to reuses of PyNE code 41 + maintainers = [ maintainers.FlorianFranzen ]; 42 + }; 43 + }
+13
pkgs/development/python-modules/scikit-build/fix_pytestrunner_req.patch
··· 1 + diff --git a/setup.py b/setup.py 2 + index dd348fa..4de89c6 100755 3 + --- a/setup.py 4 + +++ b/setup.py 5 + @@ -22,7 +22,7 @@ with open('requirements-dev.txt', 'r') as fp: 6 + dev_requirements = list(filter(bool, (line.strip() for line in fp))) 7 + 8 + # Require pytest-runner only when running tests 9 + -pytest_runner = (['pytest-runner>=2.0,<3dev'] 10 + +pytest_runner = (['pytest-runner>=2.0'] 11 + if any(arg in sys.argv for arg in ('pytest', 'test')) 12 + else []) 13 +
+2
pkgs/top-level/python-packages.nix
··· 4057 4057 4058 4058 scikit-bio = callPackage ../development/python-modules/scikit-bio { }; 4059 4059 4060 + scikit-build = callPackage ../development/python-modules/scikit-build { }; 4061 + 4060 4062 scp = callPackage ../development/python-modules/scp {}; 4061 4063 4062 4064 seaborn = callPackage ../development/python-modules/seaborn { };