fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
46 lines
908 B
Nix
46 lines
908 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
gsl,
|
|
swig,
|
|
numpy,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pygsl";
|
|
version = "2.3.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pygsl";
|
|
repo = "pygsl";
|
|
rev = "refs/tags/v.${version}";
|
|
hash = "sha256-2TalLKDDoJdKGZHr7eNNvVW8fL7wQJjnZv34LJokfow=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gsl.dev
|
|
swig
|
|
];
|
|
buildInputs = [ gsl ];
|
|
dependencies = [ numpy ];
|
|
|
|
preBuild = ''
|
|
python setup.py build_ext --inplace
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|