Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / hwdata / default.nix
blob9e73fb61017035448abfad1ed83f54518257966b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pkgs
5 , setuptools
6 }:
8 buildPythonPackage rec {
9   pname = "hwdata";
10   version = "2.4.1";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "xsuchy";
15     repo = "python-hwdata";
16     rev = "python-hwdata-${version}-1";
17     hash = "sha256-hmvxVF9LOkezXnJdbtbEJWhU4uvUJgxQHYeWUoiniF0=";
18   };
20   nativeBuildInputs = [
21     setuptools
22   ];
24   patchPhase = ''
25     substituteInPlace hwdata.py --replace "/usr/share/hwdata" "${pkgs.hwdata}/share/hwdata"
26   '';
28   pythonImportsCheck = [
29     "hwdata"
30   ];
32   doCheck = false; # no tests
34   meta = with lib; {
35     description = "Python bindings to hwdata";
36     homepage = "https://github.com/xsuchy/python-hwdata";
37     license = licenses.gpl2Plus;
38     maintainers = with maintainers; [ lurkki ];
39   };