mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #279345 from fabaff/pystatgrab
python311Packages.pystatgrab: init at 0.7.2
This commit is contained in:
commit
8a1a3b8588
53
pkgs/development/python-modules/pystatgrab/default.nix
Normal file
53
pkgs/development/python-modules/pystatgrab/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user