tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python311Packages.python-ipmi: fix invalid specifier
Fabian Affolter
3 years ago
b32e668a
fe2ecaf7
+11
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
python-ipmi
default.nix
+11
-2
pkgs/development/python-modules/python-ipmi/default.nix
reviewed
···
11
11
buildPythonPackage rec {
12
12
pname = "python-ipmi";
13
13
version = "0.5.4";
14
14
+
format = "setuptools";
15
15
+
14
16
disabled = pythonOlder "3.6";
15
17
16
18
src = fetchFromGitHub {
17
19
owner = "kontron";
18
20
repo = pname;
19
19
-
rev = version;
21
21
+
rev = "refs/tags/${version}";
20
22
hash = "sha256-IXEq3d1nXGEndciQw2MJ1Abc0vmEYez+k6aWGSWEzWA=";
21
23
};
24
24
+
25
25
+
postPatch = ''
26
26
+
substituteInPlace setup.py \
27
27
+
--replace "version=version," "version='${version}',"
28
28
+
'';
22
29
23
30
propagatedBuildInputs = [
24
31
future
···
37
30
pytestCheckHook
38
31
];
39
32
40
40
-
pythonImportsCheck = [ "pyipmi" ];
33
33
+
pythonImportsCheck = [
34
34
+
"pyipmi"
35
35
+
];
41
36
42
37
meta = with lib; {
43
38
description = "Python IPMI Library";