Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, buildPythonPackage, fetchFromGitHub, pkgs, setuptools,}:
buildPythonPackage rec { pname = "hwdata"; version = "2.4.3-1"; pyproject = true;
src = fetchFromGitHub { owner = "xsuchy"; repo = "python-hwdata"; tag = "python-hwdata-${version}"; hash = "sha256-5bcdyCGv1sM8HThoSsvJe68LprDq0kI801F/aTH5FVs="; };
nativeBuildInputs = [ setuptools ];
postPatch = '' substituteInPlace setup.py \ --replace-fail "2.4.3" "2.4.3-1" substituteInPlace hwdata.py \ --replace-fail "/usr/share/hwdata" "${pkgs.hwdata}/share/hwdata" '';
pythonImportsCheck = [ "hwdata" ];
doCheck = false; # no tests
meta = { description = "Python bindings to hwdata"; homepage = "https://github.com/xsuchy/python-hwdata"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ lurkki ]; };}