Skip to content

Commit

Permalink
Merge pull request #83526 from drewrisinger/dr-pr-python-scikit-build-38
Browse files Browse the repository at this point in the history
pythonPackages.scikit-build: fix test bug on python3.8
  • Loading branch information
bhipple authored Mar 28, 2020
2 parents eddc4f3 + c8dd834 commit ae6bdcc
Showing 1 changed file with 58 additions and 11 deletions.
69 changes: 58 additions & 11 deletions pkgs/development/python-modules/scikit-build/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
{ lib, buildPythonPackage, fetchPypi, wheel, setuptools, packaging
, cmake, ninja, cython, codecov, coverage, six, virtualenv, pathpy
, pytest, pytestcov, pytest-virtualenv, pytest-mock, pytestrunner
, requests, flake8 }:
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, distro
, packaging
, setuptools
, wheel
# Test Inputs
, cmake
, codecov
, coverage
, cython
, flake8
, ninja
, pathpy
, pytest
, pytestcov
, pytest-mock
, pytestrunner
, pytest-virtualenv
, requests
, six
, virtualenv
}:

buildPythonPackage rec {
pname = "scikit-build";
Expand All @@ -12,15 +33,41 @@ buildPythonPackage rec {
sha256 = "7342017cc82dd6178e3b19377389b8a8d1f8b429d9cdb315cfb1094e34a0f526";
};

propagatedBuildInputs = [ wheel setuptools packaging ];
checkInputs = [
cmake ninja cython codecov coverage six pathpy
pytest pytestcov pytest-mock pytest-virtualenv pytestrunner
requests flake8
propagatedBuildInputs = [
distro
packaging
setuptools
wheel
];
checkInputs = [
cmake
codecov
coverage
cython
flake8
ninja
pathpy
pytest
pytestcov
pytest-mock
pytestrunner
pytest-virtualenv
requests
six
virtualenv
];

dontUseCmakeConfigure = true;

# scikit-build PR #458. Remove in version > 0.10.0
patches = [
(fetchpatch {
name = "python38-platform_linux_distribution-fix-458";
url = "https://github.com/scikit-build/scikit-build/commit/faa7284e5bc4c72bc8744987acdf3297b5d2e7e4.patch";
sha256 = "1hgl3cnkf266zaw534b64c88waxfz9721wha0m6j3hsnxk76ayjv";
})
];

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
Expand All @@ -35,9 +82,9 @@ buildPythonPackage rec {
'';

meta = with lib; {
homepage = http://scikit-build.org/;
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 = [ maintainers.FlorianFranzen ];
maintainers = with maintainers; [ FlorianFranzen ];
};
}

1 comment on commit ae6bdcc

@nixos-discourse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixos-unstable-hasnt-been-updated-in-a-month/6584/6

Please sign in to comment.