From 4d8973239b0d252eb44701cd468d4150468069a7 Mon Sep 17 00:00:00 2001 From: amesgen Date: Fri, 16 Jun 2023 09:28:14 +0200 Subject: [PATCH] python3Packages.pygsl: init at 2.3.3 --- .../python-modules/pygsl/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/pygsl/default.nix diff --git a/pkgs/development/python-modules/pygsl/default.nix b/pkgs/development/python-modules/pygsl/default.nix new file mode 100644 index 000000000000..d55ac1d56be7 --- /dev/null +++ b/pkgs/development/python-modules/pygsl/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchPypi +, gsl +, swig +, numpy +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pygsl"; + version = "2.3.3"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-F3m85Bs8sONw0Rv0EAOFK6R1DFHfW4dxuzQmXo4PHfM="; + }; + + nativeBuildInputs = [ + gsl.dev + swig + ]; + buildInputs = [ + gsl + ]; + propagatedBuildInputs = [ + numpy + ]; + + preCheck = '' + cd tests + ''; + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Python interface for GNU Scientific Library"; + homepage = "https://github.com/pygsl/pygsl"; + changelog = "https://github.com/pygsl/pygsl/blob/v${version}/ChangeLog"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ amesgen ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1dfd4e32504c..dba754ef7c21 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8679,6 +8679,10 @@ self: super: with self; { pygrok = callPackage ../development/python-modules/pygrok { }; + pygsl = callPackage ../development/python-modules/pygsl { + inherit (pkgs) gsl swig; + }; + pygtfs = callPackage ../development/python-modules/pygtfs { }; pygtail = callPackage ../development/python-modules/pygtail { };