Skip to content

Commit

Permalink
Merge pull request #238058 from amesgen/pygsl-init
Browse files Browse the repository at this point in the history
python3Packages.pygsl: init at 2.3.3
  • Loading branch information
SuperSandro2000 committed Jul 5, 2023
2 parents 2473b44 + 4d89732 commit d4b23a7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pkgs/development/python-modules/pygsl/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8819,6 +8819,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 { };
Expand Down

0 comments on commit d4b23a7

Please sign in to comment.