python3Packages.hwdata: init at 2.4.1 (#266684)

Python bindings to hwdata
This commit is contained in:
Jussi Kuokkanen 2023-11-13 01:42:29 +02:00 committed by GitHub
parent ee7c46db0d
commit c78df0bb89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,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 ];
};
}

View File

@ -5174,6 +5174,8 @@ self: super: with self; {
hvplot = callPackage ../development/python-modules/hvplot { };
hwdata = callPackage ../development/python-modules/hwdata { };
hwi = callPackage ../development/python-modules/hwi { };
hy = callPackage ../development/python-modules/hy { };