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 /pkgs/development | |
parent | ee7c46db0df6cd9910f55387a616db79c7b7e75c (diff) |
python3Packages.hwdata: init at 2.4.1 (#266684)
Python bindings to hwdata
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/hwdata/default.nix | 40 |
1 files changed, 40 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 0000000000000..9e73fb6101703 --- /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 ]; + }; +} |