Commit 2c09426b authored by Robert Schütz's avatar Robert Schütz Committed by Robert Schütz
Browse files

python310Packages.ua-parser: 0.15.0 -> 0.16.1

parent a0bf7e25
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@

buildPythonPackage rec {
  pname = "ua-parser";
  version = "0.15.0";
  version = "0.16.1";

  format = "setuptools";

@@ -16,26 +16,17 @@ buildPythonPackage rec {
    repo = "uap-python";
    rev = version;
    fetchSubmodules = true;
    hash = "sha256-TtOj1ZL8+4T95AgF9ErvI+0W35WQ23snFhCyCbuRjxM=";
    hash = "sha256-vyzeRi/wYEyezSU+EigJATgrNvABGCWVWlSFhKGipLE=";
  };

  patches = [
    ./dont-fetch-submodule.patch
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "pyyaml ~= 5.4.0" pyyaml
  '';

  nativeBuildInputs = [
    pyyaml
  ];

  preBuild = ''
    mkdir -p build/lib/ua_parser
  '';

  checkInputs = [
    pytestCheckHook
  ];