diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-05-22 16:55:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 16:55:29 +0200 |
commit | 4385065b7f54da86e525393adec32bea5363ad08 (patch) | |
tree | 854d20f1b98152bcff15fd739c3ea1a17f0df20a /pkgs/development/python-modules/pystatgrab/default.nix | |
parent | 6f7c990b0e4d7cb2e020cbac1b8e96d9825335ce (diff) | |
parent | cb2a84874597dce151cd46ed85365cbdee581835 (diff) |
Merge pull request #313631 from fabaff/pystatgrab-darwin
python312Packages.pystatgrab: refactor
Diffstat (limited to 'pkgs/development/python-modules/pystatgrab/default.nix')
-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 ]; }; |