diff options
author | Jussi Kuokkanen <44469719+Lurkki14@users.noreply.github.com> | 2023-11-13 01:42:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 00:42:29 +0100 |
commit | c78df0bb89be93ac35296d6561d89f0c6b87278a (patch) | |
tree | ab2b8511227202c1f1eedf2aec0eaec1e2d832c7 | |
parent | ee7c46db0df6cd9910f55387a616db79c7b7e75c (diff) |
python3Packages.hwdata: init at 2.4.1 (#266684)
Python bindings to hwdata
-rw-r--r-- | pkgs/development/python-modules/hwdata/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hwdata/default.nix b/pkgs/development/python-modules/hwdata/default.nix new file mode 100644 index 000000000000..9e73fb610170 --- /dev/null +++ b/pkgs/development/python-modules/hwdata/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f0502b4eeb5e..fcac38614616 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { }; |