mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 09:37:59 +03:00
python3Packages.hwdata: init at 2.4.1 (#266684)
Python bindings to hwdata
This commit is contained in:
parent
ee7c46db0d
commit
c78df0bb89
40
pkgs/development/python-modules/hwdata/default.nix
Normal file
40
pkgs/development/python-modules/hwdata/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user