summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-04-06 19:12:12 -0500
committerGitHub <noreply@github.com>2023-04-06 19:12:12 -0500
commit28b804515b4580b605bdce5a67b02a4b03f1fe28 (patch)
tree79f8f648df7d523039cbe9d97e6cac92e047d989
parentMerge pull request #225068 from r-ryantm/auto-update/mpd-mpris (diff)
parentpython310Packages.ancp-bids: init at 0.2.1 (diff)
downloadnixpkgs-28b804515b4580b605bdce5a67b02a4b03f1fe28.tar.gz
Merge pull request #224558 from bcdarwin/python3-ancp-bids-init
python310Packages.ancp-bids: init at 0.2.1
-rw-r--r--pkgs/development/python-modules/ancp-bids/default.nix41
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ancp-bids/default.nix b/pkgs/development/python-modules/ancp-bids/default.nix
new file mode 100644
index 000000000000..c23635e722c3
--- /dev/null
+++ b/pkgs/development/python-modules/ancp-bids/default.nix
@@ -0,0 +1,41 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+, pytestCheckHook
+, setuptools
+, numpy
+, pandas
+}:
+
+buildPythonPackage rec {
+ pname = "ancp-bids";
+ version = "0.2.1";
+ disabled = pythonOlder "3.7";
+ format = "pyproject";
+
+ # `tests/data` dir missing from PyPI dist
+ src = fetchFromGitHub {
+ owner = "ANCPLabOldenburg";
+ repo = pname;
+ rev = "refs/tags/${version}";
+ hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
+ };
+
+ nativeBuildInputs = [ setuptools ] ;
+
+ checkInputs = [ numpy pandas pytestCheckHook ];
+ pythonImportsCheck = [
+ "ancpbids"
+ ];
+
+ pytestFlagsArray = [ "tests/auto" ];
+ disabledTests = [ "test_fetch_dataset" ];
+
+ meta = with lib; {
+ homepage = "https://ancpbids.readthedocs.io";
+ description = "Read/write/validate/query BIDS datasets";
+ license = licenses.mit;
+ maintainers = with maintainers; [ bcdarwin ];
+ };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 6f507bc5acac..fcbe4d594eca 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -456,6 +456,8 @@ self: super: with self; {
amqtt = callPackage ../development/python-modules/amqtt { };
+ ancp-bids = callPackage ../development/python-modules/ancp-bids { };
+
android-backup = callPackage ../development/python-modules/android-backup { };
androidtv = callPackage ../development/python-modules/androidtv { };