From 4805cb093427f287f4e0003bb1273a2ed234efe2 Mon Sep 17 00:00:00 2001 From: Lukas Schmidt Date: Fri, 10 Mar 2023 22:01:32 -0500 Subject: [PATCH 1/2] maintainers: add lugarun --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e640d99bbea5..791f619e40d6 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -8687,6 +8687,12 @@ githubId = 542154; name = "Lorenz Leutgeb"; }; + lugarun = { + email = "lfschmidt.me@gmail.com"; + github = "lugarun"; + githubId = 5767106; + name = "Lukas Schmidt"; + }; luis = { email = "luis.nixos@gmail.com"; github = "Luis-Hebendanz"; From ccad0e955d0e491336725b107e35d95631821f6d Mon Sep 17 00:00:00 2001 From: Lukas Schmidt Date: Fri, 10 Mar 2023 21:51:20 -0500 Subject: [PATCH 2/2] python3Packages.scikit-rf: init at 0.25.0 --- .../python-modules/scikit-rf/default.nix | 113 ++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 115 insertions(+) create mode 100644 pkgs/development/python-modules/scikit-rf/default.nix diff --git a/pkgs/development/python-modules/scikit-rf/default.nix b/pkgs/development/python-modules/scikit-rf/default.nix new file mode 100644 index 000000000000..c4a90132d9f9 --- /dev/null +++ b/pkgs/development/python-modules/scikit-rf/default.nix @@ -0,0 +1,113 @@ +{ stdenv +, lib +, pythonOlder +, buildPythonPackage +, fetchFromGitHub +, numpy +, scipy +, pandas +, matplotlib +, tox +, coverage +, flake8 +, nbval +, pyvisa +, networkx +, ipython +, ipykernel +, ipywidgets +, jupyter-client +, sphinx-rtd-theme +, sphinx +, nbsphinx +, openpyxl +, qtpy +, pyqtgraph +, pyqt5 +, setuptools +, pytestCheckHook +, pytest-cov +}: + +buildPythonPackage rec { + pname = "scikit-rf"; + version = "0.25.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "scikit-rf"; + repo = pname; + rev = "v${version}"; + hash = "sha256-drH1N1rKFu/zdLmLsD1jH5xUkzK37V/+nJqGQ38vsTI="; + }; + + buildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + numpy + scipy + pandas + ]; + + passthru.optional-dependencies = { + plot = [ + matplotlib + ]; + xlsx = [ + openpyxl + ]; + netw = [ + networkx + ]; + visa = [ + pyvisa + ]; + docs = [ + ipython + ipykernel + ipywidgets + jupyter-client + sphinx-rtd-theme + sphinx + nbsphinx + openpyxl + ]; + qtapps = [ + qtpy + pyqtgraph + pyqt5 + ]; + }; + + nativeCheckInputs = [ + tox + coverage + flake8 + pytest-cov + nbval + matplotlib + pyvisa + openpyxl + networkx + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "skrf" + ]; + + meta = with lib; { + description = "A Python library for RF/Microwave engineering"; + homepage = "https://scikit-rf.org/"; + changelog = "https://github.com/scikit-rf/scikit-rf/releases/tag/v${version}"; + license = licenses.bsd3; + maintainers = with maintainers; [ lugarun ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ec761cf5412d..891adba5f731 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10463,6 +10463,8 @@ self: super: with self; { scikit-optimize = callPackage ../development/python-modules/scikit-optimize { }; + scikit-rf = callPackage ../development/python-modules/scikit-rf { }; + scikits-odes = callPackage ../development/python-modules/scikits-odes { }; scikit-tda = callPackage ../development/python-modules/scikit-tda { };