about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-05-22 16:55:29 +0200
committerGitHub <noreply@github.com>2024-05-22 16:55:29 +0200
commit4385065b7f54da86e525393adec32bea5363ad08 (patch)
tree854d20f1b98152bcff15fd739c3ea1a17f0df20a /pkgs/development
parent6f7c990b0e4d7cb2e020cbac1b8e96d9825335ce (diff)
parentcb2a84874597dce151cd46ed85365cbdee581835 (diff)
Merge pull request #313631 from fabaff/pystatgrab-darwin
python312Packages.pystatgrab: refactor
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/pystatgrab/default.nix50
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 ];
   };