Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python3.pkgs.ancp-bids: depend on wheel explicitly

+27 -7
+27 -7
pkgs/development/python-modules/ancp-bids/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 + , fetchpatch 4 5 , pythonOlder 5 6 , pytestCheckHook 6 7 , setuptools 8 + , wheel 7 9 , numpy 8 10 , pandas 9 11 }: ··· 11 13 buildPythonPackage rec { 12 14 pname = "ancp-bids"; 13 15 version = "0.2.1"; 16 + format = "pyproject"; 14 17 disabled = pythonOlder "3.7"; 15 - format = "pyproject"; 16 18 17 19 # `tests/data` dir missing from PyPI dist 18 20 src = fetchFromGitHub { 19 - owner = "ANCPLabOldenburg"; 20 - repo = pname; 21 - rev = "refs/tags/${version}"; 22 - hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE="; 21 + owner = "ANCPLabOldenburg"; 22 + repo = pname; 23 + rev = "refs/tags/${version}"; 24 + hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE="; 23 25 }; 24 26 25 - nativeBuildInputs = [ setuptools ] ; 27 + patches = [ 28 + # https://github.com/ANCPLabOldenburg/ancp-bids/pull/78 29 + (fetchpatch { 30 + name = "unpin-wheel-build-dependency.patch"; 31 + url = "https://github.com/ANCPLabOldenburg/ancp-bids/commit/6e7a0733002845aacb0152c5aacfb42054a9b65e.patch"; 32 + hash = "sha256-WbQRwb8Wew46OJu+zo7n4qBtgtH/Lr6x3YHAyN9ko9M="; 33 + }) 34 + ]; 35 + 36 + nativeBuildInputs = [ 37 + setuptools 38 + wheel 39 + ]; 26 40 27 - checkInputs = [ numpy pandas pytestCheckHook ]; 41 + nativeCheckInputs = [ 42 + numpy 43 + pandas 44 + pytestCheckHook 45 + ]; 46 + 28 47 pythonImportsCheck = [ 29 48 "ancpbids" 30 49 ]; 31 50 32 51 pytestFlagsArray = [ "tests/auto" ]; 52 + 33 53 disabledTests = [ "test_fetch_dataset" ]; 34 54 35 55 meta = with lib; {