tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.pystatgrab: format with niixfmt
Fabian Affolter
2 years ago
cb2a8487
fb97a6ac
+20
-23
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pystatgrab
default.nix
+20
-23
pkgs/development/python-modules/pystatgrab/default.nix
···
1
-
{ lib
2
-
, stdenv
3
-
, buildPythonPackage
4
-
, cython
5
-
, fetchFromGitHub
6
-
, libstatgrab
7
-
, pkg-config
8
-
, pythonOlder
9
-
, setuptools
10
-
, unittestCheckHook
11
-
, wheel
12
-
, darwin
0
13
}:
14
15
buildPythonPackage rec {
···
22
src = fetchFromGitHub {
23
owner = "libstatgrab";
24
repo = "pystatgrab";
25
-
rev = "PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}";
26
hash = "sha256-0FDhkIK8jy3/SFmCzrl9l4RTeIKDjO0o5UoODx6Wnfs=";
27
};
28
···
38
39
buildInputs = [
40
libstatgrab
41
-
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
42
-
IOKit
43
-
]);
44
45
-
nativeCheckInputs = [
46
-
unittestCheckHook
47
-
];
48
49
-
pythonImportsCheck = [
50
-
"statgrab"
51
-
];
52
53
meta = with lib; {
54
description = "Python bindings for libstatgrab";
55
homepage = "https://github.com/libstatgrab/pystatgrab";
56
-
changelog = "https://github.com/libstatgrab/pystatgrab/blob/PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}/NEWS";
0
0
57
license = licenses.lgpl21Only;
58
maintainers = with maintainers; [ fab ];
59
};
···
1
+
{
2
+
lib,
3
+
stdenv,
4
+
buildPythonPackage,
5
+
cython,
6
+
fetchFromGitHub,
7
+
libstatgrab,
8
+
pkg-config,
9
+
pythonOlder,
10
+
setuptools,
11
+
unittestCheckHook,
12
+
wheel,
13
+
darwin,
14
}:
15
16
buildPythonPackage rec {
···
23
src = fetchFromGitHub {
24
owner = "libstatgrab";
25
repo = "pystatgrab";
26
+
rev = "PYSTATGRAB_${lib.replaceStrings [ "." ] [ "_" ] version}";
27
hash = "sha256-0FDhkIK8jy3/SFmCzrl9l4RTeIKDjO0o5UoODx6Wnfs=";
28
};
29
···
39
40
buildInputs = [
41
libstatgrab
42
+
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit ]);
0
0
43
44
+
nativeCheckInputs = [ unittestCheckHook ];
0
0
45
46
+
pythonImportsCheck = [ "statgrab" ];
0
0
47
48
meta = with lib; {
49
description = "Python bindings for libstatgrab";
50
homepage = "https://github.com/libstatgrab/pystatgrab";
51
+
changelog = "https://github.com/libstatgrab/pystatgrab/blob/PYSTATGRAB_${
52
+
lib.replaceStrings [ "." ] [ "_" ] version
53
+
}/NEWS";
54
license = licenses.lgpl21Only;
55
maintainers = with maintainers; [ fab ];
56
};