Merge pull request #246946 from tjni/ancp-bids
python3.pkgs.ancp-bids: depend on wheel explicitly
This commit is contained in:
commit
3b8be06347
1 changed files with 27 additions and 7 deletions
|
@ -1,9 +1,11 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, setuptools
|
, setuptools
|
||||||
|
, wheel
|
||||||
, numpy
|
, numpy
|
||||||
, pandas
|
, pandas
|
||||||
}:
|
}:
|
||||||
|
@ -11,25 +13,43 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ancp-bids";
|
pname = "ancp-bids";
|
||||||
version = "0.2.1";
|
version = "0.2.1";
|
||||||
disabled = pythonOlder "3.7";
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
# `tests/data` dir missing from PyPI dist
|
# `tests/data` dir missing from PyPI dist
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ANCPLabOldenburg";
|
owner = "ANCPLabOldenburg";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
|
hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools ] ;
|
patches = [
|
||||||
|
# https://github.com/ANCPLabOldenburg/ancp-bids/pull/78
|
||||||
|
(fetchpatch {
|
||||||
|
name = "unpin-wheel-build-dependency.patch";
|
||||||
|
url = "https://github.com/ANCPLabOldenburg/ancp-bids/commit/6e7a0733002845aacb0152c5aacfb42054a9b65e.patch";
|
||||||
|
hash = "sha256-WbQRwb8Wew46OJu+zo7n4qBtgtH/Lr6x3YHAyN9ko9M=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
numpy
|
||||||
|
pandas
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ numpy pandas pytestCheckHook ];
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"ancpbids"
|
"ancpbids"
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "tests/auto" ];
|
pytestFlagsArray = [ "tests/auto" ];
|
||||||
|
|
||||||
disabledTests = [ "test_fetch_dataset" ];
|
disabledTests = [ "test_fetch_dataset" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue