depot/third_party/nixpkgs/pkgs/development/python-modules/pygsl/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

45 lines
801 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, gsl
, swig
, numpy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pygsl";
version = "2.3.3";
format = "setuptools";
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 ];
};
}