3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.ua-parser: remove unused pyyaml, add pythonImportsCheck

This commit is contained in:
Sandro Jäckel 2022-05-30 05:13:17 +02:00 committed by Robert Schütz
parent a69f4b5c91
commit 09118d3deb

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pyyaml }:
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "ua-parser";
@ -9,10 +9,15 @@ buildPythonPackage rec {
sha256 = "0csh307zfz666kkk5idrw3crj1x8q8vsqgwqil0r1n1hs4p7ica7";
};
propagatedBuildInputs = [ pyyaml ];
postPatch = ''
substituteInPlace setup.py \
--replace '"pyyaml"' ""
'';
doCheck = false; # requires files from uap-core
pythonImportsCheck = [ "ua_parser" ];
meta = with lib; {
description = "A python implementation of the UA Parser";
homepage = "https://github.com/ua-parser/uap-python";