mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
853037bbb0
Python bindings for libstatgrab https://github.com/libstatgrab/pystatgrab
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|