Merge pull request #279345 from fabaff/pystatgrab

python311Packages.pystatgrab: init at 0.7.2
This commit is contained in:
Fabian Affolter 2024-01-08 11:46:49 +01:00 committed by GitHub
commit 8a1a3b8588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, libstatgrab
, pkg-config
, pythonOlder
, setuptools
, unittestCheckHook
, wheel
}:
buildPythonPackage rec {
pname = "pystatgrab";
version = "0.7.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "libstatgrab";
repo = "pystatgrab";
rev = "PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}";
hash = "sha256-0FDhkIK8jy3/SFmCzrl9l4RTeIKDjO0o5UoODx6Wnfs=";
};
nativeBuildInputs = [
cython
pkg-config
setuptools
wheel
];
buildInputs = [
libstatgrab
];
nativeCheckInputs = [
unittestCheckHook
];
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";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -11301,6 +11301,8 @@ self: super: with self; {
pystardict = callPackage ../development/python-modules/pystardict { };
pystatgrab = callPackage ../development/python-modules/pystatgrab { };
pystemd = callPackage ../development/python-modules/pystemd {
inherit (pkgs) systemd;
};