Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ancp-bids / default.nix
blob366b00e9c6e0a5db69c2e7f354ed2ac67de2e333
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , pythonOlder
6 , pytestCheckHook
7 , setuptools
8 , wheel
9 , numpy
10 , pandas
13 buildPythonPackage rec {
14   pname = "ancp-bids";
15   version = "0.2.1";
16   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   # `tests/data` dir missing from PyPI dist
20   src = fetchFromGitHub {
21     owner = "ANCPLabOldenburg";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
25   };
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   ];
36   nativeBuildInputs = [
37     setuptools
38     wheel
39   ];
41   nativeCheckInputs = [
42     numpy
43     pandas
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [
48     "ancpbids"
49   ];
51   pytestFlagsArray = [ "tests/auto" ];
53   disabledTests = [ "test_fetch_dataset" ];
55   meta = with lib; {
56     homepage = "https://ancpbids.readthedocs.io";
57     description = "Read/write/validate/query BIDS datasets";
58     license = licenses.mit;
59     maintainers = with maintainers; [ bcdarwin ];
60   };