2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gsl,
|
|
|
|
swig,
|
|
|
|
numpy,
|
|
|
|
pytestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pygsl";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.3.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pygsl";
|
|
|
|
repo = "pygsl";
|
|
|
|
rev = "refs/tags/v.${version}";
|
|
|
|
hash = "sha256-2TalLKDDoJdKGZHr7eNNvVW8fL7wQJjnZv34LJokfow=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gsl.dev
|
|
|
|
swig
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ gsl ];
|
|
|
|
dependencies = [ numpy ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
preBuild = ''
|
|
|
|
python setup.py build_ext --inplace
|
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
preCheck = ''
|
|
|
|
cd tests
|
|
|
|
'';
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|