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
1
-
{ lib
2
2
-
, stdenv
3
3
-
, buildPythonPackage
4
4
-
, cython
5
5
-
, fetchFromGitHub
6
6
-
, libstatgrab
7
7
-
, pkg-config
8
8
-
, pythonOlder
9
9
-
, setuptools
10
10
-
, unittestCheckHook
11
11
-
, wheel
12
12
-
, darwin
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
buildPythonPackage,
5
5
+
cython,
6
6
+
fetchFromGitHub,
7
7
+
libstatgrab,
8
8
+
pkg-config,
9
9
+
pythonOlder,
10
10
+
setuptools,
11
11
+
unittestCheckHook,
12
12
+
wheel,
13
13
+
darwin,
13
14
}:
14
15
15
16
buildPythonPackage rec {
···
22
23
src = fetchFromGitHub {
23
24
owner = "libstatgrab";
24
25
repo = "pystatgrab";
25
25
-
rev = "PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}";
26
26
+
rev = "PYSTATGRAB_${lib.replaceStrings [ "." ] [ "_" ] version}";
26
27
hash = "sha256-0FDhkIK8jy3/SFmCzrl9l4RTeIKDjO0o5UoODx6Wnfs=";
27
28
};
28
29
···
38
39
39
40
buildInputs = [
40
41
libstatgrab
41
41
-
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
42
42
-
IOKit
43
43
-
]);
42
42
+
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ IOKit ]);
44
43
45
45
-
nativeCheckInputs = [
46
46
-
unittestCheckHook
47
47
-
];
44
44
+
nativeCheckInputs = [ unittestCheckHook ];
48
45
49
49
-
pythonImportsCheck = [
50
50
-
"statgrab"
51
51
-
];
46
46
+
pythonImportsCheck = [ "statgrab" ];
52
47
53
48
meta = with lib; {
54
49
description = "Python bindings for libstatgrab";
55
50
homepage = "https://github.com/libstatgrab/pystatgrab";
56
56
-
changelog = "https://github.com/libstatgrab/pystatgrab/blob/PYSTATGRAB_${lib.replaceStrings ["."] ["_"] version}/NEWS";
51
51
+
changelog = "https://github.com/libstatgrab/pystatgrab/blob/PYSTATGRAB_${
52
52
+
lib.replaceStrings [ "." ] [ "_" ] version
53
53
+
}/NEWS";
57
54
license = licenses.lgpl21Only;
58
55
maintainers = with maintainers; [ fab ];
59
56
};