diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index af69fc2f5ab2..1c8df5c69c4e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -24541,6 +24541,12 @@ githubId = 75371; name = "Stig Palmquist"; }; + sgomezsal = { + email = "contact@sgomezsal.com"; + github = "sgomezsal"; + githubId = 79657820; + name = "Santiago Gomez"; + }; sgraf = { email = "sgraf1337@gmail.com"; github = "sgraf812"; diff --git a/pkgs/development/python-modules/tcia-utils/default.nix b/pkgs/development/python-modules/tcia-utils/default.nix new file mode 100644 index 000000000000..71ee5c7821de --- /dev/null +++ b/pkgs/development/python-modules/tcia-utils/default.nix @@ -0,0 +1,54 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + beautifulsoup4, + ipython, + pandas, + plotly, + requests, + tqdm, + unidecode, + hatchling, +}: + +buildPythonPackage (finalAttrs: { + pname = "tcia-utils"; + version = "3.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "kirbyju"; + repo = "tcia_utils"; + rev = "9ff8a409df9daaa3f9bc28f0a951d7f6fcb90160"; # Corresponds to v3.2.1 + hash = "sha256-IW6rxlmRj7RW3hM7aZR+BuqboDzp+2R2ObGwAhOxMPM="; + }; + + build-system = [ + hatchling + ]; + + dependencies = [ + beautifulsoup4 + ipython + pandas + plotly + requests + tqdm + unidecode + ]; + + pythonRemoveDeps = [ "bs4" ]; + + # Tests require network access to TCIA API and specific credentials + doCheck = false; + + pythonImportsCheck = [ "tcia_utils" ]; + + meta = { + description = "Python utilities for interacting with The Cancer Imaging Archive (TCIA)"; + homepage = "https://github.com/kirbyju/tcia_utils"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ sgomezsal ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cd681c56e654..f8b8c736e893 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18891,6 +18891,8 @@ self: super: with self; { tccbox = callPackage ../development/python-modules/tccbox { }; + tcia-utils = callPackage ../development/python-modules/tcia-utils { }; + tcolorpy = callPackage ../development/python-modules/tcolorpy { }; tcxfile = callPackage ../development/python-modules/tcxfile { };