Unverified Commit d6b16ac3 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

python311.fake-useragent: fix build (#351959)

parents c7bb6840 61406263
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -27,22 +27,25 @@ buildPythonPackage rec {
    sed -i '/addopts/d' pytest.ini
  '';

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools ];

  propagatedBuildInputs =
    [ ]
    ++ lib.optionals (pythonOlder "3.10") [ importlib-resources ]
  dependencies =
    lib.optionals (pythonOlder "3.10") [ importlib-resources ]
    ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "fake_useragent" ];

  meta = with lib; {
  disabledTests = lib.optionals (pythonOlder "3.12") [
    "test_utils_load_pkg_resource_fallback"
  ];

  meta = {
    changelog = "https://github.com/fake-useragent/fake-useragent/releases/tag/${version}";
    description = "Up to date simple useragent faker with real world database";
    homepage = "https://github.com/hellysmile/fake-useragent";
    changelog = "https://github.com/fake-useragent/fake-useragent/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ evanjs ];
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ evanjs ];
  };
}