python312Packages.pystatgrab: format with niixfmt

This commit is contained in:
Fabian Affolter
2024-05-22 12:12:35 +02:00
parent fb97a6acd8
commit cb2a848745
@@ -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,7 +23,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "libstatgrab";
repo = "pystatgrab";
rev = "PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}";
rev = "PYSTATGRAB_${lib.replaceStrings [ "." ] [ "_" ] version}";
hash = "sha256-0FDhkIK8jy3/SFmCzrl9l4RTeIKDjO0o5UoODx6Wnfs=";
};
@@ -38,22 +39,18 @@ buildPythonPackage rec {
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 ];
};