blob: 9e73fb61017035448abfad1ed83f54518257966b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pkgs
, setuptools
}:
buildPythonPackage rec {
pname = "hwdata";
version = "2.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "xsuchy";
repo = "python-hwdata";
rev = "python-hwdata-${version}-1";
hash = "sha256-hmvxVF9LOkezXnJdbtbEJWhU4uvUJgxQHYeWUoiniF0=";
};
nativeBuildInputs = [
setuptools
];
patchPhase = ''
substituteInPlace hwdata.py --replace "/usr/share/hwdata" "${pkgs.hwdata}/share/hwdata"
'';
pythonImportsCheck = [
"hwdata"
];
doCheck = false; # no tests
meta = with lib; {
description = "Python bindings to hwdata";
homepage = "https://github.com/xsuchy/python-hwdata";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ lurkki ];
};
}
|