forked from mirrors/nixpkgs
python310Packages.ua-parser: remove unused pyyaml, add pythonImportsCheck
This commit is contained in:
parent
a69f4b5c91
commit
09118d3deb
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue