diff options
Diffstat (limited to 'pkgs/development/python-modules/pystatgrab')
-rw-r--r-- | pkgs/development/python-modules/pystatgrab/default.nix | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/pystatgrab/default.nix b/pkgs/development/python-modules/pystatgrab/default.nix index 574cc349d5de3..04d460bdf558f 100644 --- a/pkgs/development/python-modules/pystatgrab/default.nix +++ b/pkgs/development/python-modules/pystatgrab/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, cython -, fetchFromGitHub -, libstatgrab -, pkg-config -, pythonOlder -, setuptools -, unittestCheckHook -, wheel -, darwin +{ + lib, + stdenv, + buildPythonPackage, + cython, + fetchFromGitHub, + libstatgrab, + pkg-config, + pythonOlder, + setuptools, + unittestCheckHook, + wheel, + darwin, }: buildPythonPackage rec { @@ -22,35 +23,34 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "libstatgrab"; repo = "pystatgrab"; - rev = "PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}"; + rev = "PYSTATGRAB_${lib.replaceStrings [ "." ] [ "_" ] version}"; hash = "sha256-0FDhkIK8jy3/SFmCzrl9l4RTeIKDjO0o5UoODx6Wnfs="; }; + build-system = [ + setuptools + wheel + ]; + nativeBuildInputs = [ cython pkg-config - setuptools - wheel ]; buildInputs = [ libstatgrab - ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ - IOKit - ]); + ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit ]); - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "statgrab" - ]; + pythonImportsCheck = [ "statgrab" ]; meta = with lib; { description = "Python bindings for libstatgrab"; homepage = "https://github.com/libstatgrab/pystatgrab"; - changelog = "https://github.com/libstatgrab/pystatgrab/blob/PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}/NEWS"; + changelog = "https://github.com/libstatgrab/pystatgrab/blob/PYSTATGRAB_${ + lib.replaceStrings [ "." ] [ "_" ] version + }/NEWS"; license = licenses.lgpl21Only; maintainers = with maintainers; [ fab ]; }; |